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

How to make an item and buff that reduce mana cost of all abilities

Status
Not open for further replies.
Level 29
Joined
Feb 18, 2014
Messages
3,583
  • Reduce Cooldown
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Crown of Kings +5
    • Actions
      • Trigger - Turn off (This trigger)
      • For each (Integer A) from 1 to 3, do (Unit - For Unit (Triggering unit), Set mana cost of ability Flame Strike, Level: (Integer A) to 30)
      • For each (Integer A) from 1 to 3, do (Unit - For Unit (Triggering unit), Set mana cost of ability Banish, Level: (Integer A) to 30)
      • For each (Integer A) from 1 to 3, do (Unit - For Unit (Triggering unit), Set mana cost of ability Siphon Mana, Level: (Integer A) to 30)
      • Unit - For Unit (Triggering unit), Set mana cost of ability Phoenix, Level: 1 to 30
      • Trigger - Turn on Increase Cooldown <gen>
  • Increase Cooldown
    • Events
      • Unit - A unit Loses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Crown of Kings +5
    • Actions
      • Trigger - Turn off (This trigger)
      • For each (Integer A) from 1 to 3, do (Unit - For Unit (Triggering unit), Set mana cost of ability Flame Strike, Level: (Integer A) to 75)
      • For each (Integer A) from 1 to 3, do (Unit - For Unit (Triggering unit), Set mana cost of ability Banish, Level: (Integer A) to 75)
      • For each (Integer A) from 1 to 3, do (Unit - For Unit (Triggering unit), Set mana cost of ability Siphon Mana, Level: (Integer A) to 75)
      • Unit - For Unit (Triggering unit), Set mana cost of ability Phoenix, Level: 1 to 75
      • Trigger - Turn on Reduce Cooldown <gen>
For buffs, it's the same thing, you just need to detect when a unit has a specific buff.
 
Last edited:
Status
Not open for further replies.
Top