Class in reactor_objects_battlers.js

Game_Battler

133 public functions in 7 groups · show internal (_) functions

Actors and their stats.

Familiar territory. Game_Battler keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.

Quick Reference

Setup & Creation 10

initialize() Sets up a new instance.
initMembers() Initializes the members.
initTpbChargeTime() Initializes the tpb charge time.
initTpbTurn() Initializes the tpb turn.
makeTpbActions() Makes the tpb actions.
installBuffRateGate() Install buff rate gate.
makeActionTimes() Makes the action times.
makeActions() Makes the actions.
makeSpeed() Makes the speed.
initTp() Initializes the tp.

Getting Information 2

currentAction() The current action.
maxSlipDamage() The maximum slip damage.

Checks (True / False) 21

isDamagePopupRequested() Whether it is damage popup requested.
isEffectRequested() Whether it is effect requested.
isMotionRequested() Whether it is motion requested.
isWeaponAnimationRequested() Whether it is weapon animation requested.
isMotionRefreshRequested() Whether it is motion refresh requested.
isSelected() Whether it is selected.
shouldPopupDamage() Whether it should popup damage.
isTpbCharged() Whether it is tpb charged.
isTpbReady() Whether it is tpb ready.
isTpbTimeout() Whether it is tpb timeout.
shouldDelayTpbCharge() Whether it should delay tpb charge.
isTpbTurnEnd() Whether it is tpb turn end.
canInput() Whether it can input.
isStateAddable() Whether it is state addable.
isStateRestrict() Whether it is state restrict.
isUndecided() Whether it is undecided.
isInputting() Whether it is inputting.
isWaiting() Whether it is waiting.
isActing() Whether it is acting.
isChanting() Whether it is chanting.
isGuardWaiting() Whether it is guard waiting.

Actions 53

clearDamagePopup() Clears the damage popup.
clearWeaponAnimation() Clears the weapon animation.
clearEffect() Clears the effect.
clearMotion() Clears the motion.
requestEffect() Requests the effect.
requestMotion() Requests the motion.
requestMotionRefresh() Requests the motion refresh.
select() Select.
startDamagePopup() Starts the damage popup.
startWeaponAnimation() Starts the weapon animation.
setAction() Sets the action.
clearActions() Clears the actions.
clearResult() Clears the result.
clearTpbChargeTime() Clears the tpb charge time.
applyTpbPenalty() Applies the tpb penalty.
startTpbCasting() Starts the tpb casting.
startTpbAction() Starts the tpb action.
finishTpbCharge() Finish tpb charge.
startTpbTurn() Starts the tpb turn.
turnCount() Turn count.
addState() Adds the state.
removeState() Removes the state.
addBuff() Adds the buff.
addDebuff() Adds the debuff.
removeBuff() Removes the buff.
removeBattleStates() Removes the battle states.
removeAllBuffs() Removes the all buffs.
removeStatesAuto() Removes the states auto.
removeBuffsAuto() Removes the buffs auto.
removeStatesByDamage() Removes the states by damage.
removeCurrentAction() Removes the current action.
setLastTarget() Sets the last target.
useItem() Use item.
gainHp() Gains the hp.
gainMp() Gains the mp.
gainTp() Gains the tp.
gainSilentTp() Gains the silent tp.
clearTp() Clears the tp.
setActionState() Sets the action state.
performActionStart() Plays the action start effect.
performAction() Plays the action effect.
performActionEnd() Plays the action end effect.
performDamage() Plays the damage effect.
performMiss() Plays the miss effect.
performRecovery() Plays the recovery effect.
performMpRecovery() Plays the mp recovery effect.
performTpRecovery() Plays the tp recovery effect.
performEvasion() Plays the evasion effect.
performMagicEvasion() Plays the magic evasion effect.
performCounter() Plays the counter effect.
performReflection() Plays the reflection effect.
performSubstitute() Plays the substitute effect.
performCollapse() Plays the collapse effect.

