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

Request - Revive when taken dmg doesnt blow x% of maxlife

Status
Not open for further replies.
Level 10
Joined
Jul 5, 2012
Messages
230
Hey I was wondering about this passive spell for my skeleton archer. It's supposed to be a reincarnation spell, that grants you every time (maybe with cooldown) reincarnation when the enemy isnt able to deal more than 20% of your life with the last hit.

Example:
Enemy does 50-250 dmg with each attack
Your max life is 1000
Your current life is 90

(so lets say the dmg dealt by enemy must be higher than 20% of your maxlife.)

Situation A: Enemy does 100dmg (thats below value 200 (20% of max life))
You'll revive

Situation B: Enemy does 250dmg (thats above value 200 (20% of max life))
You'll be dead (i.e. you'll revive by timer)

Skill Cooldown: once every 120/100/80/60 seconds

Is somebody able to help me?
 
Level 4
Joined
Mar 3, 2010
Messages
68
Here you go, map attached; it is all done in GUI. This spell requires Bribe's GUI Damage Engine v2.2.1.0 to work. Make sure you read up on how this system works if you want to modify this spell. It is very useful for many other things as well.

The Gui engine detects when damage is dealt and how much is dealt by any source whether it be attacks, triggers, or spells. Then I simply disable the reanimation ability for the player when the damage is greater than 20% of the targets maximum life.

You can test it out by letting the rock golem or the forest troll kill you. Be aware though that if the hero is revived via timer, you will need to re-enable the ability for the player.

If you have any questions just let me know.
 

Attachments

  • Reanimation.w3x
    28.8 KB · Views: 48
Last edited:
Level 10
Joined
Jul 5, 2012
Messages
230
Thanks a lot for the help. However, I've got one more question. I was trying to set up the skill that way, that you'll revive with only 25% of your maxlife. I tried this way, but without success:

unit - Unit ends ability
ability being cast = revive
unit - set life of triggering unit to 25%

Ild appreciate your help
 
Level 4
Joined
Mar 3, 2010
Messages
68
  • Disable Reanimation
    • Events
      • Game - DamageEvent becomes Equal to 1.00
    • Conditions
      • (Level of Reanimation for DamageEventTarget) Greater than or equal to 1
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • DamageEventAmount Greater than or equal to (Life of DamageEventTarget)
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • DamageEventAmount Greater than or equal to (0.20 x (Max life of DamageEventTarget))
            • Then - Actions
              • Player - Disable Reanimation for (Owner of DamageEventTarget)
            • Else - Actions
              • Set tempUnit = DamageEventTarget
              • Wait 7.00 seconds
              • Unit - Set life of tempUnit to 25.00%
        • Else - Actions
declared a new veriable called tempUnit to store the unit being hit
Make the wait = the reincarnation delay of the ability.
 
Status
Not open for further replies.
Top