NEXTMAP but Keep Inventory?

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
User avatar
Barry Burton
Posts: 87
Joined: Tue Sep 03, 2019 2:20 pm

NEXTMAP but Keep Inventory?

Post by Barry Burton »

Sorry if this is a silly question but I did look in the wiki and couldn't find an answer, so:

Is there a command like NEXTMAP but allows one to keeps one's weapons and armour?

Thanks for any help.
User avatar
Enjay
 
 
Posts: 27108
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: NEXTMAP but Keep Inventory?

Post by Enjay »

use

changemap mapname

at the console, that will end the current map as if you'd hit an exit switch and then take you to whichever map you specified by mapname (e.g. map02)
Jarewill
 
 
Posts: 1853
Joined: Sun Jul 21, 2019 8:54 am

Re: NEXTMAP but Keep Inventory?

Post by Jarewill »

While there isn't normally a command to go to the next map while keeping everything, you could easily set it up yourself using ACS and Console aliases.
As a proof of concept, here is a small mod that should do the trick. Just open the console, type in nextmap2 and close the console.

Otherwise, do as Enjay says.
Attachments
NextMap2.wad
(327 Bytes) Downloaded 76 times
User avatar
AFADoomer
Posts: 1344
Joined: Tue Jul 15, 2003 4:18 pm
Contact:

Re: NEXTMAP but Keep Inventory?

Post by AFADoomer »

You can use 'special 243' (or 'special Exit_Normal 0') to manually call the "Exit_Normal" action special. In most cases, that'll do what you want.
User avatar
Rachael
Posts: 13955
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: NEXTMAP but Keep Inventory?

Post by Rachael »

AFADoomer wrote:You can use 'special 243' (or 'special Exit_Normal 0') to manually call the "Exit_Normal" action special. In most cases, that'll do what you want.
This is what I normally do.

Just to clarify: You can type "special exit_normal 0" as a console command.

If you don't want to remember all that, you can type this:

Code: Select all

alias exitmap \"special exit_normal 0\"
Then all you have to type is "exitmap".

For secret exit you can do this:

Code: Select all

alias exitsecret \"special exit_secret 0\"
And "exitsecret" will work for that.
User avatar
Enjay
 
 
Posts: 27108
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: NEXTMAP but Keep Inventory?

Post by Enjay »

Yeah, sorry, I'm unclear as to whether the OP was asking for a console/cheat command or something that can be done via a script or exit line.
Jarewill
 
 
Posts: 1853
Joined: Sun Jul 21, 2019 8:54 am

Re: NEXTMAP but Keep Inventory?

Post by Jarewill »

Woah, so it's possible to use line specials in the console? Now that is useful to know!
And here I was recently wondering about executing them on the fly for debugging purposes. :lol:
User avatar
Barry Burton
Posts: 87
Joined: Tue Sep 03, 2019 2:20 pm

Re: NEXTMAP but Keep Inventory?

Post by Barry Burton »

Thanks so much for all the info. Basically, I was looking to just assign a key (as I have with NEXTMAP) for testing stuff on different maps quickly. You've really helped me here. Thanks again. :)
Post Reply

Return to “General”