Cedit and Player Corpses

  • WhiskyTest
  • WhiskyTest's Avatar Topic Author
  • Away
  • Gold Boarder
  • Gold Boarder
More
2 weeks 5 days ago #8094 by WhiskyTest
Cedit and Player Corpses was created by WhiskyTest
This is a snippet which adds a couple of configurable options into cedit.
The changes focus on corpse retrieval, and what happens to players items.
Update the settings using the cedit Gameplay menu, options T and U.


Corpse Creation Level
Set the level players have to reach before their equipment is transferred into their corpse upon death.
Intended to save new players from corpse retrieval while they are still acclimatizing to your MUD.

Corpse Decay Behavior
Define what happens when the corpse decomposes.
Default: the corpse is removed and all items are dropped into the room
Donate: the corpse is removed and all items are donated into a random donation room
Delete: the corpse and all objects are deleted from the game
Expandable so you can add your own ideas



Warning: Spoiler! [ Click to expand ]


File Attachment:

File Name: corpse_beh...6-03.zip
File Size:4 KB
Attachments:
The following user(s) said Thank You: Chime

Please Log in or Create an account to join the conversation.

More
3 days 4 hours ago #8113 by Chime
Replied by Chime on topic Cedit and Player Corpses
I was looking for something exactly like this. Thank you!

Please Log in or Create an account to join the conversation.

  • WhiskyTest
  • WhiskyTest's Avatar Topic Author
  • Away
  • Gold Boarder
  • Gold Boarder
More
6 hours 34 minutes ago #8124 by WhiskyTest
Replied by WhiskyTest on topic Cedit and Player Corpses
Most welcome!

And a bug correction, thanks to Vivienne:
case 'u':
    case 'U':
          write_to_output(d, "Select behavior of items upon PC corpse decomposition\r\n");
          write_to_output(d, "0) Default: items are left in the room\r\n");
          write_to_output(d, "1) Items are donated randomly\r\n");
          write_to_output(d, "2) Items are purged\r\n");
          write_to_output(d, "Enter choice: ");
          OLC_MODE(d) = CEDIT_CORPSE_DECAY_BEHAVIOR;
          return;
In the original, the numbers are all 1 higher than they should have been, making the decay behavior not what was expected.

Please Log in or Create an account to join the conversation.

Time to create page: 1.051 seconds