1. if there is at least a unit of player 1 or more in a region, a unit of player 1 attacks a unit of player 2. and if there is no a unit of player 1 in a region, the unit stops attaking a unit of player 2.
2. if player 1 has killed 20 units, create a unit for player 1.
Indeed these are pretty simple ones so its probly harder to explain these than to make this map and post here as attachment.
1. Set integer variable = number of units in unit group (owned by player1 in region x), then check if variable > 0 and depeneding on that issue order to attack.
2. unit dies, condition: triggering player = 1, modify variable (integer) +1, if variable = 20, create unit....
1. if there is at least a unit of player 1 or more in a region, a unit of player 1 attacks a unit of player 2. and if there is no a unit of player 1 in a region, the unit stops attaking a unit of player 2.
2. if player 1 has killed 20 units, create a unit for player 1.
sorry for those noob quetions.. please help me..
Indeed these are pretty simple ones so its probly harder to explain these than to make this map and post here as attachment.
1. Set integer variable = number of units in unit group (owned by player1 in region x), then check if variable > 0 and depeneding on that issue order to attack.
2. unit dies, condition: triggering player = 1, modify variable (integer) +1, if variable = 20, create unit....
Hope it helps atleat a tiny bit
@zenx1: Go
Thanks you. you saved my life...
@zenx1: Go I made a trigger and variables in the trigger.
event - map initialization /
local Variables - units integer = (Number of Units in region x.....) /
actions - if units integer > 0, then - marine to attack targetting barrack.
but it doesn't work. how do I do?
@zenx1: Go sorry.. now I made it work..