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
Fiber deployment architectures include all of the following except:
Likurg_2 [28]

Answer:

C

Explanation:

7 0
3 years ago
Read 2 more answers
According to the presentation, integrity and ethics are particularly important for careers in which of the following pathways?
Aloiza [94]

Journalism and Broadcasting

3 0
3 years ago
Anybody know the answer to this question?
aniked [119]

Answer:

sorry i need pointssssss

7 0
3 years ago
Debuted by the Lumiere Brothers, a hand cranked device that showed moving pictures to an audience​
frosja888 [35]

Answer:

frame is the answer

4 0
4 years ago
What function does a resource manager in an IDE perform?
jeka94

Answer:

I would say D) Its an enviroment for running and testing the source code.

Explanation:

An integrated development environment (IDE) is a software suite that consolidates basic tools required to write and test software.

Developers use numerous tools throughout software code creation, building and testing. Development tools often include text editors, code libraries, compilers and test platforms. Without an IDE, a developer must select, deploy, integrate and manage all of these tools separately. An IDE brings many of those development-related tools together as a single framework, application or service. The integrated toolset is designed to simplify software development and can identify and minimize coding mistakes and typos.

Some IDEs are open source, while others are commercial offerings. An IDE can be a standalone application or it can be part of a larger package.

4 0
3 years ago
Other questions:
  • A short-circuit evaluation is where each part of an expression is evaluated only as far as necessary to determine whether the en
    14·1 answer
  • What does JPEG stand for?
    15·2 answers
  • When the wires are connected to the terminals of the battery, what causes electric current in the circuit?
    15·1 answer
  • Materials such as copper, silver, and aluminum through which electric energy passes freely are called
    13·1 answer
  • Choose all that apply.
    6·2 answers
  • While designing your network's VLAN topology, your team has decided to use a centrally managed DHCP server rather than creating
    8·1 answer
  • What do secondary sources rely on for their analysis of events?
    6·2 answers
  • _____ is the measure of a system’s ability to expand, change, or downsize easily to meet the changing needs of a business enterp
    11·1 answer
  • Data are sent through a network on bundles called _______. select one:
    8·2 answers
  • __________ is a software-enabled technique that can change the hardcoded mac address to any mac address and thus overcome mac ad
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!