Skip to content

Instantly share code, notes, and snippets.

@The-Quill
Created June 15, 2016 08:04
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save The-Quill/0d0e821850ebda3c619b602bdf595cf9 to your computer and use it in GitHub Desktop.
PokeScript basic example
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
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';
@ConorOBrien-Foxx
Copy link

Make Pokemon have an alive property, and make Fight <pokemon> => while(<pokemon>.alive){. Then it could have some TC ability... given there's a way to set some other stuff as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment