Set up a counter variable maybe? Each time a zealot enters the region add 1 to the variable. When the variable = 2, kill the zealots and set the variable to 0.
Rollback Post to RevisionRollBack
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
Use a switch (search it in editor) based on the value of 'Units in region matching blabla' (you can set unit types and whether dead/not this way) Case 1: give player 1 10 minerals, case 2 give player 30 minerals, etc.
Set up a counter variable maybe? Each time a zealot enters the region
add 1 to the variable. When the variable = 2, kill the zealots and set
the variable to 0.
thanks, but i tried that already, doesnt work - dont know why.
and besides that it would be cheatable.
3 im going to try that, thanks for the info!
edit: #4 thank! think that will work
small side question, i never used "if then else" stuff in this editor..
i added it as an action, but im not able to edit anything of it.
how to :(?
looks like imtoo dumb for this..
switches or if then else actions are not editable anyhow.
i add them, then there are 3 different parts "if" "then" "else" but i cant tell him what to do in the "if" thing.. weird -.-
right click on the if and then select add conditional
also i would suggest adding the units to a unit group when they enter and removing them from the group if they leave, then when you have the number of units you want in the group do the actoin.
You could Easily mix up Trigger 1 and 3 to save execution time. As the two triggers are using the same events and conditions + trigger 3 uses an IF condition.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
hi.
i have a stupid problem atm. im recreating TankDef from bw, and i wanna keep it as much originla as it can be.
i have the money system like this..
every 10 kills a player gets an zealot - there are 6 fields, 1 zealot for 10 minerals, 2 for 30, 3 for 90 etc.
zealot spawn on kill, everything works fine - also 1 for 10 works, its easy.
my problem now is the 2 and more for xx money.
how to tell the editor "if 2 zealots in region xyz then add 30 minerals and kill these both units" ?
any ideas?
Set up a counter variable maybe? Each time a zealot enters the region add 1 to the variable. When the variable = 2, kill the zealots and set the variable to 0.
Use a switch (search it in editor) based on the value of 'Units in region matching blabla' (you can set unit types and whether dead/not this way) Case 1: give player 1 10 minerals, case 2 give player 30 minerals, etc.
just change it to your regin and under conditions make it check to see if they are zealots
thanks, but i tried that already, doesnt work - dont know why.
and besides that it would be cheatable.
3 im going to try that, thanks for the info!
edit: #4 thank! think that will work
small side question, i never used "if then else" stuff in this editor.. i added it as an action, but im not able to edit anything of it.
how to :(?
looks like imtoo dumb for this.. switches or if then else actions are not editable anyhow.
i add them, then there are 3 different parts "if" "then" "else" but i cant tell him what to do in the "if" thing.. weird -.-
right click on the if and then select add conditional
also i would suggest adding the units to a unit group when they enter and removing them from the group if they leave, then when you have the number of units you want in the group do the actoin.
okay, thanks guys. i did it now like this_
Trigger1:
Trigger2:
Trigger 3:
this works good! thanks guys!
@PatchOne:
You could Easily mix up Trigger 1 and 3 to save execution time. As the two triggers are using the same events and conditions + trigger 3 uses an IF condition.