/basic.poke Secret
Created
June 15, 2016 08:04
Star
You must be signed in to star a gist
PokeScript basic example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You were challenged by Trainer Brock | |
Brock's Onix used Growl "woof" | |
You caught a wild Magikarp | |
Nickname it "Salmon" | |
Stat Attack is 38 | |
Stat Defence is 64 | |
Stat SpecialDefence is 44 | |
Stat SpecialAttack is 42 | |
Attribute Trainer is Quill |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Pokemon(value) { | |
this.name = value; | |
this.prototype.toString = function () { | |
return this.name; | |
}; | |
} | |
function Brock(){ | |
console.log("woof"); | |
} | |
var Magikarp = new Pokemon(Salmon || "Salmon"); | |
Magikarp.Attack = 38; | |
Magikarp.Defence = 64; | |
Magikarp.SpecialDefence = 44; | |
Magikarp.SpecialAttack = 42; | |
Magikarp.Trainer = 'Quill'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make
Pokemon
have analive
property, and makeFight <pokemon>
=>while(<pokemon>.alive){
. Then it could have some TC ability... given there's a way to set some other stuff as well.