Welcome to the Builder Academy

Question Cedit and Player Corpses

More
03 Jun 2018 14:46 - 18 Dec 2018 13:55 #8094 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!

Attachment corpse_behavior_2018_12_18.zip not found

Attachments:
Last edit: 18 Dec 2018 13:55 by WhiskyTest. Reason: Bug fixes
The following user(s) said Thank You: Banlock, Sascha, Chime, jandulio

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

More
20 Jun 2018 09:38 #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.

More
23 Jun 2018 07:22 #8124 by WhiskyTest
Replied by WhiskyTest on topic Cedit and Player Corpses
Most welcome!

And a bug correction, thanks to Vivienne:
Code:
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
23 Jun 2018 22:38 #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!

Will you stand against the coming Storm? After the Breaking: STORMRIDERS MUD - atbmud.dune.net port 4000

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

More
06 Dec 2018 00:22 #8252 by Sascha
Replied by Sascha on topic Cedit and Player Corpses
So hmm. As I've been working on a mini-adventure I have noticed that when anything dies, their items are dropping into the room as soon as the mob is killed instead of staying on the corpse. I'm wondering if this snippet caused this?

Will you stand against the coming Storm? After the Breaking: STORMRIDERS MUD - atbmud.dune.net port 4000

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

More
06 Dec 2018 00:28 #8253 by Sascha
Replied by Sascha on topic Cedit and Player Corpses
Also, because items are being dropped into the room, when the (empty) corpse decomposes there's obviously nothing being sent to the donation rooms or auto-purged.

Will you stand against the coming Storm? After the Breaking: STORMRIDERS MUD - atbmud.dune.net port 4000

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

Time to create page: 0.208 seconds