Spell rezz trigger problem

Status
Not open for further replies.
Level 2
Joined
May 28, 2010
Messages
22
I need a way to make my spell ressurect the unit after they die, something a priest can cast on another unit.
my trigger looks like this but it dosen't work (says image not valid size when i try to uplod so i'll summarize it)

events - unit - a unit dies.

conditions -- ((triggering unit) has buff righteous fury) = true

actions --- hero - instantly revive (triggering unit) at (position of (triggering unit)) , show revival graphics

Unit - set life (triggering unit) 50%

unit -- set mana (triggering unit) 50%

Any fix would be appreciated i don't need a trigger i would prefer some buff i could attach to my sell if possible. If needed ask me and i'll put my spell up but it's really long.
 
instantly revive does not work on units just heroes so my suggestion is this:
Events:
Unit- A unit dies
Conditions:Boolean-Unit has Righteous Fury buff
Actions:
If boolean-unit is a hero equal to true
then:
Revive dying unit instantly at position of dying unit
set life of dying unit to 50 %
set mana of dying unit to 50 %
else:
replace dying unit with unit type of dying unit at position of dying unit using new units max life and mana.
set life of Last Replaced unit to 50 %
set mana of Last Replaced unit to 50 %
 
Actually, the resurrection part is easy. I used Reincarnation in a disabled spellbook to make it work, but, you will need a snippet called "Event", to detect when the reincarnation happens, so as to set to the life and the mana percentage of your unit to 50%.
Triggers for the first and easy part:
  • Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Player - Disable Resurrection [Spell book] for (Player((Integer A)))
  • One
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Resurrection
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Resurrection [Spell book] for (Target unit of ability being cast)) Equal to 0
        • Then - Actions
          • Unit - Add Resurrection [Spell book] to (Target unit of ability being cast)
        • Else - Actions
          • Unit - Remove (Ability being cast) from (Triggering unit)
          • Unit - Add Resurrection to (Triggering unit)
  • Two
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Level of Resurrection [Spell book] for (Triggering unit)) Not equal to 0
    • Actions
      • Unit - Remove Resurrection [Spell book] from (Triggering unit)
Test map:
View attachment Resurrection TestMap.w3x
 
K Pharaoh_ solved my problem and i figured out the dying unit thig almost as soon as i asked it thought i changed the post but i guess it didn't show up as what i changed it to TY for all the help everyone
 
Status
Not open for further replies.
Back
Top