Events, Commands & Input 8

onTpbCharged() Called when tpb charged happens.
onTpbTimeout() Called when tpb timeout happens.
onRestrict() Called when restrict happens.
onBattleStart() Called when battle start happens.
onAllActionsEnd() Called when all actions end happens.
onTurnEnd() Called when turn end happens.
onBattleEnd() Called when battle end happens.
onDamage() Called when damage happens.

Updating & Drawing 6

updateTpb() Updates the tpb each frame.
updateTpbChargeTime() Updates the tpb charge time each frame.
updateTpbCastTime() Updates the tpb cast time each frame.
updateTpbAutoBattle() Updates the tpb auto battle each frame.
updateTpbIdleTime() Updates the tpb idle time each frame.
refresh() Refresh.

Other 33

cancelMotionRefresh() Cancel motion refresh.
deselect() Deselect.
effectType() Effect type.
motionType() Motion type.
weaponImageId() Weapon image id.
action() Action.
numActions() Num actions.
result() Result.
tpbChargeTime() Tpb charge time.
tpbAcceleration() Tpb acceleration.
tpbRelativeSpeed() Tpb relative speed.
tpbSpeed() Tpb speed.
tpbBaseSpeed() Tpb base speed.
tpbRequiredCastTime() Tpb required cast time.
escape() Escape.
speed() Speed.
forceAction() Force action.
consumeItem() Consume item.
chargeTpByDamage() Charge tp by damage.
regenerateHp() Regenerate hp.
regenerateMp() Regenerate mp.
regenerateTp() Regenerate tp.
regenerateAll() Regenerate all.
actionConditionStateIds() The states a state condition names.
meetsTurnCondition() Meets turn condition.
meetsHpCondition() Meets hp condition.
meetsMpCondition() Meets mp condition.
meetsTpCondition() Meets tp condition.
meetsStateCondition() Membership by state object rather than by id.
meetsTargetStateCondition() Asked of the candidate rather than read off its _states, so a per-class replacement of meetsStateCondition go…
actionTargetCandidates() Action target candidates.
meetsPartyLevelCondition() Meets party level condition.
meetsSwitchCondition() Meets switch condition.

Setup & Creation

initialize

method source
Game_Battler.prototype.initialize()

Sets up a new instance. (Same as the RPG Maker MZ method of this name.)

initMembers

method source
Game_Battler.prototype.initMembers()

Initializes the members. (Same as the RPG Maker MZ method of this name.)

initTpbChargeTime

method source
Game_Battler.prototype.initTpbChargeTime(advantageous)

Initializes the tpb charge time. (Same as the RPG Maker MZ method of this name.)

initTpbTurn

method source
Game_Battler.prototype.initTpbTurn()

Initializes the tpb turn. (Same as the RPG Maker MZ method of this name.)

makeTpbActions

method source
Game_Battler.prototype.makeTpbActions()

Makes the tpb actions. (Same as the RPG Maker MZ method of this name.)

installBuffRateGate

static source
Game_Battler.installBuffRateGate()

Install buff rate gate. (Same as the RPG Maker MZ method of this name.)

makeActionTimes

method source
Game_Battler.prototype.makeActionTimes()

Makes the action times. (Same as the RPG Maker MZ method of this name.)

makeActions

method source
Game_Battler.prototype.makeActions()

Makes the actions. (Same as the RPG Maker MZ method of this name.)

makeSpeed

method source
Game_Battler.prototype.makeSpeed()

Makes the speed. (Same as the RPG Maker MZ method of this name.)

initTp

method source
Game_Battler.prototype.initTp()

Initializes the tp. (Same as the RPG Maker MZ method of this name.)

Getting Information

currentAction

method source
Game_Battler.prototype.currentAction()

The current action. (Same as the RPG Maker MZ method of this name.)

maxSlipDamage

