Pokemon3D Script API Documentation

Battle

API documention for the Prototype Battle.
Source code

Usage

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

Index


Constructor

var b = new Battle();

Variables

Variable canRun

Type: boolUsage:
- get: var canRun = b.canRun;
- set: b.canRun = canRun;

Variable canCatch

Type: boolUsage:
- get: var canCatch = b.canCatch;
- set: b.canCatch = canCatch;

Variable canBlackout

Type: boolUsage:
- get: var canBlackout = b.canBlackout;
- set: b.canBlackout = canBlackout;

Variable canReceiveExp

Type: boolUsage:
- get: var canReceiveExp = b.canReceiveExp;
- set: b.canReceiveExp = canReceiveExp;

Variable canUseItems

Type: boolUsage:
- get: var canUseItems = b.canUseItems;
- set: b.canUseItems = canUseItems;

Variable frontierTrainer

Type: intUsage:
- get: var frontierTrainer = b.frontierTrainer;
- set: b.frontierTrainer = frontierTrainer;

Variable isDiveBattle

Type: boolUsage:
- get: var isDiveBattle = b.isDiveBattle;
- set: b.isDiveBattle = isDiveBattle;

Variable isInverseBattle

Type: boolUsage:
- get: var isInverseBattle = b.isInverseBattle;
- set: b.isInverseBattle = isInverseBattle;

Variable customBattleMusic

Type: stringUsage:
- get: var customBattleMusic = b.customBattleMusic;
- set: b.customBattleMusic = customBattleMusic;

Variable hiddenAbilityChance

Type: intUsage:
- get: var hiddenAbilityChance = b.hiddenAbilityChance;
- set: b.hiddenAbilityChance = hiddenAbilityChance;

Getters & Setters

GetterStatic Method (get) wonLast
Static

Type: boolUsage: var wonLast = Battle.wonLast;

Methods

encounterTrainer

Return: voidArguments: Trainer trainerUsage: b.encounterTrainer(trainer);

reset

Return: voidUsage: b.reset();

startTrainer

Return: voidArguments: Trainer trainerUsage: b.startTrainer(trainer);

startWild

Return: voidArguments: Pokemon pokemon, [string music], [int introType]Usage: b.startWild(pokemon, [music], [introType]);

Indexers

-- No Indexers --