Episode Selection Submenus

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
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.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
Faceman2000
Posts: 26
Joined: Sun Sep 09, 2018 4:30 pm

Episode Selection Submenus

Post by Faceman2000 »

Hey everyone, I'm messing around with MENUDEFs and I'm having a hard time figuring this out.

What I would like to do is have the Episodes Menu divided into submenus, so that when I open it up I see:

>Ultimate Doom
>Doom 2
>TNT: Evilution
>Plutonia
>The Master Levels

But then, if I select "Ultimate Doom" it pulls up a new menu displaying Ultimate Doom's four episodes, or if I select Doom 2 it'll show its three episodes, etc. Now the first part is easy - I've just made a ListMenu that displays all the games like I showed above, but then it gets trickier for me. I was hoping to have each of those options pull up another ListMenu showing the individual episodes, but the episodes would be Commands that use the console command "map" to load the appropriate level. This errors out - it seems that despite how its documented on the ZDOOM wiki, "Command" is not actually a viable, um, command for ListMenus. Now, I know that the feature for pulling in the episodes from MAPINFO is hardcoded and can't be messed with, but is there some other kind of work around I can do to make this work?
Post Reply

Return to “Scripting”