• 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.

[Trigger] GUI : Question

Status
Not open for further replies.
Level 10
Joined
Mar 25, 2010
Messages
187
Hi, i'm currently working on a triggered spell and am somewhat stuck.
The spell goes like this :
The Caster casts a spell on the target, dealing damage based on Agility ( this much i have finished ), then i'd like the caster to be healed for about 5% of his max health.
If anyone here could help me out i'd really appreciate it.

Edit : I just realized this is the wrong place to post this, i however don't know how to delete this thread. My apologies for that.
 
Last edited:
Level 10
Joined
Mar 25, 2010
Messages
187
Like this?

  • Events
    • Unit - A unit starts the effect of an abilty.
  • Conditions
    • (Ability being cast) Equal to Bloodthirst
  • Actions
    • Set BloodthirstCaster = Triggering Unit
    • Set BloodthirstDMG = ((Agility of BloodthirstCaster (include bonusses)) x2)
    • Set BloodthirstHealth = ((Real(BloodthirstDMG))x 0.05)
    • Unit - Cause BloodthirstCaster to damage (Target unit of ability being cast), dealing (Real(BloodthirstDMG)) damage.
    • Unit - Set life of BloodthirstCaster to ((Life of BloodthirstCaster + BloodthirstHealth)
 
Status
Not open for further replies.
Top