Death Timer

Posted by Gadush on Mon 26 Jul 2004 03:55 AM — 2 posts, 14,343 views.

#0
Hi all.

I would like to code the following death system and wonder if something close has been done already, or if anyone can offer me a good place to start.
When a PC dies, their corpse and all their things fall, and the PC is transported to an area called Fugue (or whatever). A timer is set, and after this timer expires the PC is respawned. The time remaining can be seen on the PCs score sheet.
Eventually I would like to allow a PC to specify where they will respawn from a limited number of choices, but for now just getting them sent to the Fugue with a timer would be excellent.
Any and all suggestions are appreciated.
Gadush
Canada #1
Yeah, have a member of pcdata called deathtimer, have it updated in an update, whichever one you want for how long you want it. You can even have a pointer on them to a room of their choice to respawn in, perhaps, "respawn <room>" as a command, and no argument shows them their options. When they die, one is set as a default, and they have the oppurtunity to change this while in fugue. Time expires, "char_to_room(ch, ch->pcdata->respawnroom);" Something like that would probably work.