After i get into past the menu (function for the menus is sc, idk why) Can yall help? I'll send the code.Sorry if the code is hard to dissect. I tend to put functions wherever. Sorry about that!ALSO some functions dont exist yet, beware.
@echo offset /a lvl= 1title rpg yesgoto sc:scclsecho its a menu idk the title yetecho.echo.echo [1] New Gameecho [2] Load Gameecho [3] Quitset /p men=if %men% == 1 goto tutreqif %men% == 2 goto loadif %men% == 3 exitgoto sc:loadif exist save.txt FOR /F %%i IN (save.txt) DO set /a lvl= %%i && goto gameload ELSE goto nosave:nosaveclsecho Your Saved game cannot be found!echo.echo Want to start a new game instead? y/nset /a yn=if %yn% == y goto tutreqif %yn% == n goto scgoto load:tutreqclsecho Want a tutorial? y/nset /a yn2=if %yn2% == y goto tutif %yn2% == n goto gamegoto tutreq:tutclsecho Welcome to this world!echo.echo This game is your average fantasy RPG but probably worse.echo Every level cost 500 xp, every monster you fight gives you anything from 0-25 xp.echo Every level past 21 will not give you any sword power.echo To pass on to a new town you need to defeat the boss. There is no way to beat the game.echo Hopefully this helped!echo.echo Press any key to continue to the game.pause > nul :saveecho %lvl% > save.txtecho Saved! (press any key to get rid of this)pause > nulgoto game:gameloadset /a monis= 500set /a xp= 0set /a dam= 2000set /a health= 100if %lvl% == 1 set /a dam= 10if %lvl% == 2 set /a dam= 30if %lvl% == 3 set /a dam= 50if %lvl% == 4 set /a dam= 80if %lvl% == 5 set /a dam= 100if %lvl% == 6 set /a dam= 120if %lvl% == 7 set /a dam= 160if %lvl% == 8 set /a dam= 180if %lvl% == 9 set /a dam= 190if %lvl% == 10 set /a dam= 200if %lvl% == 11 set /a dam= 220if %lvl% == 12 set /a dam= 240if %lvl% == 13 set /a dam= 260if %lvl% == 14 set /a dam= 280if %lvl% == 15 set /a dam= 300if %lvl% == 16 set /a dam= 350if %lvl% == 17 set /a dam= 400if %lvl% == 18 set /a dam= 500if %lvl% == 19 set /a dam= 700if %lvl% == 20 set /a dam= 1000set /a area= 1set /a xpneed= 500goto naming:namingclsecho CHARACTER NAMINGecho.set /p name= Your Name: goto game:gameclsif %area% == 1 echo Pogvilleif %area% == 2 echo Swinevilleif %area% == 3 echo Boss Cityif %area% == 4 echo Springvaleif %area% == 5 echo Wild Areaecho.echo %name%:echo Level: %lvl%echo Sword Power: %dam%echo XP: %xp% / %xpneed%echo Cash: %monis%echo.echo [1] Fight Bossecho [2] Fight Minionsecho [3] Shopecho [4] Travel (LOCKED UNTIL BOSS BEATEN)echo [5] Saveecho [6] Quitset /a ga=if %ga% == 1 goto bossif %ga% == 2 goto ranminif %ga% == 3 goto shopif %ga% == 4 goto travelif %ga% == 5 goto saveif %ga% == 6 exitgoto game:bossset /a boss= 1set /a heal= 3if %area% == 1 set /a bosshe= 100 & set /a bossda= 20if %area% == 2 set /a bosshe= 300 & set /a bossda= 50if %area% == 3 set /a bosshe= 500 & set /a bossda= 60if %area% == 4 set /a bosshe= 800 & set /a bossda= 70if %area% == 5 set /a bosshe= 1000 & set /a bossda= 80clsecho BOSSecho.echo Boss Health: %bosshe%echo Boss Damage: %bossdam%echo.echo %name%'s Health: %health%echo %name%'s Sword Power: %dam%echo.echo.echo [1] Attackecho [2] Heal (%heal% Heals Left)echo [3] Concede.set /p boss=if %boss% == 1 goto attif %boss% == 2 goto healaif %boss% == 3 goto losegoto boss:attclsset /a bosshe-= %dam%echo %name% Attacks! (-%dam% Health to the boss)echo The boss is on %bosshe% health!pauseif %bosshe% LSS 1 goto winset /a health-= %bossda%echo.echo The Boss Attacks! (-%bossda% Health to %name%)echo %name% is on %health% Health!pauseif %health% LSS 1 goto losegoto boss:healaset /a health+= 50if %boss% == 0 goto minif %boss% == 1 goto boss:winclsecho You win! Health has been restored.pauseset /a health= 100if %boss% == 1 set /a xp+= 120 else set /a xp+= %random% %% 25set /a xp+= 120goto game:loseclsecho YOU LOSE!pausegoto game
I hope you all can find the problem! (I really hope yall can find it) Thanks in advance!