method source
Game_Battler.prototype.maxSlipDamage()

The maximum slip damage. (Same as the RPG Maker MZ method of this name.)

Checks (True / False)

isDamagePopupRequested

method source
Game_Battler.prototype.isDamagePopupRequested()

Whether it is damage popup requested. (Same as the RPG Maker MZ method of this name.)

isEffectRequested

method source
Game_Battler.prototype.isEffectRequested()

Whether it is effect requested. (Same as the RPG Maker MZ method of this name.)

isMotionRequested

method source
Game_Battler.prototype.isMotionRequested()

Whether it is motion requested. (Same as the RPG Maker MZ method of this name.)

isWeaponAnimationRequested

method source
Game_Battler.prototype.isWeaponAnimationRequested()

Whether it is weapon animation requested. (Same as the RPG Maker MZ method of this name.)

isMotionRefreshRequested

method source
Game_Battler.prototype.isMotionRefreshRequested()

Whether it is motion refresh requested. (Same as the RPG Maker MZ method of this name.)

isSelected

method source
Game_Battler.prototype.isSelected()

Whether it is selected. (Same as the RPG Maker MZ method of this name.)

shouldPopupDamage

method source
Game_Battler.prototype.shouldPopupDamage()

Whether it should popup damage. (Same as the RPG Maker MZ method of this name.)

isTpbCharged

method source
Game_Battler.prototype.isTpbCharged()

Whether it is tpb charged. (Same as the RPG Maker MZ method of this name.)

isTpbReady

method source
Game_Battler.prototype.isTpbReady()

Whether it is tpb ready. (Same as the RPG Maker MZ method of this name.)

isTpbTimeout

method source
Game_Battler.prototype.isTpbTimeout()

Whether it is tpb timeout. (Same as the RPG Maker MZ method of this name.)

shouldDelayTpbCharge

method source
Game_Battler.prototype.shouldDelayTpbCharge()

Whether it should delay tpb charge. (Same as the RPG Maker MZ method of this name.)

isTpbTurnEnd

method source
Game_Battler.prototype.isTpbTurnEnd()

Whether it is tpb turn end. (Same as the RPG Maker MZ method of this name.)

canInput

method source
Game_Battler.prototype.canInput()

Whether it can input. (Same as the RPG Maker MZ method of this name.)

isStateAddable

method source
Game_Battler.prototype.isStateAddable(stateId)

Whether it is state addable. (Same as the RPG Maker MZ method of this name.)

isStateRestrict

method source
Game_Battler.prototype.isStateRestrict(stateId)

Whether it is state restrict. (Same as the RPG Maker MZ method of this name.)

isUndecided

method source
Game_Battler.prototype.isUndecided()

Whether it is undecided. (Same as the RPG Maker MZ method of this name.)

isInputting

method source
Game_Battler.prototype.isInputting()

Whether it is inputting. (Same as the RPG Maker MZ method of this name.)

isWaiting

method source
Game_Battler.prototype.isWaiting()

Whether it is waiting. (Same as the RPG Maker MZ method of this name.)

isActing

method source
Game_Battler.prototype.isActing()

Whether it is acting. (Same as the RPG Maker MZ method of this name.)

isChanting

method source
Game_Battler.prototype.isChanting()

Whether it is chanting. (Same as the RPG Maker MZ method of this name.)

isGuardWaiting

method source
Game_Battler.prototype.isGuardWaiting()

Whether it is guard waiting. (Same as the RPG Maker MZ method of this name.)

Actions

clearDamagePopup

method source
Game_Battler.prototype.clearDamagePopup()

Clears the damage popup. (Same as the RPG Maker MZ method of this name.)

clearWeaponAnimation

method source
Game_Battler.prototype.clearWeaponAnimation()

Clears the weapon animation. (Same as the RPG Maker MZ method of this name.)

clearEffect

method source
Game_Battler.prototype.clearEffect()

