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).
Is "conditional exit" from a level possible?
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.
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.
Re: Is "conditional exit" from a level possible?
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
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
Re: Is "conditional exit" from a level possible?
Thanks for your reply. Since I am just a beginner, could you please provide a short example or a link to a tutorial?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
Re: Is "conditional exit" from a level possible?
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
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