[Trigger] Another noob question

Status
Not open for further replies.
Level 1
Joined
Jun 11, 2009
Messages
3
i think if you do this
Event: Unit - A unit comes within 110.00 of Knight 0001 <gen>
Action: Unit - Order Knight 0001 <gen> to Attack (Triggering unit)
 
Level 12
Joined
Jul 27, 2008
Messages
1,181
Just have every unit in the map indexed for the event:
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • Unit Group - Pick every unit in (Playable Map Area) and do:
      • Unit Group - Add (Picked Unit) to ...Group...
  • Events
    • Unit - A Unit enters (Playable Map Area)
  • Conditions
    • Unit-Type of (Triggering Unit) Not Equal to ...UnitType...
  • Actions
    • Unit Group - Add (Triggering Unit) to ...Group...
  • Events
    • Unit - A Unit enters (Playable Map Area)
  • Conditions
    • Unit-Type of (Triggering Unit) Equal to ...UnitType...
  • Actions
    • Unit Group - Pick every unit in (Playable Map Area) Matching (Unit-Type of (Triggering Unit) Not Equal to ...UnitType...) and do:
      • Add to ...Trigger... the event (Picked Unit) is within 110 of (Entering Unit))
 
Status
Not open for further replies.
Top