• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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