• 🏆 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!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

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