I have a building that has 3 special units that when 1 is built I want it to, then remove the building, remove the special unit, and then turn on a toggle/switch.
There would then be another trigger that would only activate when the Toggle is active and the player's kill count is between a min and max. This would then spawn a unit at a region at a constant interval.
So how do I go about this?
In SC1 Editor you had like 256 "toggles" that you could switch, on/off or have toggled and then you could make commands use the toggles as a condition to fire off the events. Is there anything like this? Is it Variables? I could literally write this out how SC1 triggers would do this if you have trouble understanding what I want.
I used to be hugely into the Original SC map editor and was very good with the triggers but this is a whole new experience. Im scared and afraid XD
As for your toggle/switch, yes I believe what you want is Variables. You can use "Boolean" variables which can have only two values: True or False.
So you can just set your variable to True when the special unit has been created, and then check if your other conditions are fulfilled, in order to activate a Trigger that would spawn your unit at a constant interval.
Oh boy, I think I get some of it. But im confused still.
Under the UnitCreated trigger, for the Condition how did you select the Barracks? How would I go about changing it to any other building?
Also from looking at this, where in this does it kill the unit being made? There would be 3 switches (for each of the 4 players) and the unit that gets created would determine which switch to set off and then kill that unit and the building that created the unit.
You can select the Barracks in the condition when the left value is a "Unit Type" function (or value) then you can put any values on the right (including every units in the game)
Oh yea I forgot that part, you can use the "Remove Unit" function or "Kill Unit" function to remove/kill units. The main difference is that removing will just make the unit disappear like it never existed, and the "Kill Unit" function will kill the unit just as if it was killed by another unit.
You can use variables dimensions for multiple switches for multiple player.
Dimension is an array type variable. So for example, without dimensions the variable would be:
I have a building that has 3 special units that when 1 is built I want it to, then remove the building, remove the special unit, and then turn on a toggle/switch.
There would then be another trigger that would only activate when the Toggle is active and the player's kill count is between a min and max. This would then spawn a unit at a region at a constant interval.
So how do I go about this?
In SC1 Editor you had like 256 "toggles" that you could switch, on/off or have toggled and then you could make commands use the toggles as a condition to fire off the events. Is there anything like this? Is it Variables? I could literally write this out how SC1 triggers would do this if you have trouble understanding what I want.
I used to be hugely into the Original SC map editor and was very good with the triggers but this is a whole new experience. Im scared and afraid XD
You can use the "Unit Training Progress" event.
As for your toggle/switch, yes I believe what you want is Variables. You can use "Boolean" variables which can have only two values: True or False. So you can just set your variable to True when the special unit has been created, and then check if your other conditions are fulfilled, in order to activate a Trigger that would spawn your unit at a constant interval.
Here's an example of what I understood about what you want to do: http://i.imgur.com/kHmhB9W.png
Hope it helps
@VisionElf: Go
Oh boy, I think I get some of it. But im confused still.
Under the UnitCreated trigger, for the Condition how did you select the Barracks? How would I go about changing it to any other building?
Also from looking at this, where in this does it kill the unit being made? There would be 3 switches (for each of the 4 players) and the unit that gets created would determine which switch to set off and then kill that unit and the building that created the unit.
You can select the Barracks in the condition when the left value is a "Unit Type" function (or value) then you can put any values on the right (including every units in the game)
Oh yea I forgot that part, you can use the "Remove Unit" function or "Kill Unit" function to remove/kill units. The main difference is that removing will just make the unit disappear like it never existed, and the "Kill Unit" function will kill the unit just as if it was killed by another unit.
You can use variables dimensions for multiple switches for multiple player. Dimension is an array type variable. So for example, without dimensions the variable would be:
Switch = True
With dimensions you can do something like:
Switch[3] = True
Then instead of :
You can write:
Because "Player" values in the Galaxy Editors are Integers