- Maak nieuwe tekstdocument.
- Sla het op als "bat" of "cmd".
- Kopieer en plak de onderstaande code erin.
Code:
Echo offmode con cols=80 mode con lines=40 color 90 setlocal ENABLEDELAYEDEXPANSION Title Animal fight set money=0 set lvl=3 goto start:start color 1b Title AJ CMD cls echo. echo. set /p name=- ENTER NAME: if %name%==' ' goto start if %name%=='' goto start goto start1:start1 cls echo. echo. echo: 1) Bunny echo. echo: 2) Seal echo. echo: 3) Wolf echo. echo: 4) Koala echo. echo: 5) Monkey echo. echo: 6) Panda echo. echo: 7) Penguin echo. echo: 8) Turtle echo. echo: 9) Tiger echo. echo: Choose an animal: choice /c 123456789 >> nul if %errorlevel%==1 ( set animal=Bunny set /a at1=%lvl% * 2 set /a at2=%lvl% * 2 set at1n=Thump set at2n=Puff tail set /a full=%lvl% * 5 set /a ahp=%lvl% * 5 goto city ) if %errorlevel%==2 ( set animal=Seal set /a at1=%lvl% * 2 set /a at2=%lvl% * 2 set at1n=Flipper set at2n=Swim set /a full=%lvl% * 5 set /a ahp=%lvl% * 5 goto city ) if %errorlevel%==3 ( set animal=Wolf set /a at1=%lvl% * 2 set /a at2=%lvl% * 2 set at1n=Howl set at2n=Claws set /a full=%lvl% * 5 set /a ahp=%lvl% * 5 goto city ) if %errorlevel%==4 ( set animal=Koala set /a at1=%lvl% * 2 set /a at2=%lvl% * 2 set at1n=Climb set at2n=Cuddle set /a full=%lvl% * 5 set /a ahp=%lvl% * 5 goto city ) if %errorlevel%==5 ( set animal=Monkey set /a at1=%lvl% * 2 set /a at2=%lvl% * 2 set at1n=Climb set at2n=Swing set /a full=%lvl% * 5 set /a ahp=%lvl% * 5 goto city ) if %errorlevel%==6 ( set animal=Panda set /a at1=%lvl% * 2 set /a at2=%lvl% * 2 set at1n=Bamboo eat set at2n=Cuddle set /a full=%lvl% * 5 set /a ahp=%lvl% * 5 goto city ) if %errorlevel%==7 ( set animal=Penguin set /a at1=%lvl% * 2 set /a at2=%lvl% * 2 set at1n=Belly slide set at2n=Waddle set /a full=%lvl% * 5 set /a ahp=%lvl% * 5 goto city ) if %errorlevel%==8 ( set animal=Turtle set /a at1=%lvl% * 2 set /a at2=%lvl% * 2 set at1n=Shell spin set at2n=Shell slam set /a full=%lvl% * 5 set /a ahp=%lvl% * 5 goto city ) if %errorlevel%==9 ( set animal=Tiger set /a at1=%lvl% * 2 set /a at2=%lvl% * 2 set at1n=Pounce set at2n=Scrape set /a full=%lvl% * 5 set /a ahp=%lvl% * 5 goto city ) goto start1:city title City color 1a cls echo. echo. echo: 1) Den echo. echo: 2) Fight echo. echo: 3) Store echo. echo: Choose an option: choice /c 123 >> nul if %errorlevel%==1 goto home if %errorlevel%==2 goto battle if %errorlevel%==3 goto store goto city:home color 1a title Den cls echo. echo. echo: %name% echo ____________________________________________________________________ echo: Animal (%animal%) echo. echo: lvl (%lvl%) echo. echo: Money (%money%) echo. pause >> nul goto city:battle set /a wr=%random% %%!30 +0 goto ran:ran if %wr%==1 ( set wild=Yada set wlvl=2 set /a whp=%wlvl% * 4 set /a wat=%wlvl% * 2 goto battle1 ) if %wr%==2 ( set wild=Looloo set wlvl=3 set /a whp=%wlvl% * 4 set /a wat=%wlvl% * 2 goto battle1 ) if %wr%==3 ( set wild=Scaryman5475 set wlvl=8 set /a whp=%wlvl% * 4 set /a wat=%wlvl% * 2 goto battle1 ) if %wr%==4 ( set wild=Soory set wlvl=4 set /a whp=%wlvl% * 4 set /a wat=%wlvl% * 2 goto battle1 ) if %wr%==5 ( set wild=Eerick set wlvl=25 set /a whp=%wlvl% * 4 set /a wat=%wlvl% * 2 goto battle1 ) if %wr%==6 ( set wild=BinkyBoinky set wlvl=13 set /a whp=%wlvl% * 4 set /a wat=%wlvl% * 2 goto battle1 ) if %wr%==7 ( set wild=AmiraFluffy set wlvl=13 set /a whp=%wlvl% * 4 set /a wat=%wlvl% * 2 goto battle1 ) if %wr%==8 ( set wild=Meero set wlvl=8 set /a whp=%wlvl% * 4 set /a wat=%wlvl% * 2 goto battle1 ) if %wr%==9 ( set wild=NewJammer set wlvl=1 set /a whp=%wlvl% * 4 set /a wat=%wlvl% * 2 goto battle1 ) if %wr%==10 ( set wild=Spottedfire180 set wlvl=180 set /a whp=%wlvl% * 4 set /a wat=%wlvl% * 2 goto battle1 ) if %wr%==11 ( set wild=Just4that set wlvl=22 set /a whp=%wlvl% * 4 set /a wat=%wlvl% * 2 goto battle1 ) if %wr%==12 ( set wild=Sky2020 set wlvl=2020 set /a whp=%wlvl% * 4 set /a wat=%wlvl% * 2 goto battle1 ) if %wr%==13 ( set wild=Sky1515 set wlvl=15 set /a whp=%wlvl% * 4 set /a wat=%wlvl% * 2 goto battle1 ) if %wr%==14 ( set wild=Persiagirls set wlvl=33 set /a whp=%wlvl% * 4 set /a wat=%wlvl% * 2 goto battle1 ) if %wr%==15 ( set wild=Gamer123 set wlvl=4 set /a whp=%wlvl% * 4 set /a wat=%wlvl% * 2 goto battle1 ) if %wr%==16 ( set wild=Skygirl20 set wlvl=30 set /a whp=%wlvl% * 4 set /a wat=%wlvl% * 2 goto battle1 ) if %wr%==17 ( set wild=Eerck set wlvl=30 set /a whp=%wlvl% * 4 set /a wat=%wlvl% * 2 goto battle1 ) if %wr%==18 ( set wild=PhantomNight set wlvl=17 set /a whp=%wlvl% * 4 set /a wat=%wlvl% * 2 goto battle1 ) if %wr% gtr 18 ( set wild=Phantom set wlvl=2 set /a whp=%wlvl% * 2 set /a wat=%wlvl% * 1 goto battle1 ) goto battle:battle1 set /a whp=%wlvl% * 4 set /a wat=%wlvl% * 2 if %wild%==Eerick goto boss if %wild%==Spottedfire180 goto boss if %wild%==Just4that goto boss if %wild%==Sky2020 goto boss if %wild%==Persiagirls goto boss goto battle2:battle2 color 2f title Fight if %whp% leq 0 goto win if %ahp% leq 0 goto loose cls echo. echo. echo: ----------------------------------------------------------- echo: Name: %name% Level: %lvl% Health: %ahp% echo: ----------------------------------------------------------- echo. echo: ----------------------------------------------------------- echo: Name: %wild% Level: %wlvl% Health:%whp% echo: ----------------------------------------------------------- echo. echo: 1) %at1n% echo. echo: 2) %at2n% echo. echo: 3) Run away echo. echo: Choose an option: choice /c 123 >> nul if %errorlevel%==1 goto bat1 if %errorlevel%==2 goto bat2 if %errorlevel%==3 goto city goto battle2:bat2 set /a whp-=%at2% set /a ahp-=%wat% goto battle2:bat1 set /a whp-=%at1% set /a ahp-=%wat% goto battle2:loose color 2f title Loose set ahp=%full% cls echo. echo. echo: __________________ echo: You loose. echo: __________________ timeout /t 2 /nobreak >> nul goto city:win color 2f title Win set /a ham=%wlvl% * 2 set /a lvl+=%wlvl% / 2 set /a money+=%ham% set /a full=%lvl% * 5 set /a ahp=%full% cls echo. echo. echo: __________________ echo: You win! echo: __________________ timeout /t 2 /nobreak >> nul goto city:store color 39 title Store cls echo. echo. echo: 0) Leave echo: 1) Artic wolf 300 You have %money%$ echo: 2) Fox 200 echo: 3) Leapord 200 echo: 4) Horse 100 echo: 5) Racoon 200 echo: 6) Dolphin 200 echo: 7) Cheeta 300 echo: 8) Croc 200 echo: 9) Deer 200 echo: A) Eagle 300 echo: B) Elephant 300 echo: C) Giraffe 200 echo: D) Hyena 300 echo: E) Kangaroo 300 echo: F) Lion 200 echo: G) Llama 300 echo: H) Octapus 300 echo: I) Otter 200 echo: J) Owl 300 echo: K) Polorbear 300 echo: L) Rhino 200 echo: M) Shark 200 echo: N) Kingaroo 700 echo: P) Springbunny 600 echo: P) Dragon 1000 echo: Q) Unicorn 1000 echo: R) Phenix 1000 echo: S) Kracken 2000 echo: T) King kong 1000 echo. echo: Choose an option: choice /c 0123456789ABCDEFGHIJKLMNOPQRST >> nul if %errorlevel%==1 goto city if %errorlevel%==2 goto Awolf if %errorlevel%==3 goto Fox if %errorlevel%==4 goto Leapord if %errorlevel%==5 goto Horse if %errorlevel%==6 goto Racoon if %errorlevel%==7 goto Dolphin if %errorlevel%==8 goto Cheeta if %errorlevel%==9 goto Croc if %errorlevel%==10 goto Deer if %errorlevel%==11 goto Eagle if %errorlevel%==12 goto Elephant if %errorlevel%==13 goto Giraffe if %errorlevel%==14 goto Hyena if %errorlevel%==15 goto Kangaroo if %errorlevel%==16 goto Lion if %errorlevel%==17 goto Llama if %errorlevel%==18 goto Octapus if %errorlevel%==19 goto Otter if %errorlevel%==20 goto Owl if %errorlevel%==21 goto Polorbear if %errorlevel%==22 goto Rhino if %errorlevel%==23 goto Shark if %errorlevel%==24 goto Kingaroo if %errorlevel%==25 goto Springbunny if %errorlevel%==26 goto Dragon if %errorlevel%==27 goto Unicorn if %errorlevel%==28 goto Phenix if %errorlevel%==29 goto Kracken if %errorlevel%==30 goto Gorilla goto store:Awolf if %money% lss 300 goto nomoney set animal=Artic wolf set /a at1=%lvl% * 4 set /a at2=%lvl% * 4 set at1n=Artic howl set at2n=Artic claws set /a full=%lvl% * 7 set /a ahp=%lvl% * 7 set /a money-=300 goto city :Fox if %money% lss 200 goto nomoney set animal=Fox set /a at1=%lvl% * 3 set /a at2=%lvl% * 3 set at1n=Burrow set at2n=Fox bite set /a full=%lvl% * 6 set /a ahp=%lvl% * 6 set /a money-=200 goto city :Leapord if %money% lss 200 goto nomoney set animal=Leapord set /a at1=%lvl% * 3 set /a at2=%lvl% * 3 set at1n=Pounce set at2n=Scrape set /a full=%lvl% * 6 set /a ahp=%lvl% * 6 set /a money-=200 goto city :Horse if %money% lss 100 goto nomoney set animal=Horse set /a at1=%lvl% * 2 set /a at2=%lvl% * 2 set at1n=Gallop set at2n=Hoofs set /a full=%lvl% * 5 set /a ahp=%lvl% * 5 set /a money-=100 goto city :Racoon if %money% lss 200 goto nomoney set animal=Racoon set /a at1=%lvl% * 3 set /a at2=%lvl% * 3 set at1n=Steal set at2n=Sneak set /a full=%lvl% * 6 set /a ahp=%lvl% * 6 set /a money-=200 goto city :Dolphin if %money% lss 200 goto nomoney set animal=Dolphin set /a at1=%lvl% * 3 set /a at2=%lvl% * 3 set at1n=Flip set at2n=Swift swim set /a full=%lvl% * 6 set /a ahp=%lvl% * 6 set /a money-=200 goto city :Cheeta if %money% lss 300 goto nomoney set animal=Cheeta set /a at1=%lvl% * 4 set /a at2=%lvl% * 4 set at1n=Speed set at2n=Swift Pounce set /a full=%lvl% * 7 set /a ahp=%lvl% * 7 set /a money-=300 goto city :Croc if %money% lss 200 goto nomoney set animal=Crocodile set /a at1=%lvl% * 3 set /a at2=%lvl% * 3 set at1n=Jaw snap set at2n=Tail thwack set /a full=%lvl% * 6 set /a ahp=%lvl% * 6 set /a money-=200 goto city :Deer if %money% lss 200 goto nomoney set animal=Deer set /a at1=%lvl% * 3 set /a at2=%lvl% * 3 set at1n=Front kick set at2n=Swift hoofs set /a full=%lvl% * 6 set /a ahp=%lvl% * 6 set /a money-=200 goto city :Eagle if %money% lss 300 goto nomoney set animal=Eagle set /a at1=%lvl% * 4 set /a at2=%lvl% * 4 set at1n=Swift wing set at2n=Talons set /a full=%lvl% * 7 set /a ahp=%lvl% * 7 set /a money-=300 goto city :Elephant if %money% lss 300 goto nomoney set animal=Elephant set /a at1=%lvl% * 4 set /a at2=%lvl% * 4 set at1n=Trunk set at2n=Stomp set /a full=%lvl% * 7 set /a ahp=%lvl% * 7 set /a money-=300 goto city :Giraffe if %money% lss 200 goto nomoney set animal=Giraffe set /a at1=%lvl% * 3 set /a at2=%lvl% * 3 set at1n=Reach set at2n=Leafy lunch set /a full=%lvl% * 6 set /a ahp=%lvl% * 6 set /a money-=200 goto city :Hyena if %money% lss 300 goto nomoney set animal=Hyena set /a at1=%lvl% * 4 set /a at2=%lvl% * 4 set at1n=Laugh set at2n=Giggle set /a full=%lvl% * 7 set /a ahp=%lvl% * 7 set /a money-=300 goto city :Kangaroo if %money% lss 300 goto nomoney set animal=Kangaroo set /a at1=%lvl% * 5 set /a at2=%lvl% * 4 set at1n=Power kick set at2n=High leap set /a full=%lvl% * 7 set /a ahp=%lvl% * 7 set /a money-=300 goto city:Lion if %money% lss 200 goto nomoney set animal=Lion set /a at1=%lvl% * 3 set /a at2=%lvl% * 3 set at1n=Pride set at2n=Roar set /a full=%lvl% * 6 set /a ahp=%lvl% * 6 set /a money-=200 goto city :Llama if %money% lss 300 goto nomoney set animal=Llama set /a at1=%lvl% * 4 set /a at2=%lvl% * 4 set at1n=Spit set at2n=Grassy lunch set /a full=%lvl% * 7 set /a ahp=%lvl% * 7 set /a money-=300 goto city :Octapus if %money% lss 300 goto nomoney set animal=Octapus set /a at1=%lvl% * 4 set /a at2=%lvl% * 4 set at1n=Tentacle wrap set at2n=Ink set /a full=%lvl% * 6 set /a ahp=%lvl% * 6 set /a money-=300 goto city :Otter if %money% lss 200 goto nomoney set animal=Otter set /a at1=%lvl% * 3 set /a at2=%lvl% * 3 set at1n=Tail steer set at2n=Wood chew set /a full=%lvl% * 6 set /a ahp=%lvl% * 6 set /a money-=200 goto city :Owl if %money% lss 300 goto nomoney set animal=Owl set /a at1=%lvl% * 4 set /a at2=%lvl% * 4 set at1n=Knowledge set at2n=Talons set /a full=%lvl% * 7 set /a ahp=%lvl% * 7 set /a money-=300 goto city :Polorbear if %money% lss 300 goto nomoney set animal=Polor bear set /a at1=%lvl% * 4 set /a at2=%lvl% * 4 set at1n=Slam set at2n=Hybernate set /a full=%lvl% * 7 set /a ahp=%lvl% * 7 set /a money-=300 goto city :Rhino if %money% lss 200 goto nomoney set animal=Rhino set /a at1=%lvl% * 3 set /a at2=%lvl% * 3 set at1n=Charge set at2n=Horn set /a full=%lvl% * 6 set /a ahp=%lvl% * 6 set /a money-=200 goto city :Shark if %money% lss 200 goto nomoney set animal=Shark set /a at1=%lvl% * 3 set /a at2=%lvl% * 3 set at1n=Chomp set at2n=Bite set /a full=%lvl% * 6 set /a ahp=%lvl% * 6 set /a money-=200 goto city :Kingaroo if %money% lss 700 goto nomoney set animal=King Roo set /a at1=%lvl% * 8 set /a at2=%lvl% * 8 set at1n=King kick set at2n=Power leap set /a full=%lvl% * 11 set /a ahp=%lvl% * 11 set /a money-=700 goto city :Springbunny if %money% lss 600 goto nomoney set animal=Spring bunny set /a at1=%lvl% * 7 set /a at2=%lvl% * 7 set at1n=Flower hop set at2n=Flower jump set /a full=%lvl% * 10 set /a ahp=%lvl% * 10 set /a money-=600 goto city :Dragon if %money% lss 1000 goto nomoney set animal=Dragon set /a at1=%lvl% * 11 set /a at2=%lvl% * 11 set at1n=Flaming breath set at2n=Golden talons set /a full=%lvl% * 14 set /a ahp=%lvl% * 14 set /a money-=1000 goto city :Unicorn if %money% lss 1000 goto nomoney set animal=Unicorn set /a at1=%lvl% * 9 set /a at2=%lvl% * 9 set at1n=Majestic gallop set at2n=Magic horn set /a full=%lvl% * 15 set /a ahp=%lvl% * 15 set /a money-=1000 goto city :Phenix if %money% lss 1000 goto nomoney set animal=Phenix set /a at1=%lvl% * 9 set /a at2=%lvl% * 9 set at1n=Flaming wings set at2n=Burning talons set /a full=%lvl% * 13 set /a ahp=%lvl% * 13 set /a money-=1000 goto city :Kracken if %money% lss 2000 goto nomoney set animal=Kracken set /a at1=%lvl% * 9 set /a at2=%lvl% * 9 set at1n=Ship destroy set at2n=Darken sea set /a full=%lvl% * 14 set /a ahp=%lvl% * 14 set /a money-=2000 goto city :Gorilla if %money% lss 1000 goto nomoney set animal=King kong set /a at1=%lvl% * 12 set /a at2=%lvl% * 12 set at1n=Building climb set at2n=Steal damsel in distress set /a full=%lvl% * 7 set /a ahp=%lvl% * 7 set /a money-=1000 goto city :nomoney color 2d title Not enough money cls echo. echo. echo: ______________________________ echo: You don't have enogh money echo: ______________________________ timeout /t 3 /nobreak >> nul goto store:boss title BOSS color 74 cls echo. echo. echo: ------------- echo: Boss level! echo: ------------- timeout /t 2 /nobreak >> nul goto battle2