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
What does a rung lock do to an extension ladder?
Stells [14]
What’s a rung lock and an extension ladder
8 0
3 years ago
Write a main function to do the following: Create a string that can hold up to 30 characters. Create an array of 10 strings with
masha68 [24]

Answer:

Check the explanation

Explanation:

#// do comment if any problem arises

//code

#include <stdio.h>

#include <ctype.h>

#include <string.h>

#include <stdlib.h>

void read(FILE *input, char array[10][61])

{

   // read all 10 strings

   for (int i = 0; i < 10; i++)

       fgets(array[i], 60, input);

}

void remove_newline(char array[10][61])

{

   for (int i = 0; i < 10; i++)

   {

       array[i][strlen(array[i]) - 1] = '\0';

   }

}

void smallest(char array[10][61])

{

   int s = 0;

   for (int i = 1; i < 10; i++)

   {

       if (strlen(array[s]) > strlen(array[i]))

           s = i;

   }

   printf("\nSmallest strnig: %s\n", array[s]);

}

void upper(char array[10][61])

{

   for (int i = 0; i < 10; i++)

   {

       int n = strlen(array[i]);

       for (int j = 0; j < n; j++)

       {

           array[i][j] = toupper(array[i][j]);

       }

   }

}

int main()

{

   char filename[30];

   // array of 10 strings

   char array[10][61];

   printf("Enter filename: ");

   gets(filename);

   // open file

   FILE *input = fopen(filename, "r");

   // read into array

   read(input, array);

   // close file

   fclose(input);

   // remove newline

   remove_newline(array);

   // print

   printf("Contents of file:\n");

   for (int i = 0; i < 10; i++)

       printf("%s\n", array[i]);

   // print smallest string

   smallest(array);

   // uppercase

   upper(array);

   // print again

   printf("\nContents of file after converting to uppercase:\n");

   for (int i = 0; i < 10; i++)

       printf("%s\n", array[i]);

}

kindly check the attached image below to see the Output:

6 0
4 years ago
Scenario: You are part of an IT group managing Active Directory for a mid-size organization. A contracted research group with th
SCORPION-xisa [38]

Explanation:

1.

the answer to the first question is <u>organizational unit</u>. this is because in this scenario that we have before us, cost is a deciding factor. a unit as this can adapt to changes, it is flexible and also not very complex

2.

answer to question 2 is <u>PDC emulator</u><u>.</u><u> </u>this emulator can perform the function synchronization of time across every domain controller that is in the domain. other of its functions are, authentication and changing of passwords.

3.

the answer to the 3rd question is <u>child domain</u><u>.</u><u> </u>It is a factor in this scenario because it works well in a situation where there is an issue of slow network connection.

6 0
3 years ago
When employees are hired, they agree to only use cell phones during breaks. How would you classify this?
Rasek [7]
Ddddddddddddddddddddddddddddddddddddddddd
7 0
3 years ago
Read 2 more answers
Select the correct text in the passage.
Serjik [45]

Answer:

The answer to this question is given below in the explanation section.

Explanation:

As you know that noise distracts the process of communication. It is anything that distorts a message between two communicators. Noise can take many forms, such as playing the radio in the background, another person interfering with the conversation, and any other distraction that prevent the receiver from paying attention to what the sender is saying.

So, in this question, the noise phrase in the given passage is written in bold.

<em>Ben wanted to call his friend Kevin for a game of football. He rang up Kevin and was about to mention the game.</em> Just then, a car nearby honked loudly. <em>Kevin said that he couldn’t hear what Ben said. Ben then repeated what he had said earlier.</em>

A car honked nearly when Ben and Kevin are communicating with each other is considered noise. A car honked is a noise in the process of communication.    

4 0
3 years ago
Other questions:
  • Andy, a developer, is designing a new program. Which tool should Andy use to help him complete his task?
    6·1 answer
  • Dani wants to create a web page to document her travel adventures. Which coding language should she use? HTML Java Python Text
    15·1 answer
  • How has social media changed professional networking?
    11·1 answer
  • Which is the MOST efficient means of disentangling passengers from a wrecked​ vehicle? A. Remove the steering wheel and column.
    10·1 answer
  • Assume that the string oldSeq has been properly declared and initialized and contains the string segment. Write a code segment t
    6·1 answer
  • State what is meant by the terms: Parallel data transmission ...................................................................
    8·1 answer
  • an IPv6 packet has a 40 byte base header, a 20 byte destination options extension header (which is not used for routing) and 200
    5·1 answer
  • Create two Lists, one is ArrayList and the other one is LinkedList and fill it using 10 state names (e.g., Texas). Sort the list
    6·1 answer
  • Explain the iterative nature of the database requirements collection, definition, and visualization process.
    14·1 answer
  • What number system is the basis for all of the powerful computers and electronic devices in the world?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!