Clears the effect. (Same as the RPG Maker MZ method of this name.)

clearMotion

method source
Game_Battler.prototype.clearMotion()

Clears the motion. (Same as the RPG Maker MZ method of this name.)

requestEffect

method source
Game_Battler.prototype.requestEffect(effectType)

Requests the effect. (Same as the RPG Maker MZ method of this name.)

requestMotion

method source
Game_Battler.prototype.requestMotion(motionType)

Requests the motion. (Same as the RPG Maker MZ method of this name.)

requestMotionRefresh

method source
Game_Battler.prototype.requestMotionRefresh()

Requests the motion refresh. (Same as the RPG Maker MZ method of this name.)

select

method source
Game_Battler.prototype.select()

Select. (Same as the RPG Maker MZ method of this name.)

startDamagePopup

method source
Game_Battler.prototype.startDamagePopup()

Starts the damage popup. (Same as the RPG Maker MZ method of this name.)

startWeaponAnimation

method source
Game_Battler.prototype.startWeaponAnimation(weaponImageId)

Starts the weapon animation. (Same as the RPG Maker MZ method of this name.)

setAction

method source
Game_Battler.prototype.setAction(index, action)

Sets the action. (Same as the RPG Maker MZ method of this name.)

clearActions

method source
Game_Battler.prototype.clearActions()

Clears the actions. (Same as the RPG Maker MZ method of this name.)

clearResult

method source
Game_Battler.prototype.clearResult()

Clears the result. (Same as the RPG Maker MZ method of this name.)

clearTpbChargeTime

method source
Game_Battler.prototype.clearTpbChargeTime()

Clears the tpb charge time. (Same as the RPG Maker MZ method of this name.)

applyTpbPenalty

method source
Game_Battler.prototype.applyTpbPenalty()

Applies the tpb penalty. (Same as the RPG Maker MZ method of this name.)

startTpbCasting

method source
Game_Battler.prototype.startTpbCasting()

Starts the tpb casting. (Same as the RPG Maker MZ method of this name.)

startTpbAction

method source
Game_Battler.prototype.startTpbAction()

Starts the tpb action. (Same as the RPG Maker MZ method of this name.)

finishTpbCharge

method source
Game_Battler.prototype.finishTpbCharge()

Finish tpb charge. (Same as the RPG Maker MZ method of this name.)

startTpbTurn

method source
Game_Battler.prototype.startTpbTurn()

Starts the tpb turn. (Same as the RPG Maker MZ method of this name.)

turnCount

method source
Game_Battler.prototype.turnCount()

Turn count. (Same as the RPG Maker MZ method of this name.)

addState

method source
Game_Battler.prototype.addState(stateId)

Adds the state. (Same as the RPG Maker MZ method of this name.)

removeState

method source
Game_Battler.prototype.removeState(stateId)

Removes the state. (Same as the RPG Maker MZ method of this name.)

addBuff

method source
Game_Battler.prototype.addBuff(paramId, turns)

Adds the buff. (Same as the RPG Maker MZ method of this name.)

addDebuff

method source
Game_Battler.prototype.addDebuff(paramId, turns)

Adds the debuff. (Same as the RPG Maker MZ method of this name.)

removeBuff

method source
Game_Battler.prototype.removeBuff(paramId)

Removes the buff. (Same as the RPG Maker MZ method of this name.)

removeBattleStates

method source
Game_Battler.prototype.removeBattleStates()

Removes the battle states. (Same as the RPG Maker MZ method of this name.)

removeAllBuffs

method source
Game_Battler.prototype.removeAllBuffs()

Removes the all buffs. (Same as the RPG Maker MZ method of this name.)

removeStatesAuto

method source
Game_Battler.prototype.removeStatesAuto(timing)

Removes the states auto. (Same as the RPG Maker MZ method of this name.)

removeBuffsAuto

method source
Game_Battler.prototype.removeBuffsAuto()

