Cedit and Player Corpses

  • WhiskyTest
  • WhiskyTest's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
More
2 months 2 weeks 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: Banlock, Chime

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

More
2 months 1 day 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
  • Offline
  • Gold Boarder
  • Gold Boarder
More
1 month 4 weeks 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.
The following user(s) said Thank You: Chime

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

More
1 month 4 weeks ago #8126 by Sascha
Replied by Sascha on topic Cedit and Player Corpses
By the way - this works beautifully, as intended, and I am loving it. Thanks so much for tackling it, Whisky!

Dovie'andi se tovya sagain. After the Breaking MUD, now in beta testing...

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

Time to create page: 1.169 seconds