should i use them both on the same trigger??
here's what i have done..
sandworm spwan
Events
Unit - A unit enters sandworm spwam <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Pit Lord
Actions
Set SAND[1] = Pit Lord
-
sandworm spwan
-
Events
-
Unit - A unit enters sandworm spwam <gen>
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to Pit Lord
-
Actions
and this on another trigger..? and it doesnt work for me.. am i doing something wrong.
-
v32
-
Events
-
Time - Every 1.00 seconds of game time
-
Conditions
-
Actions
-
If ((Player 1 (Red) Current lumber) Greater than (Player 1 (Red) Current lumber)) then do (Unit - Change ownership of herosandworm[1] to Player 1 (Red) and Change color) else do (Unit - Change ownership of herosandworm[1] to Player 2 (Blue) and Change color)
what i was previously doing was
i used an elapsed ttime event of 10 min for the gaint to spwan on the map..after 10 mins of map initialization..
and a generic event of unit dies..
with a condition of triggering unit is a unit of unit type gaint..
action
if all conditions are true then do (then actions) else do (else actions)
if conditions
player1 current lumber > player 2 current lumber
then actions
unit change ownership of (i gt stuck here because the variable is declared for unit type and not just unit)...which forces me to add the gaint in the map from the start.
however my else actions would be
if (all conditions are true ) then do (then actions) else do (else actions)
if conditions
Player 1 current lumber < than player 2 current lumber
then actions
unit change ownership (again i gt stuck here because i cant use the unit type variable on unit..) to player to and change color
else actions
game : displays the text : both player have same lumber
unit change owenership of gain to neutral hostile and change color.