Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Game_Battler

Hierarchy

Index

Constructors

Properties

Methods

Constructors

Protected constructor

Properties

_actionState

_actionState: string

_actions

_actions: Game_Action[]

_animations

_animations: BattlerAnimation[]

_buffTurns

_buffTurns: number[]

_buffs

_buffs: number[]

_damagePopup

_damagePopup: boolean

_effectType

_effectType: string

_hidden

_hidden: boolean

_hp

_hp: number

_lastTargetIndex

_lastTargetIndex: number

_motionRefresh

_motionRefresh: boolean

_motionType

_motionType: MotionType

_mp

_mp: number

_paramPlus

_paramPlus: number[]

_result

_selected

_selected: boolean

_speed

_speed: number

_stateTurns

_stateTurns: {}

} Access using number/integer

Type declaration

  • [key: string]: any

_states

_states: number[]

_tp

_tp: number

_weaponImageId

_weaponImageId: number

Readonly agi

agi: number

[read-only] Agility - param 6

Readonly atk

atk: number

[read-only] ATtacK power - param 2

Readonly cev

cev: number

[read-only] Critical EVasion rate

Readonly cnt

cnt: number

[read-only] CouNTer attack rate

Readonly cri

cri: number

[read-only] CRItical rate

Readonly def

def: number

[read-only] DEFense power - param 3

Readonly eva

eva: number

[read-only] EVAsion rate

Readonly exr

exr: number

[read-only] EXperience Rate

Readonly fdr

fdr: number

[read-only] Floor Damage Rate

Readonly grd

grd: number

[read-only] Ggweqrtg*xzuaRD effect rate

Readonly hit

hit: number

[read-only] HIT rate -xparam 0

Readonly hp

hp: number

[read-only] Hit Points

Readonly hrg

hrg: number

[read-only] Hp ReGeneration rate

Readonly luk

luk: number

[read-only] LucK - param 7

Readonly mat

mat: number

[read-only] Magic Attack power - param 4

Readonly mcr

mcr: number

[read-only] Mp Cost Rate

Readonly mdf

mdf: number

[read-only] Magic Defense power - param 5

Readonly mdr

mdr: number

[read-only] Magical Damage Rate

Readonly mev

mev: number

[read-only] Magic EVasion rate

Readonly mhp

mhp: number

[read-only] Maximum Hit Points - param 0

Readonly mmp

mmp: number

[read-only] Maximum Magic Points - param 1

Readonly mp

mp: number

[read-only] Magic Points

Readonly mrf

mrf: number

[read-only] Magic ReFlection rate

Readonly mrg

mrg: number

[read-only] Mp ReGeneration rate

Readonly pdr

pdr: number

[read-only] Physical Damage Rate

Readonly pha

pha: number

[read-only] PHArmacology

Readonly rec

rec: number

[read-only] RECovery effect rate

Readonly tcr

tcr: number

[read-only] Tp Charge Rate

Readonly tgr

tgr: number

[read-only] TarGet Rate

Readonly tp

tp: number

[read-only] Tactical Points

Readonly trg

trg: number

[read-only] Tp ReGeneration rate

Static FLAG_ID_AUTO_BATTLE

FLAG_ID_AUTO_BATTLE: number

Flag ID auto battle; default to 0;

Static FLAG_ID_GUARD

FLAG_ID_GUARD: number

Flag ID guard; default to 1.

Static FLAG_ID_PRESERVE_TP

FLAG_ID_PRESERVE_TP: number

Flag id preserve type; default to 3.

Static FLAG_ID_SUBSTITUTE

FLAG_ID_SUBSTITUTE: number

Flag Id substitude; default to 2.

Static ICON_BUFF_START

ICON_BUFF_START: number

Icon buff start, default to 32.

Static ICON_DEBUFF_START

ICON_DEBUFF_START: number

Icon debuff start; default to 48.

Static TRAIT_ACTION_PLUS

TRAIT_ACTION_PLUS: number

Trait action plus; default to 61.

Static TRAIT_ATTACK_ELEMENT

TRAIT_ATTACK_ELEMENT: number

Trait attack element; default to 31.

Static TRAIT_ATTACK_SPEED

TRAIT_ATTACK_SPEED: number

Trait attack speed; default to 33.

Static TRAIT_ATTACK_STATE

TRAIT_ATTACK_STATE: number

Trait attack state; default to 32.

Static TRAIT_ATTACK_TIMES

TRAIT_ATTACK_TIMES: number

Trait attack times; default to 34.

Static TRAIT_COLLAPSE_TYPE

TRAIT_COLLAPSE_TYPE: number

