Staredit Network > Forums > SC2 Assistance > Topic: Creating Units
Creating Units
Aug 1 2010, 12:35 am
By: qurqle  

Aug 1 2010, 12:35 am qurqle Post #1



heres a basic idea!

Current Player creates One (Building)

Remove (building) add (gas)
Create 1 (Unit) at (Location1)
---
Current player brings exactly 1 (unit) to (location1)
timer is (time)

Create (units) at (location2)
restart timer
---
commands at most 4 (unit) to (location1)
automatically destroy (building) add gas to (gas)



Its for a Lord of the rings strategy game im making just need some help with spawning units.



None.

Aug 1 2010, 12:58 am arkla Post #2



...what the :crazy:
what exactly do you want us to help you with?



None.

Aug 1 2010, 1:02 am DevliN Post #3

OVERWATCH STATUS GO

I think he wants a building to be removed and replaced with a unit when a player constructs it. Then create a unit at another location (for some reason) and remove that new unit to create yet another unit at a different location.

I'm confused by these though. They seem redundant. Like why destroy a building and add gas when it is built, and then have another destroy trigger when you have 4 units (even though there is no building to destroy anymore)?

I think some more info would help us a lot.



\:devlin\: Currently Working On: \:devlin\:
My Overwatch addiction.

Sep 29 2010, 11:09 pm qurqle Post #4



K heres the basic idea again...

for Triggers named (TEAM1.SPAWNa)

Current Player brings at least 1-4 unit to location (CASTLE COUNTER)
Current Player brings exactly 1 (MINAS ANOR) to anywhere
Timer is exavtly 120 seconds

Create 3 Shortbow Archers at (1 Gondor Spawn a)
Create 2 Shortbow Archers at (1 Gondor Spawn a)
add 1000 Minerals
Restart timer




I know its in starcraft 1 but thats all i remeber how to dispaly the triggers, i need it converted to starcraft2 triggers

basically i want a bunch of units created if the unit owns 1-4 caslte counters and commands 1 building (Minas anor)
its for a LOTR Strategy map



None.

Sep 30 2010, 5:01 am Roy Post #5

An artist's depiction of an Extended Unit Death

Event - Timer myTimer expires
Action - For each integer playerNum from 1 to 8
     Action - If/Then/Else
          If - Condition - Unit count at CASTLE COUNTER owned by player playerNum >= 1
          If - Condition - Unit count at MINAS ANOR owned by player playerNum == 1
          Then - Action - Create Unit at Region
Action - Create new Timer with time 120 game seconds
Action - Set Variable myTimer = last created Timer

Some variation of that should get you what you want.




Sep 30 2010, 5:15 pm qurqle Post #6



could i get that in a screenshot?

Post has been edited 1 time(s), last time on Sep 30 2010, 8:26 pm by qurqle.



None.

Sep 30 2010, 9:18 pm qurqle Post #7



i get an error when i save the map



None.

Sep 30 2010, 11:14 pm Ahli Post #8

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

Quote from qurqle
i get an error when i save the map
We might be able to help you, if you would provide more information about the error you are experiencing.
Is it a script error in trigger editor (-> so your triggers can't be compiled -> map can't be saved)?

And I'm still not 100% sure what you are trying to achieve.

My comprehension what I understood so far:
-1 unique building where troops are spawned every ... seconds depending on the amount of "castles" that are under control by the player (seems that he can build castles) and the player gains resources for that castles, too.

But I don't get the gas aspect (construct building, destroy building, add gas)...

You should forget about the Starcraft mechanics and try to write down what you want to achieve. Don't make SC1 triggers to your base, if you think about SC2 triggers. SC1 triggering is based on many workarounds, you apply because you've learned them. SC2 triggering is more straight forward.




Oct 1 2010, 4:31 pm qurqle Post #9



Basically its a script error alot of the triggers i just put custom script and its errored so i need to redu the triggers properly.
OK heres more informations

If Player commands 1 BUILDING
If Player Commands 1 COUNTER
Timer IS Exactly 120 game seconds

Create UNITS at LOCATION
Add 1000 Minerals
preserve trigger

-----------------

For timer -- i fiqured they need to be different triggers not combined due to sum glitchs that will be caused when playing more than 2 players

timer is elapsed 120 games seconds

restart timer



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2024-10-31. : 12:30 am]
ClansAreForGays -- When you join a pub lobby because you see 7/8 players, but then realize host is bating you with computers. :flamer: :flamer:
[2024-10-30. : 11:48 pm]
O)FaRTy1billion[MM] -- :wob:
[2024-10-30. : 6:24 pm]
Ultraviolet -- :wob:
[2024-10-29. : 4:33 pm]
Vrael -- :wob:
[2024-10-29. : 1:32 pm]
Zoan -- :wob:
[2024-10-28. : 5:21 pm]
Ultraviolet -- :wob:
[2024-10-27. : 4:34 pm]
jjf28 -- :wob:
[2024-10-27. : 9:01 am]
Zycorax -- :wob:
[2024-10-27. : 3:31 am]
RIVE -- :wob:
[2024-10-26. : 7:12 pm]
Ultraviolet -- :wob:
Please log in to shout.


Members Online: lil-Inferno, Roy, Ultraviolet