Computers and Technology

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

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 02:00, eila3601
As with any small island country, cuba has fewer natural resources than countries such as brazil. this affects their economy in that cuba a) exports only manufactured products. b) exports more products than it imports.. c) must import more products than it exports. d) has imposed trade barriers against the united states.
Answers: 3
image
Computers and Technology, 23.06.2019 06:30, arguellesjavier15
Who can provide you with a new password when you have forgotten your old one? your provide you with a new password in case you forget your old one.
Answers: 3
image
Computers and Technology, 24.06.2019 16:00, miner12924owhu4d
5.a fishing rod is formed from a composite material of 0.5 kg of glass fibers embedded in a matrix of 0.5 kg of epoxy resin. the glass fibers are assumed to be long, continuous and unidirectional. to achieve a greater stiffness it is proposed to use a different composite that is comprised of long continuous carbon fibers that will be embedded in a matrix of 0.5 kg of epoxy resin. if the modulus of elasticity of the carbon fiber composite is 10% greater than the elastic modulus of the glass fiber composite, estimate the mass of carbon fibers that will be used to make the carbon fiber composite. assume the applied tensile stress is parallel to the direction of the long axis of the fibers. the epoxy resin, glass fiber, and carbon fiber have an elastic modulus of 5, 86, and 350 gpa respectively and a density of 1100, 2500, and 1800 respectively.
Answers: 3
image
Computers and Technology, 24.06.2019 17:50, mrmendrala
Create a class hand in its own module. one object of class hand represents a hand of cards and so one object stores a number of card objects. for this assignment you will submit three separate modules, one with the definition of class card, one with the definition of class hand and one with the main application that thoroughly tests class hand. class hand must contain the following four methods: 1) , numcardsinhand) takes an integer as parameter and initializes a hand object with numcardsinhand card objects inside it. these card objects are generated randomly. for simplicity, assume an infinite number of decks of cards.2) bjvalue(self) returns the blackjack value for the whole hand of cards3) ) returns a string containing all the cards in the hand4) hitme(self) adds one randomly generated card to the handcreate a main program in its own module that thoroughly tests class hand. you will have three modules/files to upload to your etudes assignment submission: card. py, hand. py and the module that contains your main program. two alternatives for extra credit - you cannot get credit for both! (+1 point): after you have thoroughly tested the class hand and all of its methods, add code to your main program that stores one hand object as a pickle file and reads it back into a new hand object. you are only eligible for this extra credit if class hand has all four of the methods above working. or(+2 points): after you have thoroughly tested the class hand and all of its methods, add code to your main program that stores one hand object as a text file on the disk and reads it back into a new hand object. you are only eligible for this extra credit if class hand has all four of the methods above working. notes: -start by making any and all modifications suggested by my comments to your previous submission of class card from assignment #6 "a robust card object"-once your class card is tested and working well, you will not make any further modifications to it for the purposes of class hand.-you can keep the test code for class card intact. if it is indented inside an if __name__ == "__main__", then it will not be executed when your main program's module imports it.-to save time, write and test one method for class hand at a time.-under no circumstances are you to attempt the extra credit until you are completely finished with writing and testing all the methods in class hand.
Answers: 3
Do you know the correct answer?
Iknow this is complicated, but for all our coders here, can you detect what is wrong with my batch...

Questions in other subjects: