This is one of those things that's probably so damned simple it's eluding me. I created a level 16 neutral bandit, half-orc gunfighter-doctor character, used reworked versions of Jayna's scripts and dialog, AI #5, made sure the not revivable & not ressurectable boxes were not checked, - etc. etc. Basically created a half-orc version of Helena Sent (Car-Arcanum). My problem is that when she gets killed, her life cannot be replenished. Everything else has been successfully debugged but this... Any ideas?
Check that the mechanical flag is off. Are you sure it isn't a high tech aptitude cancelling the spell? Have you attached a script to the resurrect or heartbeat points?
The mechanical flag was never checked, but I'll take a look at the tech level. As for the attachments, yes. The resurrect, heartbeat, override, death, and dialog scripts were all adjusted for the new numbers and used. i.e. : 02880Jayna_Dialog.dlg is now 30355FaitheDialog.dlg. From there I went through the heartbeat, etc. and changed the script numbers to match.
Resurrect, heartbeat or death scripts could be responsible. I'd start by removing the scripts one by one until you find the culprit. If your resurrect script ends with "return and skip default" then resurrection will be prevented.
It was the resurrect script. I was scouting Dernholm and decided to study Jayna a bit and that's when I noticed she didn't have a resurrect script attached. When I made the decision to use Jayna's for a base, I just copied everything that had her name on it and went to work. Well - as it turns out, her resurrect script must have been glitched from the beginning as Troika never used it. Thanks for the suggestions though.
Just because a script isn't attached to a character doesn't mean it isn't used. Scripts can be swapped by commands in other scripts. Scripts can even be ran without ever being attached to anything (discovered this tonight actually). If I am thinking of the correct script, then the resurrect script you are talking about is actually a dialogue script. When Jayna dies her dialogue script is swapped for the "resurrect" script so she says something appropriate after being dead.
You're right, it is a dialog script and they can be swapped around, but in all the times I've ever played the game(s), I can't recall ever having Jayna say anything after being resurrected. Oh well - doesn't seem to hurt the game any. The good news is now my prototype mercenary works great. 19 more to go. BTW: When the script looks for things like PC level or alignment before bringing up the next line, would having a multiple standard like al>=20 lv<=16 (goto dialog) line 10 cause a conflict?
You can only have 1 condition per line so you must use 2 separate conditions. 1. IF al>=20 do nothing else return and run default 2. IF lv<=16 do nothing else return and run default So if you meet both requirements you will progress to line 3 of the script. In case you don't know, "do nothing" means just continue to the next line. It doesn't mean "stop and do nothing at all".