Removes the buffs auto. (Same as the RPG Maker MZ method of this name.)

removeStatesByDamage

method source
Game_Battler.prototype.removeStatesByDamage()

Removes the states by damage. (Same as the RPG Maker MZ method of this name.)

removeCurrentAction

method source
Game_Battler.prototype.removeCurrentAction()

Removes the current action. (Same as the RPG Maker MZ method of this name.)

setLastTarget

method source
Game_Battler.prototype.setLastTarget(target)

Sets the last target. (Same as the RPG Maker MZ method of this name.)

useItem

method source
Game_Battler.prototype.useItem(item)

Use item. (Same as the RPG Maker MZ method of this name.)

gainHp

method source
Game_Battler.prototype.gainHp(value)

Gains the hp. (Same as the RPG Maker MZ method of this name.)

gainMp

method source
Game_Battler.prototype.gainMp(value)

Gains the mp. (Same as the RPG Maker MZ method of this name.)

gainTp

method source
Game_Battler.prototype.gainTp(value)

Gains the tp. (Same as the RPG Maker MZ method of this name.)

gainSilentTp

method source
Game_Battler.prototype.gainSilentTp(value)

Gains the silent tp. (Same as the RPG Maker MZ method of this name.)

clearTp

method source
Game_Battler.prototype.clearTp()

Clears the tp. (Same as the RPG Maker MZ method of this name.)

setActionState

method source
Game_Battler.prototype.setActionState(actionState)

Sets the action state. (Same as the RPG Maker MZ method of this name.)

performActionStart

method source
Game_Battler.prototype.performActionStart(action)

Plays the action start effect. (Same as the RPG Maker MZ method of this name.)

performAction

method source
Game_Battler.prototype.performAction(/*action*/)

Plays the action effect. (Same as the RPG Maker MZ method of this name.)

performActionEnd

method source
Game_Battler.prototype.performActionEnd()

Plays the action end effect. (Same as the RPG Maker MZ method of this name.)

performDamage

method source
Game_Battler.prototype.performDamage()

Plays the damage effect. (Same as the RPG Maker MZ method of this name.)

performMiss

method source
Game_Battler.prototype.performMiss()

Plays the miss effect. (Same as the RPG Maker MZ method of this name.)

performRecovery

method source
Game_Battler.prototype.performRecovery()

Plays the recovery effect. (Same as the RPG Maker MZ method of this name.)

performMpRecovery

method source
Game_Battler.prototype.performMpRecovery()

Plays the mp recovery effect. (Same as the RPG Maker MZ method of this name.)

performTpRecovery

method source
Game_Battler.prototype.performTpRecovery()

Plays the tp recovery effect. (Same as the RPG Maker MZ method of this name.)

performEvasion

method source
Game_Battler.prototype.performEvasion()

Plays the evasion effect. (Same as the RPG Maker MZ method of this name.)

performMagicEvasion

method source
Game_Battler.prototype.performMagicEvasion()

Plays the magic evasion effect. (Same as the RPG Maker MZ method of this name.)

performCounter

method source
Game_Battler.prototype.performCounter()

Plays the counter effect. (Same as the RPG Maker MZ method of this name.)

performReflection

method source
Game_Battler.prototype.performReflection()

Plays the reflection effect. (Same as the RPG Maker MZ method of this name.)

performSubstitute

method source
Game_Battler.prototype.performSubstitute(/*target*/)

Plays the substitute effect. (Same as the RPG Maker MZ method of this name.)

performCollapse

method source
Game_Battler.prototype.performCollapse()

Plays the collapse effect. (Same as the RPG Maker MZ method of this name.)

Events, Commands & Input

onTpbCharged

method source
Game_Battler.prototype.onTpbCharged()

Called when tpb charged happens. (Same as the RPG Maker MZ method of this name.)

onTpbTimeout

method source
Game_Battler.prototype.onTpbTimeout()

