Is "conditional exit" from a level possible?

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.
Post Reply
drako
Posts: 30
Joined: Fri Jan 08, 2016 8:16 pm

Is "conditional exit" from a level possible?

Post by drako »

Is it possible to implement the following scenario (accepted by most/all ports):

MAP01 has normal exit to MAP02 and a secret exit to MAP10
MAP03 has a normal exit to MAP04 and a secret exit to MAP10

MAP10 has one (normal) exit which sends the player to MAP02 (if entered from MAP01) or to MAP04 (if entered from MAP03).

(BTW. I am a complete beginner in modding).
Diode
Posts: 53
Joined: Mon Feb 29, 2016 2:34 pm

Re: Is "conditional exit" from a level possible?

Post by Diode »

Certainly.

There will be a ton of ways to do it, but the most obvious one I can think of is to use SetLineSpecial with Exit_Normal
drako
Posts: 30
Joined: Fri Jan 08, 2016 8:16 pm

Re: Is "conditional exit" from a level possible?

Post by drako »

Diode wrote:Certainly.

There will be a ton of ways to do it, but the most obvious one I can think of is to use SetLineSpecial with Exit_Normal
Thanks for your reply. Since I am just a beginner, could you please provide a short example or a link to a tutorial?
User avatar
Zen3001
Posts: 412
Joined: Fri Nov 25, 2016 7:17 am
Location: some northern german shithole

Re: Is "conditional exit" from a level possible?

Post by Zen3001 »

The wiki has everything you need, except there's a lack of information about zscript.
There are lists of all functions in decorate and acs. here's what Diode mentioned: SetLineSpecial Exit_Normal
but I'm not sure if that's very usefull without global variables you might also need global scopes
Post Reply

Return to “Mapping”