subject

Iknow this is complicated, but for all our coders here, can you detect what is wrong with my batch file rpg? on the fight scene : quest to : quest6 and : hellquest, it doesn't show the damage being taken
here is the script
@echo off
: start
title the eternal vikings
cd folder
color 3a
mode 1000
echo long before the champions of greece
echo there was a race that would dominate all.
echo.
type vikings. txt
echo.
pause
cls
echo there were the vikings.
echo.
type viking. txt
echo.
pause
cls
: begin
cls
set dhealth=100
set level=1
set health=100
set money=50
set exp=0
set expmax=100
set str=10
set def=0
set wep=10
set wepdis=none
set arm=10
set armdis=none
set hpots=0
set levmax=1000
type logo. txt
echo.
echo.
echo.
echo type in your selection [ the number ]
echo.
type menu. txt
echo.
set /p input=
if %input% == 1 goto play
if %input% == 2 exit
if %input% == 3 goto howto
if %input% == 4 goto load
goto begin
: load
if not exist save. sav goto loaderror
< save. sav (
set /p dhealth=
set /p name=
set /p level=
set /p health=
set /p money=
set /p exp=
set /p expmax=
set /p str=
set /p def=
set /p wep=
set /p wepdis=
set /p arm=
set /p armdis=
set /p hpots=
set /p levmax=
)
cls
echo game loaded!
pause > nul
goto begin
: loaderror
cls
echo no save file
pause > nul
goto begin
: play
cls
echo the empire was destroyed on one of the sailings.
echo many lives were lost that day.
echo.
type ship. txt
echo.
ping 1.1.1.1.1 8 localhost > nul
cls
echo but one viking survived - the hero of salvagor the
echo viking clan - you.
echo you are our last hope. win for our nation. win for our
echo viking culture and ancestry!
echo.
echo the gods summon you, champion.
echo you suffer amnesia.
echo.
type amnesia. txt
echo.
echo you forget who you : [
echo so we will grant you a chance to name yourself. : ]
set /p name=
pause
echo good grief! your name, %name%, means good war. we will win under
echo your leadership. welcome to the war
echo -- navi
echo }o{
pause
goto main
: main
if %exp% geq %expmax% goto levelup
cls
echo hi, %name%. my name is odin the iii, your magical boat
echo assistant. what would you like to do?
echo [1] destroy villages
echo [2] go to the nearby town shop (your balance: %money%)
echo [3] save game
echo [4] exit
set /p mainvalue=
if %mainvalue% == 1 goto quest
if %mainvalue% == 2 goto shop
if %mainvalue% == 3 goto save
if %mainvalue% == 4 exit
goto main
: levelup
echo you leveled up!
echo.
type levelup. txt
: hellquest
echo master mode - level 1000
type sword3.txt
echo.
echo village number %random%
echo
echo (1) %names% health: %health% (2) enemy health: %dhealth%
echo [1] attack
echo [2]
pause

: quest
cls
if %level% geq %levmax% goto hellquest
echo.
type gameship. txt
echo.
echo
ping 1.1.1.1.1.1 10 localhost > nul
if %dhealth% == 0 goto quest6
set /a %dhealth% == 100
: quest1
cls
type sword1.txt
echo.
echo village number %random%
echo
echo (1) %names% health: %health% (2) enemy health: %dhealth%
echo [1] attack
echo [2] drink potion
echo [3] retreat
set /p quest=
if %quest% == 1 goto quest2
if %quest% == 2 goto quest3
if %quest% == 3 goto main
goto quest1
: quest2
cls
echo you attacked the enemy with your %wepdis%!
echo you dealt %wep% damage.
set /a %dhealth% - 10
pause > nul
goto quest4
: quest3
if %hpots% geq 0 = goto noqpots
if %hpots% geq 1 = goto drinkpot1
if %hpots% grt 1 = goto drinkpot2
echo
pause > nul
: noqpots
cls
echo you have no potions!
pause
goto quest1
: drinkpot1
cls
echo buy more potions to drink them.
echo (you must have at least two.)
pause
goto quest1
: drinkpot2
cls
set /a %health% + 20
echo you drank a potion.
goto quest1
: quest4
cls
type sword1.txt
echo.
echo village number %random%
echo
echo (1) %names% health: %health% (2) enemy health: %dhealth%
echo enemy's
ping 1.1.1.1.1 localhost > nul
goto quest5
: quest5
cls
echo the enemy attacked you.
echo you lost 10 health!
set /a %health% - 10
pause > nul
goto quest1
: quest6
cls
echo you defeated the village!
pause > nul
goto main

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
Whats are the different parts of no verbal comunication, especially body language?
Answers: 3
question
Computers and Technology, 24.06.2019 01:00
What are two ways to access the options for scaling and page orientation? click the home tab, then click alignment, or click the file tab. click the file tab, then click print, or click the page layout tab. click the page layout tab, or click the review tab. click the review tab, or click the home tab?
Answers: 2
question
Computers and Technology, 24.06.2019 21:00
When replacing a thermostat or water pump, coolant drained from the cooling system should be
Answers: 1
question
Computers and Technology, 24.06.2019 23:00
Hypertension occurs when blood pressure is too high.
Answers: 1
You know the right answer?
Iknow this is complicated, but for all our coders here, can you detect what is wrong with my batch...
Questions
question
Mathematics, 19.04.2021 21:30
question
Mathematics, 19.04.2021 21:30
question
English, 19.04.2021 21:30
question
Business, 19.04.2021 21:30
question
German, 19.04.2021 21:30
question
Mathematics, 19.04.2021 21:30
Questions on the website: 13722363