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

[Solved] Help me find a way to finish my spell!

Status
Not open for further replies.
Level 7
Joined
Feb 9, 2010
Messages
298
I have been trying for some time to do this but without success.

So I need a trigger attached to a spell (any spell but let's take for example "Boodlust") the spell being cast by one unit over another unit (doesn't matter friend of foe) the unit that is under the effect of the spell should take damage (only once) at the casting of the spell on it.

Ex.: Let's say Unit A casts Bloodlust on Unit B, the moment this happens Unit B receives damage (only once per cast) equal to 45% of it's total HP.

The spell should not be able to kill the unit!

Also when Unit B's HP drops below 45% of his total HP the spell should not inflict any damage on it after casting it again and again.

Is it clear enough?
 
Level 17
Joined
Feb 11, 2011
Messages
1,860
  • Bloodlust
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Bloodlust
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Percentage life of (Target unit of ability being cast)) Greater than 45.00
        • Then - Actions
          • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (0.45 x (Max life of (Target unit of ability being cast))) damage of attack type Spells and damage type Normal
        • Else - Actions
 
Status
Not open for further replies.
Top