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

Help with Gold Trigger

Status
Not open for further replies.
Hey im trying to figure how to do a trigger so that it takes 10000 away here is what i got so far.

I dont know how to add take away 10000 gold.

  • Knight
    • Events
      • Unit - A unit enters Knight <gen>
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Triggering unit)) Equal to Basic Fuser
          • ((Owner of (Triggering unit)) Current gold) Equal to 10000
        • Then - Actions
          • Unit - Remove (Triggering unit) from the game
          • Unit - Create 1 Footman for (Owner of (Triggering unit)) at (Center of Knight Price Spawn <gen>) facing Default building facing degrees
        • Else - Actions
          • Do nothing
 
Status
Not open for further replies.
Top