QUOTE(DarkGospel02 @ Sep 27 2025, 12:03)

mostly learning in progress, something to do with coding
I just made a Virtual Pet game using notepad, just copy and save this code below in .bat extension:
CODE
@echo off
title Adhi Virtual Pet Game
setlocal enabledelayedexpansion
cls
echo.
echo Welcome to My Virtual Pet Game!
goto :type_pet
:type_pet
echo.
:type_loop
set /p pet_type="What kind of pet would you like to adopt? "
if "%pet_type%"=="" goto :type_loop
echo You have chosen a %pet_type%!
goto :name_pet
:name_pet
echo.
:name_loop
set /p pet_name="What do you want to name your %pet_type%? "
if "%pet_name%"=="" goto :name_loop
echo Your %pet_type% is now named %pet_name%!
echo.
set /a growth+=0
set evostage=Baby
pause
cls
goto start
:start
echo.
if %growth% gtr 5 set evostage=Child
if %growth% gtr 10 set evostage=Teen
if %growth% gtr 20 set evostage=Mature
if %growth% gtr 88 set evostage=Elder
if %growth% gtr 100 set growth=100
echo Name: %pet_name%
echo Species: %pet_type%
echo Growth: %growth% (%evostage%)
if "%growth%"=="100" goto ending
echo.
set /a min=1
set /a max=12
set /a range=(%max% - %min% + 1)
set /a randomNumber=(%RANDOM% %% %range%) + %min%
if "%randomNumber%"=="1" goto feed
if "%randomNumber%"=="2" goto feed
if "%randomNumber%"=="3" goto feed
if "%randomNumber%"=="4" goto feed
if "%randomNumber%"=="5" goto feed
if "%randomNumber%"=="6" goto play
if "%randomNumber%"=="7" goto play
if "%randomNumber%"=="8" goto play
if "%randomNumber%"=="9" goto play
if "%randomNumber%"=="10" goto play
if "%randomNumber%"=="11" goto sick
if "%randomNumber%"=="12" goto treasure
:feed
set /p pet_food="What would you feed %pet_name% with? "
cls
echo %pet_name% is eating %pet_food%...
set /a growth+=%randomNumber%
goto start
:play
set /p pet_play="What would you play with %pet_name%? "
cls
echo You are playing %pet_play% with %pet_name%...
set /a growth+=%randomNumber%-5
goto start
:sick
echo %pet_name% is sick, take a shot and drink medicine....
set /a growth-=4
echo.
pause
cls
goto start
:treasure
echo %pet_name% goes on adventure and found a treasure chest...
echo You and %pet_name% is very happy...
set /a growth+=7
echo.
pause
cls
goto start
:ending
echo.
echo Congratulations, Your %pet_type% (%pet_name%) have Maxed Growth.
pause
exit