Called when tpb timeout happens. (Same as the RPG Maker MZ method of this name.)

onRestrict

method source
Game_Battler.prototype.onRestrict()

Called when restrict happens. (Same as the RPG Maker MZ method of this name.)

onBattleStart

method source
Game_Battler.prototype.onBattleStart(advantageous)

Called when battle start happens. (Same as the RPG Maker MZ method of this name.)

onAllActionsEnd

method source
Game_Battler.prototype.onAllActionsEnd()

Called when all actions end happens. (Same as the RPG Maker MZ method of this name.)

onTurnEnd

method source
Game_Battler.prototype.onTurnEnd()

Called when turn end happens. (Same as the RPG Maker MZ method of this name.)

onBattleEnd

method source
Game_Battler.prototype.onBattleEnd()

Called when battle end happens. (Same as the RPG Maker MZ method of this name.)

onDamage

method source
Game_Battler.prototype.onDamage(value)

Called when damage happens. (Same as the RPG Maker MZ method of this name.)

Updating & Drawing

updateTpb

method source
Game_Battler.prototype.updateTpb()

Updates the tpb each frame. (Same as the RPG Maker MZ method of this name.)

updateTpbChargeTime

method source
Game_Battler.prototype.updateTpbChargeTime()

Updates the tpb charge time each frame. (Same as the RPG Maker MZ method of this name.)

updateTpbCastTime

method source
Game_Battler.prototype.updateTpbCastTime()

Updates the tpb cast time each frame. (Same as the RPG Maker MZ method of this name.)

updateTpbAutoBattle

method source
Game_Battler.prototype.updateTpbAutoBattle()

Updates the tpb auto battle each frame. (Same as the RPG Maker MZ method of this name.)

updateTpbIdleTime

method source
Game_Battler.prototype.updateTpbIdleTime()

Updates the tpb idle time each frame. (Same as the RPG Maker MZ method of this name.)

refresh

method source
Game_Battler.prototype.refresh()

Refresh. (Same as the RPG Maker MZ method of this name.)

Other

cancelMotionRefresh

method source
Game_Battler.prototype.cancelMotionRefresh()

Cancel motion refresh. (Same as the RPG Maker MZ method of this name.)

deselect

method source
Game_Battler.prototype.deselect()

Deselect. (Same as the RPG Maker MZ method of this name.)

effectType

method source
Game_Battler.prototype.effectType()

Effect type. (Same as the RPG Maker MZ method of this name.)

motionType

method source
Game_Battler.prototype.motionType()

Motion type. (Same as the RPG Maker MZ method of this name.)

weaponImageId

method source
Game_Battler.prototype.weaponImageId()

Weapon image id. (Same as the RPG Maker MZ method of this name.)

action

method source
Game_Battler.prototype.action(index)

Action. (Same as the RPG Maker MZ method of this name.)

numActions

method source
Game_Battler.prototype.numActions()

Num actions. (Same as the RPG Maker MZ method of this name.)

result

method source
Game_Battler.prototype.result()

Result. (Same as the RPG Maker MZ method of this name.)

tpbChargeTime

method source
Game_Battler.prototype.tpbChargeTime()

Tpb charge time. (Same as the RPG Maker MZ method of this name.)

tpbAcceleration

method source
Game_Battler.prototype.tpbAcceleration()

Tpb acceleration. (Same as the RPG Maker MZ method of this name.)

tpbRelativeSpeed

method source
Game_Battler.prototype.tpbRelativeSpeed()

Tpb relative speed. (Same as the RPG Maker MZ method of this name.)

tpbSpeed

method source
Game_Battler.prototype.tpbSpeed()

Tpb speed. (Same as the RPG Maker MZ method of this name.)

tpbBaseSpeed

method source
Game_Battler.prototype.tpbBaseSpeed()

Tpb base speed. (Same as the RPG Maker MZ method of this name.)

tpbRequiredCastTime

