Am facut acest proiect in 2 ore,am vrut sa fie un joc pokemon dar cand incerc sa-i dau build ma anunta ca sunt niste eroare in scipt dar nu le pot gasi, putin ajutor va rog?
@echo off
echo \---------------------------------------------------\
echo \ PokeBatch - The Pokemon experience in Batch \
echo \---------------------------------------------------\
pause
cls
echo Prof. Oak approaches
echo Prof. Oak: Hi. My name is Prof. Oak.
echo Prof. Oak: Welcome to the wonderful world of Pokemon!
pause
:choosename
cls
echo Prof. Oak: It seems I don't remember your name. What is it?
set /p name=
pause
if '%name%' == " goto choosename
cls
echo Hi %name%! It's nice seeing you again
pause
::girlorboy
::cls
::echo %name%, Are you a boy or a girl?
::echo (Enter 'boy', or 'girl')
::set /p gender=
::pause
::if '%gender%'=='boy' goto skip
::if '%gender%'=='girl' goto skip
::goto girlorboy
::skip
::cls
::echo Prof. Oak: Aah. so you are a %gender%
::pause
cls
echo Prof. Oak: So %name% what are you waiting for? Choose your pokemon.
pause
echo Prof. Oak: Do you want to pick Charmandar?
echo Enter y to choose Charmandar
pause
set /p yno=
if '%yno%' == 'y' (
set starter=Charmandar
goto chosen
)
cls
echo Prof. Oak: Or. wait. there is one more.
pause
cls
echo \---------------------------------------------------\
echo \ Pikachu (Lvl 4) \
echo \---------------------------------------------------\
echo Prof. Oak: Do you want to pick Pikachu?
echo Be careful this pokemon is very energetic.
echo Enter y to choose Pikachu
pause
set /p yno=
if '%yno%' == 'y' (
set starter=Pikachu
goto chosen
)
:chosen
cls
echo Prof. Oak: Congrats! From here on you are now a pokemon trainer!
echo Here, take this with you.
echo (Pokegear received)
echo Prof. Oak: This will help you along the way.
pause
cls
echo Prof. Oak: Now your journey begins with %starter%
echo Prof. Oak: Collect gym badges and compete in the Pokemon League.
echo Prof. Oak: Good luck!
pause
:start
set starter-lvl=4
set starter-HP=20
set starter-att=2
set starter-def=2
set starter-spd=2
set starter-spatt=2
set starter-spdef=2
set mom=0
set fstone=0
set rwing=0
set leaguecup=0
::Maribou town
::Rienna city
::Vicarian city
::Aminos city
:city1
::Maribou town
cls
echo You are in Maribou town
echo Enter option number to pick an option (1, 2,3,4)
echo 1) Go to your home
echo 2) Go to Pokemon Center
echo 3) Go to Pokemon Lab
echo 4) Go to tall grass to exit Maribou town
pause
set /p city1option=
if '%city1option%' == '1' goto city1-1
if '%city1option%' == '2' goto city1-2
if '%city1option%' == '3' goto city1-3
if '%city1option%' == '4' goto city1-4
:city1-1
cls
echo \---------------------------------------------------\
echo \ Home \
echo \---------------------------------------------------\
echo __! _______________
echo /! /\\
echo / /__\ / \\
echo /_________________/ \\
echo!! /\!
echo!! / \!
echo! ________________!!!!
echo.
echo You are inside your home
echo Enter option number to pick an option (1, 2,3)
echo 1) Talk to your Mom
echo 2) Eat food and take rest
echo 3) Go back to town
pause
set /p city1-1option=
if '%city1-1option%' == '1' goto city1-1-1
if '%city1-1option%' == '2' goto city1-1-2
if '%city1-1option%' == '3' goto city1
:city1-1-1
cls
if '%mom%' == '0' (
echo Mom: %name%! I hate you and your unknown father.
echo Mom: Go wander around the world on foot for years and never come back!
echo Mom: But first take these running shoes.
echo Mom: These won't have any effect in PokeBatch but I'm just giving it so you don't complain.
set mom=1
pause
goto city1-1
)
if '%mom%' == '1' (
echo Mom: What's the matter? Did you bring something for me?
echo Mom: No? Get the hell out of my house then!
pause
goto city1-1
)
if '%mom%' == '2' (
echo Mom: What's the matter? Did you bring something for me?
echo Mom: Ooooh! That's a HUGE diamond! I almost love you!
echo (Handed over the diamond)
echo Mom: Here, take this fire stone from your father's collection.
echo (Received Fire stone)
set fstone=1
set mom=3
pause
goto city1-1
)
if '%mom%' == '3' (
echo Mom: Yay! Did you bring something else for me?
echo Mom: No? Oh well, guess I still hate you.
pause
goto city1-1
)
if '%mom%' == '4' (
echo Mom: Well? What is it? A surprise you say?
echo (Hands over the Jade necklace)
echo Mom: OMG! O_O I love it!
echo Mom: You deserve this Rainbow Wing
echo (Received Rainbow Wing)
set rwing=1
set mom=5
echo Mom: Let me quote your father.
echo "Only a true Pokemon Champion can make use of this Rainbow Wing."
echo "The legendary Ho-Oh will appear before only him who is pure of heart and has a strong will."
echo "He must go to the Bell Tower in Vicarian city at once."
echo "But there is one thing you should kno... "
echo Mom: And the rest is unreadable. Your crazy father and his ramblings about some legendary pokemon.
pause
goto city1-1
)
if '%mom%' == '5' (
echo Mom: You know what? You aren't that bad
pause
goto city1-1
)
if '%mom%' == '6' (
echo Mom: What the. Is that a Ho-Oh? :O
echo Mom: That means your father wasn't a loser!
pause
goto city1-1
)
:city1-1-2
cls
echo You ate lots of delicious food. OM NOM NOM NOM
echo You are feeling sleepy. What was in the food?!
echo You wake up 12 hours later. Your %starter% has recovered his HP.
set /a starter-HP=10*%starter-lvl%
pause
goto :city1-1
:city1-2
cls
echo \---------------------------------------------------\
echo \ Pokemon Center \
echo \---------------------------------------------------\
echo.
echo ___________________
echo /___________________\
echo! //_\\!
echo! _______\\_//_______!
echo!! ___!!
echo!!!!!!
echo! _____!! ___!! _____!
echo.
echo You are inside the Pokemon Center
echo Enter option number to pick an option (1, 2,3)
echo 1) Get your pokemon healed by Nurse Joy
echo 2) Get other services from Nurse Joy
echo 3) Go back to town
pause
set /p city1-2option=
if '%city1-2option%' == '1' goto city1-2-1
if '%city1-2option%' == '2' goto city1-2-2
if '%city1-2option%' == '3' goto city1
:city1-2-1
cls
echo Nurse Joy: My my, your %starter% doesn't look very good
echo Nurse Joy: Here let me fix him with my love!
echo Your %starter% is blushed red
echo Nurse Joy: Here you go better than ever.
echo %starter%: %STARTER%!
echo Your %starter% has recovered his HP.
set /a starter-HP=10*%starter-lvl%
pause
goto city1-2
:city1-2-2
cls
echo %name%: Hey Joy, how about you show me your "Pokemons"
if '%leaguecup%' == '0' (
echo Nurse Joy: I don't think you are trained enough to handle them kid.
echo Nurse Joy: Buzz off like a Beedrill before I doublekick you!
echo You run away to town hiding your face.
)
if '%leaguecup%' == '1' (
::
)
pause
goto city1
:city1-3
cls
echo \---------------------------------------------------\
echo \ Pokemon Lab \
echo \---------------------------------------------------\
echo.
echo _______
echo..
echo / //_\\ \
echo! _______\\ //_______!
echo /___________________\
echo!! ___!!
echo!! / \!!
echo! _____!! ___!! _____!
echo.
echo You are inside the Pokemon Lab
echo Enter option number to pick an option (1, 2)
echo 1) Talk to Professor Oak
echo 2) Go back to town
pause
set /p city1-2option=
if '%city1-2option%' == '1' goto city1-3-1
if '%city1-2option%' == '2' goto city1
:city1-3-1
cls
echo Prof Oak: Oh hi %name% I am a little busy right now.
echo Prof Oak: Come back after you've won a gym batch.
pause
goto city1
:city1-4
cls
echo \---------------------------------------------------\
echo \ Tall grass \
echo \---------------------------------------------------\
echo.
echo )\ )\ )\ )\ /( (\ )\ )\ )\ /( /( )\ (\ (\ /) )\
echo /( /( )\ (\ (\ /) )\ )\ )\ )\ )\ /( (\ )\ )\ )\
echo )\ (\ (\ /) )\ (\ )\ )\ )\ /( /( )\ )\ )\ )\ /( (\
echo.
echo You stepped out of Maribou town.
echo Since your town is very small you can already see Rienna city.
echo Rienna city is famous for their berries and grass pokemon.
echo.
echo You are walking on tall grass
echo Something is inside the grass
setlocal ENABLEDELAYEDEXPANSION
set /a r=%random% %%! 3 +1
::Caterpie Oddish Rattata Cubone
if '%r%' == '0' (
set wildpkmn=Caterpie
goto wildpokemon
)
if '%r%' == '1' (
set wildpkmn=Oddish
goto wildpokemon
)
if '%r%' == '2' (
set wildpkmn=Rattata
goto wildpokemon
)
if '%r%' == '3' (
set wildpkmn=Cubone
goto wildpokemon
)
:wildpokemon
echo A wild %wildpkmn% has appeared
echo.
echo %wildpkmn%: %wildpkmn%
set wildpkmn-lvl=2
set wildpkmn-HP=10
set wildpkmn-HP=20
set wildpkmn-att=2
set wildpkmn-def=2
set wildpkmn-spd=2
set wildpkmn-spatt=2
set wildpkmn-spdef=2
echo.
echo %name%: Go %starter% I choose you!
echo %starter%: %starter%
pause
:wildpokemon-battle
cls
echo \---------------------------------------------------\
echo \ %wildpkmn% (Lvl %wildpkmn-lvl%) \
echo \---------------------------------------------------\
echo.
echo HP: %wildpkmn-HP%
echo.
echo.
echo \---------------------------------------------------\
echo \ %starter% (Lvl %starter-lvl%) \
echo \---------------------------------------------------\
echo.
echo HP: %starter-HP%
echo.
echo.
echo What do you want to do?
echo.
echo Enter option number to pick an option (1, 2)
echo 1) Tackle Attack
echo 2) Bite
echo 3) [Run]
set /p wildpkmn-atk=
pause
set /a critical=%random% %%! 1 +1
if '%wildpkmn-atk%' == '1' set impact-wildpkmn2*%wildpkmn-att%)/2)*(%critical%+1)
if '%wildpkmn-atk%' == '2' set impact-wildpkmn3*%wildpkmn-att%)/2)*(%critical%+1)
set wildpkmn-HP=%wildpkmn-HP%impact-wildpkmn%-%wildpkmn-d ef%)
if '%critical%' == '0' echo %wildpkmn% lost %impact-wildpkmn% HP
if '%critical%' == '1' (
echo Critical Hit!
echo %wildpkmn% lost %impact-wildpkmn% HP
)
echo HP: %wildpkmn-HP%
echo.
if %wildpkmn-HP%
Pentru a răspunde la o întrebare trebuie să ai cont pe TPU.ro
Utilizatorii cu email-ul neconfirmat nu pot posta mai mult de 5 răspunsuri pe zi şi nu mai mult de 10 în total. Pentru a retrimite email-ul de confirmare click aici
Utilizatorul care a pus această întrebare te ignoră. Nu poţi să mai interacţionezi.
Utilizatorul care a pus această întrebare este în lista ta de utilizatori ignoraţi. Nu poţi să mai interacţionezi.
Utilizatorii avertizaţi nu pot posta mai mult de 5 răspunsuri pe zi.
Doreşti să urmăreşti această întrebare? Vei primi răspunsurile pe email.
Adaugă întrebarea la favorite
Doreşti să adaugi această întrebare la favorite?
Ce notă dai întrebării?
Înainte de a posta răspunsul, te rugăm să te asiguri că acesta nu încalcă regulamentul.
Nu ai introdus un răspuns!
Nu ai scris un răspuns pentru această întrebare, aşa că nu avem conţinut pe care să-l publicăm
Răspunsul este publicat...
Te rugăm să aştepţi ca răspunsul tău să fie trimis spre publicare.
Atenţie!
Succes!
Atenţie!
În răspunsul pe care vrei să îl postezi au fost găsite greşeli de scriere. Ele au fost corectate automat şi le poţi vedea marcate mai jos
Atenţie!
Eşti pe cale să postezi un mesaj care poate încuraja pirateria şi distribuţia ilegală de materiale pe internet. Legea nr. 8 din 1996, privind dreptul de autor şi drepturile conexe, a fost modificată semnificativ prin Legea nr. 285 din 2004, prin OUG nr. 123 din 2005, precum şi prin Legea nr. 329 din 2006, iar tu ai putea să te afli în situaţia de a le încălca acum.
În ipoteza unei acţiuni pe cale legală, TPU.ro este obligat să furnizeze IP-ul tău (3.12.73.149) şi restul datelor de identificare şi informaţiilor despre tine.
Atenţie!
Nu poţi posta acest răspuns pentru că linkul pe care l-ai inclus este suspicios, iar pe TPU pirateria nu este încurajată.
Te rugăm să nu faci referire la site-uri aflate în ilegalitate şi să nu postezi linkuri spre materiale postate pe internet fără respectarea drepturilor de autor (programe, jocuri, filme sau muzică piratată)
Nu poţi posta aceast răspuns la întrebarea aleasă!
Răspunsurile ce conţin cuvinte de genul pot fi postate doar la întrebări din categoria Dragoste şi Sex
Raportează răspunsul
Trebuie să fii logat ca să votezi
Pentru a evalua un răspuns trebuie să ai cont pe TPU.ro