Keep custom key between maps

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, 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.
User avatar
Aeddes
Posts: 12
Joined: Wed Aug 10, 2022 12:58 pm
Preferred Pronouns: He/Him

Keep custom key between maps

Post by Aeddes »

Hello.

Is there any way to keep a custom keycard between maps?

I'm creating a WAD with three normal maps and one secret map.
At map 02, the secret exit goes to map31, and from MAP31, normal exit go to map 03.

What i'm looking for is: if player find the secret exit at map 2, will got a specific key (custom key) at MAP31 and keep it to use at map 3 for an alternative end.

I've found this: +INVENTORY.PERSISTENTPOWER, but didn't work on the custom key.

Doom 2 IWAD, UDMF.

Any help appreciated.

Thanks in advance.
Blue Shadow
Posts: 4987
Joined: Sun Nov 14, 2010 12:59 am

Re: Keep custom key between maps

Post by Blue Shadow »

Aeddes wrote: Sun Sep 17, 2023 3:13 pm I've found this: +INVENTORY.PERSISTENTPOWER, but didn't work on the custom key.
That's just for powerups. What you want, instead, is Inventory.InterHubAmount (set it to 1).
User avatar
Aeddes
Posts: 12
Joined: Wed Aug 10, 2022 12:58 pm
Preferred Pronouns: He/Him

Re: Keep custom key between maps

Post by Aeddes »

Blue Shadow wrote: Sun Sep 17, 2023 8:06 pm
Aeddes wrote: Sun Sep 17, 2023 3:13 pm I've found this: +INVENTORY.PERSISTENTPOWER, but didn't work on the custom key.
That's just for powerups. What you want, instead, is Inventory.InterHubAmount (set it to 1).
Thanks man!!

Return to “Mapping”