• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] I need a triggers for heal a units ...

Status
Not open for further replies.
Heal or Essence of Blight are autocast abilities, so they have limited and very predefined uses. Heal of Paladin's can only damage Undead units by default (changing Targets allowed won't help), so you can use a spell based on Channel, with its settings:
• Follow Through Time: 0.00
• Data - Options: Visible
• Data - Target type: Unit

Remember to apply those changes for every level of the ability, along with the Data - Base Order Id field.

Then, triggers:
  • Trigger
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to (yourability)
  • Actions
    • Set LifeGained = (100 * (Real(Level of (Ability being cast) for (Triggering unit)))
    • Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast) + LifeGained)
LifeGained is a Real variable, for more about variables: http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/variables-5896/

Default Warcraft III abilities cannot have a heal that's based to let's say Intelligence of the caster, so you need triggers to define the healing amount.
 
Status
Not open for further replies.
Top