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

Simple Spell

Status
Not open for further replies.
Level 2
Joined
Aug 10, 2011
Messages
17
I saw this...

It helped me a lot. Just DL the map, then paste the triggers...

http://www.hiveworkshop.com/forums/spells-569/damage-event-1-0-0-0-a-201016/

By Bribe... The mod...

Then do the math for the resulting action once the damage is detected.

Events should be...

  • Game - DamageEvent becomes Equal to 1.00
Conditions should be...

  • ((Triggering unit) has buff Cripple) Equal to True

And actions...


  • Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) - ((Max life of (Triggering unit)) x 0.10))
  • Unit - Set life of DamageEventSource to ((Life of DamageEventSource) + ((Max life of (Triggering unit)) x 0.10))
 
Level 2
Joined
Aug 10, 2011
Messages
17
then use the action Unit - Damage unit

Which would cause the trigger to loop endlessly... and crash the game.

Speak of the devil, I needed that solved too, and the admin posted this...

Yes:

  • Damage Detect
    • Events
      • Game - DamageEvent becomes Equal to 1.00
    • Conditions
      • DamageRecursionBoolean Equal to false
      • -------- Your other conditions too, of course --------
    • Actions
      • Set DamageRecursionBoolean = true
      • Unit - Cause MyUnit to damage...
      • Set DamageRecursionBoolean = false
 
Yea, Damage Modifier will let you set the damage perfectly.

  • Damage Setter
    • Events
      • Game - DamageModifierEvent becomes Equal to 1.00
    • Conditions
      • DamageEventOverride Equal to false
      • (DamageEventTarget has buff Cripple) Equal to True
    • Actions
      • Set TempReal = (Max life of DamageEventTarget) x 0.10)
      • Set DamageEventAmount = (DamageEventAmount + TempReal)
      • Unit - Set life of DamageEventSource to ((Life of DamageEventSource) + TempReal)
 
Status
Not open for further replies.
Top