Code: Select all
Check for "Resurrection Stone" in PC inventory while true if PC health == 0 player->Resurrect player->addspell "Almsivi Intervention" player->addspell "custom restore" player->removeitem "Resurrection Stone ID"
1. Am I correct in assuming that putting resurrect first in the list will avoid the pause screen that makes the player pick to either load or start a new game
2. Is there a way to make the Almsivi intervention spell actually cast on the player? Or will this just add another spell to their inventory which they would then have to cast? I want to force it on them so they have to go to the nearest tribunal temple.
3. Would a while loop really work (or something to a similar effect) or is there a better way to handle making sure the player has it? Such as a quick check at health == 0 instead?
That's all I need to know for now. I thank you for all the hard work you've all done. If it wasn't for OpenMW this sort of thing really wouldn't work. Being able to resurrect the player character without breaking the game is nice.
edit: after some testing the Resurrect command works before the death animation even has a chance, so that's good. Thus far I have a working script to res the player! It's not attached to anything, but it works!
-Gabe the N'wah