Okay, I'm trying to do that sheep-tagish trigger where when you attack the imprisoned unit, it creates a new unit.
But I want it to make the unit only when I attack a certain type of unit.
However, it isn't instantly in existence so I can't just select it.
Here's my current trigger:
Events
Unit - A unit owned by Player 1 (Red) Is attacked
Conditions
((Attacked unit) is Undead) Equal to True
((Attacking unit) is A peon-type unit) Equal to True
Actions
Unit - Create 1 Student for Player 1 (Red) at (Center of Region 001 <gen>) facing Default building facing degrees
Note: Student is a custom unit.
Another Note: I forgot what the code for the blue trigger thing was, sorry.
But I want it to make the unit only when I attack a certain type of unit.
However, it isn't instantly in existence so I can't just select it.
Here's my current trigger:
Events
Unit - A unit owned by Player 1 (Red) Is attacked
Conditions
((Attacked unit) is Undead) Equal to True
((Attacking unit) is A peon-type unit) Equal to True
Actions
Unit - Create 1 Student for Player 1 (Red) at (Center of Region 001 <gen>) facing Default building facing degrees
Note: Student is a custom unit.
Another Note: I forgot what the code for the blue trigger thing was, sorry.