1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Ilya [14]
3 years ago
11

I know this is complicated, but for all our coders here, can you please detect what is wrong with my batch file rpg? On the FIGH

T 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 found...
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 are... :[
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 Travelling...
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 TURN...
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
Computers and Technology
2 answers:
xeze [42]3 years ago
8 0
On Goto Begin put a _ or a space between them or maybe its because what ever your using is trash (not to be mean)
Dennis_Churaev [7]3 years ago
3 0
I can maybe look this up then message you via brainly I'm not to shabby with coding brb
You might be interested in
Create a function called howManyUntil(stopNum) where stopNum is an integer from 0 and 99
uysha [10]

Answer:

i dont get it

Explanation:

6 0
3 years ago
Create an algorithm and flowchart that will accept name of user and display it.
vivado [14]

Answer:

Algorithm

1.Start.

2.Using an input function, ask the user to input the name and store the Entered Value in string    variable.

3.Print value stored in String Variable.

4.End.

Flow chart:

5 0
3 years ago
Can you please explain this code
Mrac [35]
I don't understand this question
7 0
3 years ago
Which instruction in this algorithm would be considered a loop structure? will mark u brainliest 25 points
Mazyrski [523]
I don’t know if I am right but I think it d am i right
6 0
3 years ago
8.2 code practice edhesive
Helga [31]

Answer:

temperatures = []

i = 0

while i < 5:

   try:

       t = int(input('Enter a temperature: '))

       temperatures.append(t)

       i += 1

   except ValueError:

       print('Enter a number')

print(temperatures)

Explanation:

Hope this helps!

3 0
3 years ago
Other questions:
  • What is the most consistent item regardless of the software used in BI?
    5·1 answer
  • Write a program that implement a bubble sort ?
    5·1 answer
  • I need a quick way to see all hardware connected to my computer.
    11·1 answer
  • Arrange the following units of storage in descending<br> order. B, TB,KB, GB,MB
    5·1 answer
  • How to jailbreak ios 9.2 ? Is there anyway???!!!!
    12·1 answer
  • Linda is searching for a new job. Which information would her potential employers likely review in her social profile?
    14·2 answers
  • How to fix my pc from this
    11·2 answers
  • What are some examples of duties Information Support and Service workers perform?
    7·2 answers
  • Similarities of ROM and RAM?​
    12·1 answer
  • Is designed to access a computer or operating system without the knowledge or permission of the user.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!