scriptname Resurrect
short updatecount
begin ScriptEffectStart
Resurrect 1
End
Begin ScriptEffectUpdate
set updateCount to updateCount + 1
End
Begin ScriptEffectFinish
Message "Spell is finished. ScriptEffectUpdate was run %.0f times", updateCount
End
Everything goes fine right up until I cast it, no errors or anything, but it just doesn't do anything. The effect activates on the subject, but it doesn't rise.
Script effects do not run on dead actors, the supposed target for your spell.
In addition, a note of warning - "resurrect 1" will erase any abilities that the target actor has: a resurrected High Elf will lose the elemental weaknesses, disease resistance, and fortified magicka. In the case of a race that has abilities and powers (for example, Nord; resits frost ability, shiled and frost damage powers), abilities are lost but I believe that powers remain.
Another problem is that resurrecting will still cause "getdeadcount" to ring true - if Jauffre dies, for example, not amount of console or script medling can change the fact that he is dead. However, "getdead" will run properly.