• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Easy Trigger Request 2 [+REP]

Status
Not open for further replies.
Level 14
Joined
Jul 28, 2009
Messages
1,085
Easy Two


i want to make an ability that destroys the last farms you created.
-= Farms already have Destroy ability =-
My sheep just need an ability to destroy the last farm created.
needs to work for RoC


- i need it for my sheep tag project :=)



:thumbs_up: i will give +REP for help ^^
 
Level 15
Joined
Oct 18, 2008
Messages
1,588
I will make the ability, but you must make the dummy spell :D

EDIT:Done!

  • Set Last Farm
    • Events
      • Unit - A unit Finishes construction
    • Conditions
      • (Unit-type of (Constructed structure)) Equal to Farm
    • Actions
      • Set Last_Farm[(Player number of (Owner of (Triggering unit)))] = (Constructed structure)
The other part:

  • Sheep Spell
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Destroy Last Farm
    • Actions
      • Unit - Kill Last_Farm[(Player number of (Owner of (Triggering unit)))]
(This only works if the last farm is alive, so it can destroy only the last, and after that it can't kell the one built before that xD
 
Status
Not open for further replies.
Top