• 🏆 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!

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