Keeping specific inventory item through map change clear

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
User avatar
Posts: 220
Joined: Thu Aug 10, 2017 9:38 am

Keeping specific inventory item through map change clear

Post by Virathas »

Hey all!

I have been pondering how to keep a specific inventory items through map change inventory clearing shenanigans. In most cases, the inventory is cleared by forced teleportation into barrels/voodoo doll that kills and throws the player through map change line.

The question is, how can i keep specific inventory item, with meta-data, from being cleared from inventory? Is it possible to force a resurrect to a player once the player completes the map? Is it possible to keep the inventory "outside" the PlayerPawn, and then reattach it once the new map starts? In this regard, is it possible to have more than just players travel between levels?

ACS solutions are not doable in this case, as the inventory item will have plenty of additional data. ZScript is preferred

Return to “Scripting”