method source
Game_Battler.prototype.tpbRequiredCastTime()

Tpb required cast time. (Same as the RPG Maker MZ method of this name.)

escape

method source
Game_Battler.prototype.escape()

Escape. (Same as the RPG Maker MZ method of this name.)

speed

method source
Game_Battler.prototype.speed()

Speed. (Same as the RPG Maker MZ method of this name.)

forceAction

method source
Game_Battler.prototype.forceAction(skillId, targetIndex)

Force action. (Same as the RPG Maker MZ method of this name.)

consumeItem

method source
Game_Battler.prototype.consumeItem(item)

Consume item. (Same as the RPG Maker MZ method of this name.)

chargeTpByDamage

method source
Game_Battler.prototype.chargeTpByDamage(damageRate)

Charge tp by damage. (Same as the RPG Maker MZ method of this name.)

regenerateHp

method source
Game_Battler.prototype.regenerateHp()

Regenerate hp. (Same as the RPG Maker MZ method of this name.)

regenerateMp

method source
Game_Battler.prototype.regenerateMp()

Regenerate mp. (Same as the RPG Maker MZ method of this name.)

regenerateTp

method source
Game_Battler.prototype.regenerateTp()

Regenerate tp. (Same as the RPG Maker MZ method of this name.)

regenerateAll

method source
Game_Battler.prototype.regenerateAll()

Regenerate all. (Same as the RPG Maker MZ method of this name.)

actionConditionStateIds

method source
Game_Battler.prototype.actionConditionStateIds(param1, condition)

The states a state condition names.

Details

The states a state condition names.

params is the authored list and param1 is its first entry, kept so the legacy conditionParam1 field and anything reading it still name a real state. An action written before lists existed has no params and is the one-state case. A list that survives editing as nothing usable falls back to param1 rather than to the empty set, because some over nothing is false and would silently retire the action.

meetsTurnCondition

method source
Game_Battler.prototype.meetsTurnCondition(param1, param2)

Meets turn condition. (Same as the RPG Maker MZ method of this name.)

meetsHpCondition

method source
Game_Battler.prototype.meetsHpCondition(param1, param2)

Meets hp condition. (Same as the RPG Maker MZ method of this name.)

meetsMpCondition

method source
Game_Battler.prototype.meetsMpCondition(param1, param2)

Meets mp condition. (Same as the RPG Maker MZ method of this name.)

meetsTpCondition

method source
Game_Battler.prototype.meetsTpCondition(param1, param2)

Meets tp condition. (Same as the RPG Maker MZ method of this name.)

meetsStateCondition

method source
Game_Battler.prototype.meetsStateCondition(param)

Membership by state object rather than by id.

Details

Membership by state object rather than by id. While states() is the engine's own map over _states the two are the same answer, but a plugin that injects passive states into states() (VisuMZ_1_SkillsStatesCore does) then reaches this check too, so a passive answers a state condition the way the player sees it. The lookup is guarded because such a plugin can push an entry for a state id that no longer exists, and includes(undefined) would match.

meetsTargetStateCondition

method source
Game_Battler.prototype.meetsTargetStateCondition(param, action)

Asked of the candidate rather than read off its _states, so a per-class replacement of meetsStateCondition governs the target check as well: SkillsStatesCore replaces Game_Enemy's, and the two sides of an action condition cannot end up disagreeing about what counts as having a state.

actionTargetCandidates

method source
Game_Battler.prototype.actionTargetCandidates(action)

Action target candidates. (Same as the RPG Maker MZ method of this name.)

meetsPartyLevelCondition

method source
Game_Battler.prototype.meetsPartyLevelCondition(param)

Meets party level condition. (Same as the RPG Maker MZ method of this name.)

meetsSwitchCondition

method source
Game_Battler.prototype.meetsSwitchCondition(param)

Meets switch condition. (Same as the RPG Maker MZ method of this name.)