Trait collapse type; default to 63.

Static TRAIT_DEBUFF_RATE

TRAIT_DEBUFF_RATE: number

Debuff Rate; default to 12.

Static TRAIT_ELEMENT_RATE

TRAIT_ELEMENT_RATE: number

Trait element rate; default to 11.

Static TRAIT_EQUIP_ATYPE

TRAIT_EQUIP_ATYPE: number

Trait AType(Equip armor type); default to 52.

Static TRAIT_EQUIP_LOCK

TRAIT_EQUIP_LOCK: number

Trait equipment lock; default to 53.

Static TRAIT_EQUIP_SEAL

TRAIT_EQUIP_SEAL: number

Trait equipment seal; default to 54.

Static TRAIT_EQUIP_WTYPE

TRAIT_EQUIP_WTYPE: number

Trait WType(equip weapon type); default to 51.

Static TRAIT_PARAM

TRAIT_PARAM: number

Trait param; default to 21.

Static TRAIT_PARTY_ABILITY

TRAIT_PARTY_ABILITY: number

Trait party ability; default to 64.

Static TRAIT_SKILL_ADD

TRAIT_SKILL_ADD: number

Trait Skill add; default to 43.

Static TRAIT_SKILL_SEAL

TRAIT_SKILL_SEAL: number

Trait skill seal; default to 44.

Static TRAIT_SLOT_TYPE

TRAIT_SLOT_TYPE: number

Trait slot type;default to 55.

Static TRAIT_SPARAM

TRAIT_SPARAM: number

Trait s param; default to 23.

Static TRAIT_SPECIAL_FLAG

TRAIT_SPECIAL_FLAG: number

Trait special flag; default to 62.

Static TRAIT_STATE_RATE

TRAIT_STATE_RATE: number

Trait state rate; default to 13.

Static TRAIT_STATE_RESIST

TRAIT_STATE_RESIST: number

Trait state resist; default to 14.

Static TRAIT_STYPE_ADD

TRAIT_STYPE_ADD: number

Trait Stype(Skill type ) add; default to 41.

Static TRAIT_STYPE_SEAL

TRAIT_STYPE_SEAL: number

Trait Stype(Skill type) seal; default to 42.

Static TRAIT_XPARAM

TRAIT_XPARAM: number

Trait x param; default to 22.

Methods

action

actionPlusSet

  • actionPlusSet(): number[]

addBuff

  • addBuff(paramId: number, turns: number): void
  • Adds a buff to the battler for the specified number of turns on the selected parameter.

    memberof

    Game_Battler

    Parameters

    • paramId: number
    • turns: number

    Returns void

addDebuff

  • addDebuff(paramId: number, turns: number): void
  • Adds a debuff to the battler for the specified number of turns on the selected parameter.

    memberof

    Game_Battler

    Parameters

    • paramId: number
    • turns: number

    Returns void

addNewState

  • addNewState(stateId: number): void

addParam

  • addParam(paramId: number, value: number): void

addState

  • addState(stateId: number): void

addedSkillTypes

  • addedSkillTypes(): number[]

addedSkills

  • addedSkills(): number[]

allIcons

  • allIcons(): number[]

allTraits

appear

  • appear(): void

attackElements

  • attackElements(): number[]

attackSkillid

  • attackSkillid(): number

attackSpeed

  • attackSpeed(): number

attackStates

  • attackStates(): number[]

attackStatesRate

  • attackStatesRate(stateId: number): void

attackTimesAdd

  • attackTimesAdd(): number

battlerName

  • battlerName(): string
  • Returns the battler name of the battler; the battler name is associated with the file used as the battler graphic.

    memberof

    Game_Battler

    Returns string

buff

  • buff(paramId: number): number

buffIconIndex

  • buffIconIndex(buffLevel: number, paramId: number): number

buffIcons

  • buffIcons(): number[]

buffLength

  • buffLength(): number

canAttack

  • canAttack(): boolean

canEquip

canEquipArmor

canEquipWeapon

canGuard

  • canGuard(): boolean

canInput

  • canInput(): boolean

canMove

  • canMove(): boolean

canPaySkillCost

  • canPaySkillCost(skill: Skill): boolean

canUse

chargeTpByDamage

  • chargeTpByDamage(damageRate: number): void

clearActions

  • clearActions(): void

clearAnimations

  • clearAnimations(): void

clearBuffs

  • clearBuffs(): void

clearDamagePopup

  • clearDamagePopup(): void

clearEffect

  • clearEffect(): void

clearMotion

  • clearMotion(): void

clearParamPlus

  • clearParamPlus(): void

clearResult

  • clearResult(): void

