TRIGGER HELP - Switch control of unit to attacker...!

Status
Not open for further replies.
Level 2
Joined
Oct 18, 2004
Messages
18
I have completley forgotten how to do a trigger like this,


Enemy attacks other teams base, gets that base to 500 hp and it switches control to the attacking unit, then that bases hp replenishes.

I appreciate it if any of you can help me.
 
Wait so when somebody else gets your base down to 500 you want it to change ownership of the unit to the owner of the base? This is pretty easy:

Events:
Unit - Generic Unit Event ; A unit is attacked

Conditions:
Unit Type Comparison ; Unit Type of attacked unit = [the unit going below 500]
Real Comparison ; Life of (Attacked Unit) Less than or equal to 500

Actions:
Unit Change Owner ; Change owner of (Attacking Unit) to (Owner of Attacked Unit) and Change Color


The stuff in Cyan is the type of trigger and the stuff in orange is the value for that trigger.
 
Thank you sir.

but I think...

Change owner of (Attacking Unit) to (Owner of Attacked Unit) and Change Color

should be

Change owner of (Attacked Unit) to (Owner of Attacking Unit) and change color.

But i got the idea, I owe ya.

I also do not see this under change owner,

Change owner of (Attacking Unit) to (Owner of Attacked Unit) and Change Color

><
 
Status
Not open for further replies.
Back
Top