Jump to content

How to change items kept on death?


Aralvar

Recommended Posts

Hello, I am wondering if anyone is willing to give me instructions on how to mod the death penalty in Sandbox mode. I'd like to make it so I keep certain items on death and lose everything else. I'd also like it if everything from my corpse gets looted by an NPC every time or is lost somehow so that i can't get my stuff back from my body, but that comes second and isn't too important. If anyone is interested in helping me, I would GREATLY appreciate it! Changing the death penalty is what it takes for me to enjoy the game, so I really mean it when I say I greatly appreciate it. If you would be interested in helping me, please contact me through reply, private message, on Skype (my skype is prophetraz1311), or Steam (my steam is Mah little Desert Eagle). Thank you!

 

EDIT: What I need to know, specifically, is what files to edit and what I should type in to accomplish this. I was told this is a fairly easy thing to do, but for a noob like me who's only really interested in modding a couple things in the game; this is quite difficult. =P

Link to comment
Share on other sites

Hm lets see basically you will need to store the player's inventory upon his death and reload it on the next character creation.

 

You should be able to use the mod data of GameTime to make persistent saves from character to character. Not sure if it works on death but you could try the OnSave event first and for loading and comparing the mod data you could use OnNewGame (not sure if it  is called like that).

 

For starters you should take a look at this:

http://pz-mods.net/guide/get-what-data-getmoddata/

http://pz-mods.net/guide/event-reference/

http://theindiestone.com/forums/index.php/topic/61-robomats-modding-tutorials-updated-01102013/

 

Spelunking in the source code might help too :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...