clearStates

  • clearStates(): void

clearTp

  • clearTp(): void

clearWeaponAnimation

  • clearWeaponAnimation(): void

collapseType

  • collapseType(): number

confusionLevel

  • confusionLevel(): number

consumeItem

currentAction

deathStateId

  • deathStateId(): number

debuffRate

  • debuffRate(paramId: number): number

decreaseBuff

  • decreaseBuff(paramId: number): void

deselect

  • deselect(): void

die

  • die(): void

effectType

  • effectType(): string

elementRate

  • elementRate(elementId: number): number

eraseBuff

  • eraseBuff(paramId: number): void

eraseState

  • eraseState(stateId: number): void

escape

  • escape(): void

forceAction

  • forceAction(skillId: number, targetIndex: number): void

friendsUnit

gainHp

  • gainHp(value: number): void

gainMp

  • gainMp(value: number): void

gainSilentTp

  • gainSilentTp(value: number): void

gainTp

  • gainTp(value: number): void

guardSkillId

  • guardSkillId(): number

hide

  • hide(): void

hpRate

  • hpRate(): number

increaseBuff

  • increaseBuff(paramId: number): void

index

  • index(): number

initMembers

  • initMembers(): void

initTp

  • initTp(): void

initialize

  • initialize(): void

isActing

  • isActing(): boolean

isActor

  • isActor(): boolean

isAlive

  • isAlive(): boolean

isAnimationRequested

  • isAnimationRequested(): boolean

isAppeared

  • isAppeared(): boolean

isAutoBattle

  • isAutoBattle(): boolean

isBuffAffected

  • isBuffAffected(paramId: number): boolean

isBuffExpired

  • isBuffExpired(paramId: number): boolean

isBuffOrDebuffAffected

  • isBuffOrDebuffAffected(paramId: number): boolean

isChanting

  • isChanting(): boolean

isConfused

  • isConfused(): boolean

isDamagePopupRequested

  • isDamagePopupRequested(): boolean

isDead

  • isDead(): boolean

isDeathStateAffected

  • isDeathStateAffected(): boolean

isDebuffAffected

  • isDebuffAffected(paramId: number): boolean

isDualWield

  • isDualWield(): boolean

isDying

  • isDying(): boolean

isEffectRequested

  • isEffectRequested(): boolean

isEnemy

  • isEnemy(): boolean

isEquipAtypeOk

  • isEquipAtypeOk(armorTypeId: number): boolean

isEquipTypeLocked

  • isEquipTypeLocked(equipmentTypeId: number): boolean

isEquipTypeSealed

  • isEquipTypeSealed(equipmentTypeId: number): boolean

isEquipWtypeOk

  • isEquipWtypeOk(weaponTypeId: number): boolean

isGuard

  • isGuard(): boolean

isGuardWaiting

  • isGuardWaiting(): boolean

isHidden

  • isHidden(): boolean

isInputting

  • isInputting(): boolean

isMaxBuffAffected

  • isMaxBuffAffected(paramId: number): boolean

isMaxDebuffAffected

  • isMaxDebuffAffected(paramId: number): boolean

isMotionRefreshRequested

  • isMotionRefreshRequested(): boolean

isMotionRequested

  • isMotionRequested(): boolean

isOccasionOk

isPreserveTp

  • isPreserveTp(): boolean

isRestricted

  • isRestricted(): boolean

isSelected

  • isSelected(): boolean

isSkillSealed

  • isSkillSealed(skillId: number): boolean

isSkillTypeSealed

  • isSkillTypeSealed(skilltypeId: number): boolean

isSkillWtypeOk

  • isSkillWtypeOk(skill: Skill): boolean

isStateAddable

  • isStateAddable(stateId: number): boolean

isStateAffected

  • isStateAffected(stateId: number): boolean

isStateExpired

  • isStateExpired(stateId: number): boolean

isStateResist

  • isStateResist(stateId: number): boolean

isStateRestrict

  • isStateRestrict(stateId: number): boolean

isSubstitute

  • isSubstitute(): boolean

isUndecided

  • isUndecided(): boolean

isWaiting

  • isWaiting(): boolean

isWeaponAnimationRequested

  • isWeaponAnimationRequested(): boolean

makeActionTimes

  • makeActionTimes(): number

makeActions

  • makeActions(): void

makeSpeed

  • makeSpeed(): void

maxSlipDamage

  • maxSlipDamage(): number

maxTp

  • maxTp(): number

meetsItemConditions

  • meetsItemConditions(item: Item): boolean

meetsSkillConditions

  • meetsSkillConditions(skill: Skill): boolean

