First post, by Terrapin
- Rank
- Newbie
Hey Vogonites,
I've been dabbling in conf files for a while now and have been using the 3D Realms Anthology .bat and .conf files to create my own automated DOSbox 'scripts?'
Anyways, I'm looking to build a few lists within the autoexec conf's. I know 'how' to build a list now (via copy and paste 🤣, with a few modifications), but I'm looking to build lists within lists.
Example:
[Game Name]
by [Developer Info]
1. Commander Keen 1
2. Commander Keen 2
3. Commander Keen 3
4. Commander Keen Mods
5. Exit
End Example.
When pressing 4, I would like to be taken to a separate menu that would allow me to choose different mods.
Here is the code/strings behind the menu itself.
Mount C ".."
C:
cls
echo.
echo [29;1m Commander Keen in: Invasion of the Vorticons
echo [30;1m by Apogee
echo.
echo [30;1m NOTE: To switch between windowed and full-screen press ALT+ENTER
echo.
echo [32;1m 0. Part 0 - Printed To Pluto
echo [32;1m 1. Part 1 - Marooned on Mars
echo [33;1m 2. Part 2 - The Earth Explodes
echo [34;1m 3. Part 3 - Keen Must Die!
echo [34;1m 4. Mods
echo [31;1m 5. Exit
echo [0m
choice /c012345 /s Choose your episode: /n
echo.
if errorlevel == 5 goto exit
if errorlevel == 4 goto e4
if errorlevel == 3 goto e3
if errorlevel == 2 goto e2
if errorlevel == 1 goto e1
if errorlevel == 0 goto e0
:e0
call KEEN0.bat
exit
:e1
KEEN1.exe
exit
:e2
KEEN2.exe
exit
:e3
KEEN3.exe
exit
:e4
exit
:exit
exit
Where ':e4' is, would I be able to copy and paste the list portion without the script getting confused with the other entries in the list, or would I need to add any other specific commands to let the system know that ':e4' is a separate, contained list??