View Single Post
Old 03-24-2003, 11:42 PM   #2
Tezcatlipoca
Member
 
Join Date: Feb 2003
Posts: 46
Tezcatlipoca is an unknown quantity at this point
Well, i dont do ROM, but basically what your looking for is wherever the death is handled in the code. Make a char, get em killed, then copy a unique message it gives when you die. Do a grep command on the message until you find where it is. Somewhere in there it will "Extract" the character object from the room you died in, and transplant it in your "resurection room." Right after it does that, just manualy set their hitpoints to 1. Might be something like this to set the hp:
pc->hit = 1;

If you wanted to heal them to full then instead put in:
pc->hit = pc->hitmax;
(or the equvilent for your code). Personaly i wouldnt suggest doing this though, as you open yourself up real wide for players to just spam attack a mob until its dead (costing them many lives in the process, but who cares if theres no reprisals?) Better to just leave them at 1 hp to heal manually up. Then they have to either wait to heal fully, or use expensive/rare healing potions to get themself to full quickly.
Tezcatlipoca is offline   Reply With Quote