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 11:50
You have written, as part of a school assignment, a research paper on the solar system. you want to share this paper on your school website. on which type of server will you upload it?
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
To check whether your writing is clear , you can
Answers: 2
question
Computers and Technology, 24.06.2019 13:30
Consider jasper’s balance sheet. which shows how to calculate jasper’s net worth?
Answers: 1
question
Computers and Technology, 24.06.2019 14:00
In simple terms, how would you define a protocol?
Answers: 2
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
Biology, 02.04.2020 05:05
question
Mathematics, 02.04.2020 05:05
question
Mathematics, 02.04.2020 05:05
Questions on the website: 13722359