How to keep player data persistent, past death-exits?

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

How to keep player data persistent, past death-exits?

Post by wildweasel »

Many vanilla and Boom-compatible megawads lately are making heavy use of death-exits as a way to force players to start from a fresh spawn and clear the inventory. I can understand this from a mapper's viewpoint, especially in those megawads not designed for continuous play, but sometimes a gameplay mod really needs to hang on to some pieces of player data, especially RPG stats and other such things. Is there an acceptable way to make sure that this data is kept, even past a death-exit?
User avatar
Ed the Bat
Posts: 3060
Joined: Thu May 03, 2012 1:18 pm
Graphics Processor: nVidia with Vulkan support
Location: Maryland, US
Contact:

Re: How to keep player data persistent, past death-exits?

Post by Ed the Bat »

Death-exits are a primitive way to simulate having separate episodes in engines that wouldn't support that in MAPINFO/ZMAPINFO. Starting a new episode from the menu, as in Ultimate/Registered Doom, would likewise start with a clean slate of all inventory (including RPG tokens or the like), or even beginning a map with ResetInventory. Not to say I disapprove of what you're looking for. In fact, a clean and user-friendly way to preserve inventory when beginning a new episode would be nice as well. Something of a 'New Game+' feature instead of starting fresh.
Blue Shadow
Posts: 5046
Joined: Sun Nov 14, 2010 12:59 am

Re: How to keep player data persistent, past death-exits?

Post by Blue Shadow »

wildweasel wrote:Is there an acceptable way to make sure that this data is kept, even past a death-exit?
By storing this data in global variables or arrays. These are about the only thing forced pistol starts can't reset or destroy.
Locked

Return to “Editing (Archive)”