Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Death Timer

Death Timer

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Gadush   (92 posts)  Bio
Date Mon 26 Jul 2004 03:55 AM (UTC)
Message
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
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #1 on Mon 26 Jul 2004 04:49 AM (UTC)
Message
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.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


11,709 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.