Pokemon3D Script API Documentation

Pokemon

API documention for the Prototype Pokemon.
Source code

Usage

var instance = new Pokemon(args);
...
instance.method(args);

Index


Constructor

Constructor constructor

Signatures:
Arguments: string rawDataUsage: var p = new Pokemon(rawData);

Arguments: int id, int level, [string additionalData]Usage: var p = new Pokemon(id, level, [additionalData]);

Variables

-- No Variables --

Getters & Setters

Getter (get) ability

Type: AbilityUsage: var ability = p.ability;

Getter (get) additionalData

Type: stringUsage: var additionalData = p.additionalData;

Getter (get) canSwim

Type: boolUsage: var canSwim = p.canSwim;

Getter (get) catchBall

Type: ItemUsage: var catchBall = p.catchBall;

Getter (get) catchLocation

Type: stringUsage: var catchLocation = p.catchLocation;

Getter (get) catchMethod

Type: stringUsage: var catchMethod = p.catchMethod;

Getter (get) catchTrainer

Type: stringUsage: var catchTrainer = p.catchTrainer;

Getter (get) displayName

Type: stringUsage: var displayName = p.displayName;

Getter (get) EVs

Type: objectUsage: var EVs = p.EVs;

Getter (get) exp

Type: intUsage: var exp = p.exp;

Getter (get) friendship

Type: intUsage: var friendship = p.friendship;

Getter (get) gender

Type: stringUsage: var gender = p.gender;

Getter (get) giveEVs

Type: objectUsage: var giveEVs = p.giveEVs;

Getter (get) hp

Type: intUsage: var hp = p.hp;

Getter (get) id

Type: intUsage: var id = p.id;

Getter (get) isEgg

Type: boolUsage: var isEgg = p.isEgg;

Getter (get) isShiny

Type: boolUsage: var isShiny = p.isShiny;

Getter (get) item

Type: ItemUsage: var item = p.item;

Getter (get) IVs

Type: objectUsage: var IVs = p.IVs;

Getter (get) level

Type: intUsage: var level = p.level;

Getter (get) name

Type: stringUsage: var name = p.name;

Getter (get) nature

Type: intUsage: var nature = p.nature;

Getter (get) nickname

Type: stringUsage: var nickname = p.nickname;

Getter (get) ot

Type: stringUsage: var ot = p.ot;

Getter (get) stats

Type: objectUsage: var stats = p.stats;

Getter (get) status

Type: stringUsage: var status = p.status;

Getter (get) translatedName

Type: stringUsage: var translatedName = p.translatedName;

Getter (get) types

Type: string[]Usage: var types = p.types;

Setter (set) ability

Type: AbilityUsage: p.ability = ability;

Setter (set) additionalData

Type: stringUsage: p.additionalData = additionalData;

Setter (set) catchBall

Type: ItemUsage: p.catchBall = catchBall;

Setter (set) catchLocation

Type: stringUsage: p.catchLocation = catchLocation;

Setter (set) catchMethod

Type: stringUsage: p.catchMethod = catchMethod;

Setter (set) catchTrainer

Type: stringUsage: p.catchTrainer = catchTrainer;

Setter (set) exp

Type: intUsage: p.exp = exp;

Setter (set) friendship

Type: intUsage: p.friendship = friendship;

Setter (set) gender

Type: stringUsage: p.gender = gender;

Setter (set) hp

Type: intUsage: p.hp = hp;

Setter (set) isShiny

Type: boolUsage: p.isShiny = isShiny;

Setter (set) item

Type: ItemUsage: p.item = item;

Setter (set) nature

Type: intUsage: p.nature = nature;

Setter (set) nickname

Type: stringUsage: p.nickname = nickname;

Setter (set) ot

Type: stringUsage: p.ot = ot;

Setter (set) status

Type: stringUsage: p.status = status;

Methods

addMove

Return: voidArguments: Move moveUsage: p.addMove(move);

canEvolve

Return: boolArguments: [string trigger], [string evolutionArg]Usage: var result = p.canEvolve([trigger], [evolutionArg]);

clearMoves

Return: voidUsage: p.clearMoves();

cry

Return: voidUsage: p.cry();

Static Method getLegendaryIds
Static

Return: int[]Usage: var result = Pokemon.getLegendaryIds();

getMoves

Return: Move[]Usage: var result = p.getMoves();

getSprite

Return: stringUsage: var result = p.getSprite();

heal

Return: voidArguments: [int hp]Usage: p.heal([hp]);

reload

Return: voidUsage: p.reload();

removeMoveAt

Return: voidArguments: int moveIndexUsage: p.removeMoveAt(moveIndex);

setEV

Return: voidArguments: string evType, int valueUsage: p.setEV(evType, value);

setIV

Return: voidArguments: string ivType, int valueUsage: p.setIV(ivType, value);

Indexers

-- No Indexers --