alias changenextmap "special exit_normal %1 0"
alias changenextsecret "special exit_secret %1 0"
Note however m8f's solution does not require cheats enabled (nor do the map or changemap commands) - however, this solution does. So if you need to use it without cheats, then m8f's mod is better.
Re: A "changenextmap" command.
Posted: Wed Jul 28, 2021 3:06 am
by yum13241
m8f wrote:It's up to GZDoom devs to decide if to include this in the engine, just saying that this is possible mod-side.
Here is the mod. It adds changenextmap and changenextsecret commands.
Thank you. Now I don't have to start with a Piss-You-Off-Tol lol.
I'm gonna wait for Graf to sign off on this one - it isn't likely that a map might actually be named "next" but if there is - this could present a problem.
I'll move it to code submissions anyway.
Re: A "changenextmap" command.
Posted: Wed Jul 28, 2021 8:23 am
by Graf Zahl
If there's a map named "next" this will take precedence. The added checks will only be entered if the given map name does not exist.
I see no reason not to add this, it's still better than having to maintain aliases.
Re: A "changenextmap" command.
Posted: Wed Jul 28, 2021 8:24 am
by Rachael
Alright. Done and done, then.
Re: A "changenextmap" command.
Posted: Wed Jul 28, 2021 1:03 pm
by yum13241
Graf Zahl wrote:If there's a map named "next" this will take precedence. The added checks will only be entered if the given map name does not exist.
I see no reason not to add this, it's still better than having to maintain aliases.
Someone could make a map called "next" with a message saying for example:
"You cheater! Why would you skip my awesome levels! Shame, just shame on you!"
Which would effectively nullify this command.
Re: A "changenextmap" command.
Posted: Wed Jul 28, 2021 2:20 pm
by Rachael
yum13241 wrote:
Graf Zahl wrote:If there's a map named "next" this will take precedence. The added checks will only be entered if the given map name does not exist.
I see no reason not to add this, it's still better than having to maintain aliases.
Someone could make a map called "next" with a message saying for example:
"You cheater! Why would you skip my awesome levels! Shame, just shame on you!"
Which would effectively nullify this command.
There's an effective way to deal with said mapsets:
Spoiler:
Re: A "changenextmap" command.
Posted: Wed Jul 28, 2021 2:42 pm
by Enjay
Perfect response. I don't know why more people don't just take that line with mods that dick the player around.
Re: A "changenextmap" command.
Posted: Wed Jul 28, 2021 3:15 pm
by drfrag
No big deal but i could change it. * warps to the current map so we could use ** for next and *+ for nextsecret or something like that.
Re: A "changenextmap" command.
Posted: Wed Jul 28, 2021 3:26 pm
by Graf Zahl
Or just delete the "next" map...
Re: A "changenextmap" command.
Posted: Thu Jul 29, 2021 2:02 am
by drfrag
Yeah but we start to see a lot of "next" maps from now on that wouldn't be nice.
So i've made another PR to use + for next and +$ for nextsecret, besides this way is more consistent and simpler. https://github.com/coelckers/gzdoom/pull/1445