0

HELP

OKAY IM AM ABOUT TO LOSE IT IM MAKING A POKEMON GAME BUTTTTTTTT!!!! IT ALL OF THE SUDDEN STOPPED WORKING HELPPPPPPPPPPP ps im using JS. var Pikachu; var Pokeball; var Potion; var Thunderbolt; var QuickAttack; var IronTail; var ThunderWave; var Attack; var Hp; var Speed; var Defense; var Level; var WildPokemon; var Zubat; var Vulpix; var Oddish var Geodude; var Charmander; var Bublasaur; var Squritle; var Pidgey; var Ratatta; var Start; var End; var Pause; var Flee; var Fly; var Flamethrower; var Ember; var EXP; var PP; var Gust; var Whirlwind; var Tackle; var PoisonSting; var RockSmash; var WaterGun; var VineWhip; var Withdraw; var Bite; var MetalClaws; var Evolution; var Charmeleon; var Pidgeotto; var Warturtle; var Ivysaur; var Charizard; var Raichu; var Pichu; var Eevee; var Jolteon; var Vaporeon; var Flareon; var Espeon; var Umbreon; var Friendship; var Gloom; var Raticate; var Charizard; var Blastoise; var Ninetales; var Golbat; var Riolu; var Lucario; var Pidgeot; var TM; var Cut; var AuraSphere; var Venasaur; var FireStone; var LeafStone; var ThunderStone; var WaterStone; var Evolution; var Player var Battle; var Rival; var Pokemon; var CritcalHit; var Missed; var Trainer; var Antidote; var Poison; var Burn; var Paralysis; var Gym; var Shiny; var Encounter; var League; var TrainerName; var Girl; var Boy; var Trainer; var answer; var girl; var boy; var Zubat; var lowerCaseGender = "Girl"; var level = Math.floor((Math.random() * 10) + 1); var health = Math.floor((Math.random() * 90) + 1);; var starterHealth = Math.floor((Math.random() * 90) + 1);; var pokemonHealth = Math.floor((Math.random() * 90) + 1);; alert("Welcome to the world of Pokemon"); alert("A place of exploration"); alert("A place full of wonderful creatures known as Pokemon!"); alert("Trainers battle pokemon aganist each other in whats called Pokemon Battles! While others keep them as pets. I Proffesor Oat study Pokemon as a proffesion");

11th Aug 2018, 1:13 AM
SarahDiamondFox
SarahDiamondFox - avatar
9 Respuestas
+ 1
XD
11th Aug 2018, 2:30 AM
SarahDiamondFox
SarahDiamondFox - avatar
+ 1
ah thank you ^>^
11th Aug 2018, 2:35 AM
SarahDiamondFox
SarahDiamondFox - avatar
0
var name; var PoisonSting; var Damage = Math.floor((Math.random() * 10) + 1); alert("Your journey into the world of Pokemon is about to begin. But first may i ask you some questions?"); var person = prompt("Please enter your name"); if (person != null) { alert("So your name is" + person); var gender = prompt("Are you a girl or boy?") if (gender != null) alert("So your a" + gender); } alert("Okay so now i need you to choose your starter") var starter = prompt("Pick your starter your options are Bulbasaur Squirtle Charmander Pikachu Eevee and Vulpix") if (starter != null){ alert("So you choose" + starter + "!"); } alert("Good i see so let your journey begin!") alert("A wild level" + level +"Zubat Appered" + "Zubat has" + health + "health") alert("Go!" + level + starter + starter + "has" + health + "health"); alert("Zubat uses" + "Poison Sting"); alert("It does" + Damage +"Damage" + starter + - starterHealth); var attack; var attack = prompt("Its time to fight" + starter + "knows Quick attack, Cut, Headbutt and Slam which one should " + starter + "use?") if (attack != null){ alert(starter +"used" + attack +"does" + Damage + "Damage" +- pokemonHealth); if(starterHealth < 0){ alert(starter + "Has fainted"); } else{ alert("Zubat uses" + "Poison Sting"); alert("It does" + Damage +"Damage" + starter + - starterHealth); } if(pokemonHealth < 0){ alert(Zubat + "Has fainted") } else{ prompt("Its time to fight" + starter + "knows Quick attack, Cut, Headbutt and Slam which one should " + starter + "use?") alert(Zubat + "Has fainted") } alert("Its time for your first gym battle aganist Brock good luck!");
11th Aug 2018, 1:14 AM
SarahDiamondFox
SarahDiamondFox - avatar
0
please help im at the end of my rope about this.
11th Aug 2018, 1:17 AM
SarahDiamondFox
SarahDiamondFox - avatar
0
okay yea I figured it out now I accidently put a if command in a if command XD
11th Aug 2018, 2:28 AM
SarahDiamondFox
SarahDiamondFox - avatar
0
you can view it on my profile.
11th Aug 2018, 2:30 AM
SarahDiamondFox
SarahDiamondFox - avatar
0
oh
11th Aug 2018, 2:30 AM
SarahDiamondFox
SarahDiamondFox - avatar
0
how I programmed it so your gurenteed to win lol
11th Aug 2018, 2:31 AM
SarahDiamondFox
SarahDiamondFox - avatar
0
lol
11th Aug 2018, 2:32 AM
SarahDiamondFox
SarahDiamondFox - avatar