Class in reactor_objects_battlers.js
Game_Battler
133 public functions in 7 groups · show internal (_) functions
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 sourceGame_Battler.prototype.initialize()
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
initMembers
method sourceGame_Battler.prototype.initMembers()
Initializes the members. (Same as the RPG Maker MZ method of this name.)
initTpbChargeTime
method sourceGame_Battler.prototype.initTpbChargeTime(advantageous)
Initializes the tpb charge time. (Same as the RPG Maker MZ method of this name.)
initTpbTurn
method sourceGame_Battler.prototype.initTpbTurn()
Initializes the tpb turn. (Same as the RPG Maker MZ method of this name.)
makeTpbActions
method sourceGame_Battler.prototype.makeTpbActions()
Makes the tpb actions. (Same as the RPG Maker MZ method of this name.)
installBuffRateGate
static sourceGame_Battler.installBuffRateGate()
Install buff rate gate. (Same as the RPG Maker MZ method of this name.)
makeActionTimes
method sourceGame_Battler.prototype.makeActionTimes()
Makes the action times. (Same as the RPG Maker MZ method of this name.)
makeActions
method sourceGame_Battler.prototype.makeActions()
Makes the actions. (Same as the RPG Maker MZ method of this name.)
makeSpeed
method sourceGame_Battler.prototype.makeSpeed()
Makes the speed. (Same as the RPG Maker MZ method of this name.)
initTp
method sourceGame_Battler.prototype.initTp()
Initializes the tp. (Same as the RPG Maker MZ method of this name.)
Getting Information
currentAction
method sourceGame_Battler.prototype.currentAction()
The current action. (Same as the RPG Maker MZ method of this name.)
maxSlipDamage
method sourceGame_Battler.prototype.maxSlipDamage()
The maximum slip damage. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
isDamagePopupRequested
method sourceGame_Battler.prototype.isDamagePopupRequested()
Whether it is damage popup requested. (Same as the RPG Maker MZ method of this name.)
isEffectRequested
method sourceGame_Battler.prototype.isEffectRequested()
Whether it is effect requested. (Same as the RPG Maker MZ method of this name.)
isMotionRequested
method sourceGame_Battler.prototype.isMotionRequested()
Whether it is motion requested. (Same as the RPG Maker MZ method of this name.)
isWeaponAnimationRequested
method sourceGame_Battler.prototype.isWeaponAnimationRequested()
Whether it is weapon animation requested. (Same as the RPG Maker MZ method of this name.)
isMotionRefreshRequested
method sourceGame_Battler.prototype.isMotionRefreshRequested()
Whether it is motion refresh requested. (Same as the RPG Maker MZ method of this name.)
isSelected
method sourceGame_Battler.prototype.isSelected()
Whether it is selected. (Same as the RPG Maker MZ method of this name.)
shouldPopupDamage
method sourceGame_Battler.prototype.shouldPopupDamage()
Whether it should popup damage. (Same as the RPG Maker MZ method of this name.)
isTpbCharged
method sourceGame_Battler.prototype.isTpbCharged()
Whether it is tpb charged. (Same as the RPG Maker MZ method of this name.)
isTpbReady
method sourceGame_Battler.prototype.isTpbReady()
Whether it is tpb ready. (Same as the RPG Maker MZ method of this name.)
isTpbTimeout
method sourceGame_Battler.prototype.isTpbTimeout()
Whether it is tpb timeout. (Same as the RPG Maker MZ method of this name.)
shouldDelayTpbCharge
method sourceGame_Battler.prototype.shouldDelayTpbCharge()
Whether it should delay tpb charge. (Same as the RPG Maker MZ method of this name.)
isTpbTurnEnd
method sourceGame_Battler.prototype.isTpbTurnEnd()
Whether it is tpb turn end. (Same as the RPG Maker MZ method of this name.)
canInput
method sourceGame_Battler.prototype.canInput()
Whether it can input. (Same as the RPG Maker MZ method of this name.)
isStateAddable
method sourceGame_Battler.prototype.isStateAddable(stateId)
Whether it is state addable. (Same as the RPG Maker MZ method of this name.)
isStateRestrict
method sourceGame_Battler.prototype.isStateRestrict(stateId)
Whether it is state restrict. (Same as the RPG Maker MZ method of this name.)
isUndecided
method sourceGame_Battler.prototype.isUndecided()
Whether it is undecided. (Same as the RPG Maker MZ method of this name.)
isInputting
method sourceGame_Battler.prototype.isInputting()
Whether it is inputting. (Same as the RPG Maker MZ method of this name.)
isWaiting
method sourceGame_Battler.prototype.isWaiting()
Whether it is waiting. (Same as the RPG Maker MZ method of this name.)
isActing
method sourceGame_Battler.prototype.isActing()
Whether it is acting. (Same as the RPG Maker MZ method of this name.)
isChanting
method sourceGame_Battler.prototype.isChanting()
Whether it is chanting. (Same as the RPG Maker MZ method of this name.)
isGuardWaiting
method sourceGame_Battler.prototype.isGuardWaiting()
Whether it is guard waiting. (Same as the RPG Maker MZ method of this name.)
Actions
clearDamagePopup
method sourceGame_Battler.prototype.clearDamagePopup()
Clears the damage popup. (Same as the RPG Maker MZ method of this name.)
clearWeaponAnimation
method sourceGame_Battler.prototype.clearWeaponAnimation()
Clears the weapon animation. (Same as the RPG Maker MZ method of this name.)
clearEffect
method sourceGame_Battler.prototype.clearEffect()
Clears the effect. (Same as the RPG Maker MZ method of this name.)
clearMotion
method sourceGame_Battler.prototype.clearMotion()
Clears the motion. (Same as the RPG Maker MZ method of this name.)
requestEffect
method sourceGame_Battler.prototype.requestEffect(effectType)
Requests the effect. (Same as the RPG Maker MZ method of this name.)
requestMotion
method sourceGame_Battler.prototype.requestMotion(motionType)
Requests the motion. (Same as the RPG Maker MZ method of this name.)
requestMotionRefresh
method sourceGame_Battler.prototype.requestMotionRefresh()
Requests the motion refresh. (Same as the RPG Maker MZ method of this name.)
select
method sourceGame_Battler.prototype.select()
Select. (Same as the RPG Maker MZ method of this name.)
startDamagePopup
method sourceGame_Battler.prototype.startDamagePopup()
Starts the damage popup. (Same as the RPG Maker MZ method of this name.)
startWeaponAnimation
method sourceGame_Battler.prototype.startWeaponAnimation(weaponImageId)
Starts the weapon animation. (Same as the RPG Maker MZ method of this name.)
setAction
method sourceGame_Battler.prototype.setAction(index, action)
Sets the action. (Same as the RPG Maker MZ method of this name.)
clearActions
method sourceGame_Battler.prototype.clearActions()
Clears the actions. (Same as the RPG Maker MZ method of this name.)
clearResult
method sourceGame_Battler.prototype.clearResult()
Clears the result. (Same as the RPG Maker MZ method of this name.)
clearTpbChargeTime
method sourceGame_Battler.prototype.clearTpbChargeTime()
Clears the tpb charge time. (Same as the RPG Maker MZ method of this name.)
applyTpbPenalty
method sourceGame_Battler.prototype.applyTpbPenalty()
Applies the tpb penalty. (Same as the RPG Maker MZ method of this name.)
startTpbCasting
method sourceGame_Battler.prototype.startTpbCasting()
Starts the tpb casting. (Same as the RPG Maker MZ method of this name.)
startTpbAction
method sourceGame_Battler.prototype.startTpbAction()
Starts the tpb action. (Same as the RPG Maker MZ method of this name.)
finishTpbCharge
method sourceGame_Battler.prototype.finishTpbCharge()
Finish tpb charge. (Same as the RPG Maker MZ method of this name.)
startTpbTurn
method sourceGame_Battler.prototype.startTpbTurn()
Starts the tpb turn. (Same as the RPG Maker MZ method of this name.)
turnCount
method sourceGame_Battler.prototype.turnCount()
Turn count. (Same as the RPG Maker MZ method of this name.)
addState
method sourceGame_Battler.prototype.addState(stateId)
Adds the state. (Same as the RPG Maker MZ method of this name.)
removeState
method sourceGame_Battler.prototype.removeState(stateId)
Removes the state. (Same as the RPG Maker MZ method of this name.)
addBuff
method sourceGame_Battler.prototype.addBuff(paramId, turns)
Adds the buff. (Same as the RPG Maker MZ method of this name.)
addDebuff
method sourceGame_Battler.prototype.addDebuff(paramId, turns)
Adds the debuff. (Same as the RPG Maker MZ method of this name.)
removeBuff
method sourceGame_Battler.prototype.removeBuff(paramId)
Removes the buff. (Same as the RPG Maker MZ method of this name.)
removeBattleStates
method sourceGame_Battler.prototype.removeBattleStates()
Removes the battle states. (Same as the RPG Maker MZ method of this name.)
removeAllBuffs
method sourceGame_Battler.prototype.removeAllBuffs()
Removes the all buffs. (Same as the RPG Maker MZ method of this name.)
removeStatesAuto
method sourceGame_Battler.prototype.removeStatesAuto(timing)
Removes the states auto. (Same as the RPG Maker MZ method of this name.)
removeBuffsAuto
method sourceGame_Battler.prototype.removeBuffsAuto()
Removes the buffs auto. (Same as the RPG Maker MZ method of this name.)
removeStatesByDamage
method sourceGame_Battler.prototype.removeStatesByDamage()
Removes the states by damage. (Same as the RPG Maker MZ method of this name.)
removeCurrentAction
method sourceGame_Battler.prototype.removeCurrentAction()
Removes the current action. (Same as the RPG Maker MZ method of this name.)
setLastTarget
method sourceGame_Battler.prototype.setLastTarget(target)
Sets the last target. (Same as the RPG Maker MZ method of this name.)
useItem
method sourceGame_Battler.prototype.useItem(item)
Use item. (Same as the RPG Maker MZ method of this name.)
gainHp
method sourceGame_Battler.prototype.gainHp(value)
Gains the hp. (Same as the RPG Maker MZ method of this name.)
gainMp
method sourceGame_Battler.prototype.gainMp(value)
Gains the mp. (Same as the RPG Maker MZ method of this name.)
gainTp
method sourceGame_Battler.prototype.gainTp(value)
Gains the tp. (Same as the RPG Maker MZ method of this name.)
gainSilentTp
method sourceGame_Battler.prototype.gainSilentTp(value)
Gains the silent tp. (Same as the RPG Maker MZ method of this name.)
clearTp
method sourceGame_Battler.prototype.clearTp()
Clears the tp. (Same as the RPG Maker MZ method of this name.)
setActionState
method sourceGame_Battler.prototype.setActionState(actionState)
Sets the action state. (Same as the RPG Maker MZ method of this name.)
performActionStart
method sourceGame_Battler.prototype.performActionStart(action)
Plays the action start effect. (Same as the RPG Maker MZ method of this name.)
performAction
method sourceGame_Battler.prototype.performAction(/*action*/)
Plays the action effect. (Same as the RPG Maker MZ method of this name.)
performActionEnd
method sourceGame_Battler.prototype.performActionEnd()
Plays the action end effect. (Same as the RPG Maker MZ method of this name.)
performDamage
method sourceGame_Battler.prototype.performDamage()
Plays the damage effect. (Same as the RPG Maker MZ method of this name.)
performMiss
method sourceGame_Battler.prototype.performMiss()
Plays the miss effect. (Same as the RPG Maker MZ method of this name.)
performRecovery
method sourceGame_Battler.prototype.performRecovery()
Plays the recovery effect. (Same as the RPG Maker MZ method of this name.)
performMpRecovery
method sourceGame_Battler.prototype.performMpRecovery()
Plays the mp recovery effect. (Same as the RPG Maker MZ method of this name.)
performTpRecovery
method sourceGame_Battler.prototype.performTpRecovery()
Plays the tp recovery effect. (Same as the RPG Maker MZ method of this name.)
performEvasion
method sourceGame_Battler.prototype.performEvasion()
Plays the evasion effect. (Same as the RPG Maker MZ method of this name.)
performMagicEvasion
method sourceGame_Battler.prototype.performMagicEvasion()
Plays the magic evasion effect. (Same as the RPG Maker MZ method of this name.)
performCounter
method sourceGame_Battler.prototype.performCounter()
Plays the counter effect. (Same as the RPG Maker MZ method of this name.)
performReflection
method sourceGame_Battler.prototype.performReflection()
Plays the reflection effect. (Same as the RPG Maker MZ method of this name.)
performSubstitute
method sourceGame_Battler.prototype.performSubstitute(/*target*/)
Plays the substitute effect. (Same as the RPG Maker MZ method of this name.)
performCollapse
method sourceGame_Battler.prototype.performCollapse()
Plays the collapse effect. (Same as the RPG Maker MZ method of this name.)
Events, Commands & Input
onTpbCharged
method sourceGame_Battler.prototype.onTpbCharged()
Called when tpb charged happens. (Same as the RPG Maker MZ method of this name.)
onTpbTimeout
method sourceGame_Battler.prototype.onTpbTimeout()
Called when tpb timeout happens. (Same as the RPG Maker MZ method of this name.)
onRestrict
method sourceGame_Battler.prototype.onRestrict()
Called when restrict happens. (Same as the RPG Maker MZ method of this name.)
onBattleStart
method sourceGame_Battler.prototype.onBattleStart(advantageous)
Called when battle start happens. (Same as the RPG Maker MZ method of this name.)
onAllActionsEnd
method sourceGame_Battler.prototype.onAllActionsEnd()
Called when all actions end happens. (Same as the RPG Maker MZ method of this name.)
onTurnEnd
method sourceGame_Battler.prototype.onTurnEnd()
Called when turn end happens. (Same as the RPG Maker MZ method of this name.)
onBattleEnd
method sourceGame_Battler.prototype.onBattleEnd()
Called when battle end happens. (Same as the RPG Maker MZ method of this name.)
onDamage
method sourceGame_Battler.prototype.onDamage(value)
Called when damage happens. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
updateTpb
method sourceGame_Battler.prototype.updateTpb()
Updates the tpb each frame. (Same as the RPG Maker MZ method of this name.)
updateTpbChargeTime
method sourceGame_Battler.prototype.updateTpbChargeTime()
Updates the tpb charge time each frame. (Same as the RPG Maker MZ method of this name.)
updateTpbCastTime
method sourceGame_Battler.prototype.updateTpbCastTime()
Updates the tpb cast time each frame. (Same as the RPG Maker MZ method of this name.)
updateTpbAutoBattle
method sourceGame_Battler.prototype.updateTpbAutoBattle()
Updates the tpb auto battle each frame. (Same as the RPG Maker MZ method of this name.)
updateTpbIdleTime
method sourceGame_Battler.prototype.updateTpbIdleTime()
Updates the tpb idle time each frame. (Same as the RPG Maker MZ method of this name.)
refresh
method sourceGame_Battler.prototype.refresh()
Refresh. (Same as the RPG Maker MZ method of this name.)
Other
cancelMotionRefresh
method sourceGame_Battler.prototype.cancelMotionRefresh()
Cancel motion refresh. (Same as the RPG Maker MZ method of this name.)
deselect
method sourceGame_Battler.prototype.deselect()
Deselect. (Same as the RPG Maker MZ method of this name.)
effectType
method sourceGame_Battler.prototype.effectType()
Effect type. (Same as the RPG Maker MZ method of this name.)
motionType
method sourceGame_Battler.prototype.motionType()
Motion type. (Same as the RPG Maker MZ method of this name.)
weaponImageId
method sourceGame_Battler.prototype.weaponImageId()
Weapon image id. (Same as the RPG Maker MZ method of this name.)
action
method sourceGame_Battler.prototype.action(index)
Action. (Same as the RPG Maker MZ method of this name.)
numActions
method sourceGame_Battler.prototype.numActions()
Num actions. (Same as the RPG Maker MZ method of this name.)
result
method sourceGame_Battler.prototype.result()
Result. (Same as the RPG Maker MZ method of this name.)
tpbChargeTime
method sourceGame_Battler.prototype.tpbChargeTime()
Tpb charge time. (Same as the RPG Maker MZ method of this name.)
tpbAcceleration
method sourceGame_Battler.prototype.tpbAcceleration()
Tpb acceleration. (Same as the RPG Maker MZ method of this name.)
tpbRelativeSpeed
method sourceGame_Battler.prototype.tpbRelativeSpeed()
Tpb relative speed. (Same as the RPG Maker MZ method of this name.)
tpbSpeed
method sourceGame_Battler.prototype.tpbSpeed()
Tpb speed. (Same as the RPG Maker MZ method of this name.)
tpbBaseSpeed
method sourceGame_Battler.prototype.tpbBaseSpeed()
Tpb base speed. (Same as the RPG Maker MZ method of this name.)
tpbRequiredCastTime
method sourceGame_Battler.prototype.tpbRequiredCastTime()
Tpb required cast time. (Same as the RPG Maker MZ method of this name.)
escape
method sourceGame_Battler.prototype.escape()
Escape. (Same as the RPG Maker MZ method of this name.)
speed
method sourceGame_Battler.prototype.speed()
Speed. (Same as the RPG Maker MZ method of this name.)
forceAction
method sourceGame_Battler.prototype.forceAction(skillId, targetIndex)
Force action. (Same as the RPG Maker MZ method of this name.)
consumeItem
method sourceGame_Battler.prototype.consumeItem(item)
Consume item. (Same as the RPG Maker MZ method of this name.)
chargeTpByDamage
method sourceGame_Battler.prototype.chargeTpByDamage(damageRate)
Charge tp by damage. (Same as the RPG Maker MZ method of this name.)
regenerateHp
method sourceGame_Battler.prototype.regenerateHp()
Regenerate hp. (Same as the RPG Maker MZ method of this name.)
regenerateMp
method sourceGame_Battler.prototype.regenerateMp()
Regenerate mp. (Same as the RPG Maker MZ method of this name.)
regenerateTp
method sourceGame_Battler.prototype.regenerateTp()
Regenerate tp. (Same as the RPG Maker MZ method of this name.)
regenerateAll
method sourceGame_Battler.prototype.regenerateAll()
Regenerate all. (Same as the RPG Maker MZ method of this name.)
actionConditionStateIds
method sourceGame_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 sourceGame_Battler.prototype.meetsTurnCondition(param1, param2)
Meets turn condition. (Same as the RPG Maker MZ method of this name.)
meetsHpCondition
method sourceGame_Battler.prototype.meetsHpCondition(param1, param2)
Meets hp condition. (Same as the RPG Maker MZ method of this name.)
meetsMpCondition
method sourceGame_Battler.prototype.meetsMpCondition(param1, param2)
Meets mp condition. (Same as the RPG Maker MZ method of this name.)
meetsTpCondition
method sourceGame_Battler.prototype.meetsTpCondition(param1, param2)
Meets tp condition. (Same as the RPG Maker MZ method of this name.)
meetsStateCondition
method sourceGame_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 sourceGame_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 sourceGame_Battler.prototype.actionTargetCandidates(action)
Action target candidates. (Same as the RPG Maker MZ method of this name.)
meetsPartyLevelCondition
method sourceGame_Battler.prototype.meetsPartyLevelCondition(param)
Meets party level condition. (Same as the RPG Maker MZ method of this name.)
meetsSwitchCondition
method sourceGame_Battler.prototype.meetsSwitchCondition(param)
Meets switch condition. (Same as the RPG Maker MZ method of this name.)