• 🏆 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 add buffs

Status
Not open for further replies.
You need to make an ability based off another ability that already has a buff, e.g. Trueshot Aura, Thorns Aura...
Then, you need to create a Spell Book - based ability, set Maximum spells to 1 and Minimum spells to 1 and Data - Spells list add your custom buff ability.
Finally, use this:
  • Trigger
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • For each (IntegerA) from 1 to 12, do (Actions)
      • Loop - Actions
        • Player - Disable Spellbook (custom) for (Player(IntegerA))
Whenever you want to add the buff, use
  • Unit - Add Spellbook (custom) to (Triggering unit)
It's the Unit - Add ability action.

Reference:
http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/mysteries-spellbook-33039/
 
Level 14
Joined
Nov 18, 2007
Messages
1,084
To achieve that, you would still need an ability, but without a dummy unit.

You should follow Pharaoh_'s method for doing it. I'll expand a little bit on what he meant.

"ability based off another ability that already has a buff" just really means an Aura ability.
In whichever ability you chose to be your Buff giver, set the targets to Self and the buff to whichever buff you want it to be. Modify the fields to your liking. Then give that ability to the unit. If you want some kind of SFX to be attached to your unit, edit the Art - Target fields in the ability itself instead of doing it in the buff.

If you don't want the ability's icon to appear in the unit's command interface, you'll need to use spellbooks which Pharaoh_ has outlined for you. Or you could just use Slow Aura (Tornado) for your base ability but keep in mind that the buff will be considered negative and have red text.
 
Status
Not open for further replies.
Top