meetsUsableItemConditions

  • meetsUsableItemConditions(item: UsableItem): boolean

mostImportantStateText

  • mostImportantStateText(): string

motionType

  • motionType(): string

mpRate

  • mpRate(): number

name

  • name(): string

numActions

  • numActions(): number

onAllActionsEnd

  • onAllActionsEnd(): void

onBattleEnd

  • onBattleEnd(): void

onBattleStart

  • onBattleStart(): void

onDamage

  • onDamage(value: number): void

onRestrict

  • onRestrict(): void

onTurnEnd

  • onTurnEnd(): void

opponentsUnit

overwriteBuffTurns

  • overwriteBuffTurns(paramId: number, turns: number): void

param

  • param(paramId: number): number

paramBase

  • paramBase(paramId: number): number

paramBuffRate

  • paramBuffRate(paramId: number): number

paramMax

  • paramMax(paramId: number): number

paramMin

  • paramMin(paramId: number): number

paramPlus

  • paramPlus(paramId: number): number

paramRate

  • paramRate(paramId: number): number

partyAbility

  • partyAbility(abilityId: number): boolean

paySkillCost

  • paySkillCost(skill: Skill): void

performAction

performActionEnd

  • performActionEnd(): void

performActionStart

performCollapse

  • performCollapse(): void

performCounter

  • performCounter(): void

performDamage

  • performDamage(): void

performEvasion

  • performEvasion(): void

performMagicEvasion

  • performMagicEvasion(): void

performMiss

  • performMiss(): void

performRecovery

  • performRecovery(): void

performReflection

  • performReflection(): void

performSubstitute

recoverAll

  • recoverAll(): void

refresh

  • refresh(): void

regenerateAll

  • regenerateAll(): void

regenerateHp

  • regenerateHp(): void

regenerateMp

  • regenerateMp(): void

regenerateTp

  • regenerateTp(): void

removeAllBuffs

  • removeAllBuffs(): void

removeBattleStates

  • removeBattleStates(): void

removeBuff

  • removeBuff(paramId: number): void

removeBuffsAuto

  • removeBuffsAuto(): void

removeCurrentAction

  • removeCurrentAction(): void

removeState

  • removeState(stateId: number): void

removeStatesAuto

  • removeStatesAuto(timing: number): void

removeStatesByDamage

  • removeStatesByDamage(): void

requestEffect

  • requestEffect(effectType: string): void

requestMotion

  • requestMotion(motionType: string): void

requestMotionRefresh

  • requestMotionRefresh(): void

resetStateCounts

  • resetStateCounts(stateId: number): void

restriction

  • restriction(): number

result

revive

  • revive(): void

select

  • select(): void

setAction

setActionState

setHp

  • setHp(hp: number): void

setLastTarget

setMp

  • setMp(mp: number): void

setTp

  • setTp(tp: number): void

shiftAnimation

skillMpCost

  • skillMpCost(skill: Skill): number

skillTpCost

  • skillTpCost(skill: Skill): number

slotType

  • slotType(): number

sortStates

  • sortStates(): void

sparam

  • sparam(sparamId: number): number

specialFlag

  • specialFlag(flagId: number): boolean

speed

  • speed(): number

startAnimation

  • startAnimation(animationId: AnimationId, mirror: boolean, delay: number): void

startDamagePopup

  • startDamagePopup(): void

startWeaponAnimation

stateIcons

  • stateIcons(): number[]

stateMotionIndex

  • stateMotionIndex(): number

stateOverlayIndex

  • stateOverlayIndex(): number

stateRate

  • stateRate(stateId: number): number

stateResistSet

  • stateResistSet(): number[]

states

tpRate

  • tpRate(): number

traitObjects

  • traitObjects(): any[]

traits

  • traits(code: number): Trait[]

traitsPi

  • traitsPi(code: number, traitId: number): number

traitsSet

  • traitsSet(code: number): number[]

traitsSum

  • traitsSum(code: number, traitId: number): number

traitsSumAll

  • traitsSumAll(code: number): number

traitsWithId

  • traitsWithId(code: number, traitId: number): Trait[]

updateBuffTurns

  • updateBuffTurns(): void

updateStateTurns

  • updateStateTurns(): void

useItem

weaponImageId

xparam

  • xparam(xparamId: number): number
  • Returns the Extra parameter, given a x parameter id. These include Hit rate Evasion rate Critical rate Magic evasion rate Magic reflection rate Counter attack rate Hp regeneration rate Mp regeneration rate Tp regeneration rate

    Parameters

    • xparamId: number

    Returns number

    Int

Generated using TypeDoc