Skip to content

Instantly share code, notes, and snippets.

@The-Quill The-Quill/basic.poke Secret
Created Jun 15, 2016

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

ConorOBrien-Foxx commented Jul 12, 2016

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
You can’t perform that action at this time.