I was a big SC1 map maker and a lot of the newer triggers are confusing me and really getting irritated doing so, I've gone through a lot of the triggers using it's search function to get a lot of what I wanted. Anyways could the community please give me the following :)
What is the difference between a condition and an event? Do the events activate the trigger and if the conditions are met the actions happen?
Is there a way to kill ALL units in a region within one action. (Tired of 8 triggers per region to kill 8 things)
Say I have 5 lives, and control one unit.
That unit dies, how would I get that unit to be recreated at a region/point, and remove a life, only if I have more than 0 lives?
I'm basically confused on how the conditions work in general it just seems to be a bunch of comparisons and coding scripts.
I was a big SC1 map maker and a lot of the newer triggers are confusing me and really getting irritated doing so, I've gone through a lot of the triggers using it's search function to get a lot of what I wanted. Anyways could the community please give me the following :)
What is the difference between a condition and an event? Do the events activate the trigger and if the conditions are met the actions happen?
Is there a way to kill ALL units in a region within one action. (Tired of 8 triggers per region to kill 8 things)
Say I have 5 lives, and control one unit. That unit dies, how would I get that unit to be recreated at a region/point, and remove a life, only if I have more than 0 lives?
I'm basically confused on how the conditions work in general it just seems to be a bunch of comparisons and coding scripts.
Any help would be appreciated.
You have it right. Every time the Event occurs, the conditions are checked. If all of the conditions are satisfied, the actions run in order.
As for doing multiple things at once, you should become comfortable with the concept of a "loop." If you've had programming experience of any kind, this should be familiar. There are some useful loops in the trigger editor such as "Pick Each Unit in Unit Group." This is what you would use to kill all units in a region, because units in a region can be expressed as a unit group and put into that function. So you would pick each unit in the unit group and do the action "Kill Picked Unit." It's called a "Loop" because it basically repeats the "Kill Picked Unit" action again and again until every unit has been picked (and killed).
The second thing you described may look something like this. I'm assuming you have the unit and the lives stored as variables.
Event: Any Unit Dies
Condition: Triggering Unit == UnitVar
Condition: LivesVar >= 1
Action: Modify LivesVar: -1
Action: Create Unit at Point for Player
If you have more than one player that this applies to, you would need a separate set of variables for each, but it useful in this case to use an Array. Again, if you've had programming, this will be much easier. But basically, the index of every variable would be the player number of the owner of the triggering unit, and you could still handle it with a single trigger.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I was a big SC1 map maker and a lot of the newer triggers are confusing me and really getting irritated doing so, I've gone through a lot of the triggers using it's search function to get a lot of what I wanted. Anyways could the community please give me the following :)
What is the difference between a condition and an event? Do the events activate the trigger and if the conditions are met the actions happen?
Is there a way to kill ALL units in a region within one action. (Tired of 8 triggers per region to kill 8 things)
Say I have 5 lives, and control one unit. That unit dies, how would I get that unit to be recreated at a region/point, and remove a life, only if I have more than 0 lives?
I'm basically confused on how the conditions work in general it just seems to be a bunch of comparisons and coding scripts.
Any help would be appreciated.
You have it right. Every time the Event occurs, the conditions are checked. If all of the conditions are satisfied, the actions run in order.
As for doing multiple things at once, you should become comfortable with the concept of a "loop." If you've had programming experience of any kind, this should be familiar. There are some useful loops in the trigger editor such as "Pick Each Unit in Unit Group." This is what you would use to kill all units in a region, because units in a region can be expressed as a unit group and put into that function. So you would pick each unit in the unit group and do the action "Kill Picked Unit." It's called a "Loop" because it basically repeats the "Kill Picked Unit" action again and again until every unit has been picked (and killed).
The second thing you described may look something like this. I'm assuming you have the unit and the lives stored as variables. Event: Any Unit Dies Condition: Triggering Unit == UnitVar Condition: LivesVar >= 1 Action: Modify LivesVar: -1 Action: Create Unit at Point for Player
If you have more than one player that this applies to, you would need a separate set of variables for each, but it useful in this case to use an Array. Again, if you've had programming, this will be much easier. But basically, the index of every variable would be the player number of the owner of the triggering unit, and you could still handle it with a single trigger.