![]() |
#1 |
Posts: n/a
|
When anyone dies, and their health drops to a negative, it never recovers. I want them to heal automatically when they die. I tried putting in a restore piece, but that kept healing the whole room. I run rom24b6
|
![]() |
![]() |
#2 |
Member
Join Date: Feb 2003
Posts: 46
![]() |
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. |
![]() |
![]() |
![]() |
#3 |
Member
|
My two cents would be in agreement with the previous post. I would certainly suggest leaving the player's hit points at 1 and allowing them to heal. i use lpc code and i find that the use of bodis is a better idea. there are player bodies and ghost bodies and upon death, a player (and it's data) is put into the ghost body which has different commands.
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
I'm Dying | jtrpdx | Advertising for Players | 9 | 07-23-2006 03:17 PM |
Ruby Error | NotL337 | MUD Coding | 2 | 07-21-2006 11:14 PM |
error when trying to compile | UnKnOwN | MUD Coding | 0 | 04-07-2006 02:53 PM |
an error i got | UnKnOwN1205 | MUD Coding | 1 | 01-09-2005 03:45 PM |
Compile error | melker | MUD Coding | 37 | 07-22-2002 02:23 PM |
|
|