• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Stuck On This Trigger

Status
Not open for further replies.
Level 2
Joined
Aug 14, 2006
Messages
20
i have a trigger and it works but i want it to do more.
the trigger destroys the last building you made. i want it to be able to destroy the last built and the 2nd to last built.
this is what i have so far
  • Events
  • Unit - A unit Begins channeling an ability
  • Conditions
  • (Ability being cast) Equal to Cancel Farm
  • Actions
  • Unit - kill Last_Created[9Player number of (owner of (Triggering unit)))]
and then i have this to set Last_Created
  • Events
  • Unit - A unit Begins construction
  • Conditions
  • ((Triggering unit) is A structure) Equal to True
  • Actions
  • Set Last_Created [((player number of (Owner of (Triggering unit)))] = (Constructing structure)
i think i may have to change around the 2nd 1 i am not sure.
This same trigger is in Sheep Tag Revolution 6.2.3
 
Status
Not open for further replies.
Top