Class: Game_Actor

Game_Actor

new Game_Actor()

The game object class for an actor.
Properties:
NameTypeDescription
levelnumberThe actor's level

Extends

Methods

Get the action at the given index
NameTypeDescription
indexnumberThe index to get the action from
Returns:
TypeDescription
Game_ActionThe action

actionPlusSet()Arrayinherited

Get action plus traits set
Returns:
TypeDescription
ArrayTrait values for action plus

actor()Object

Get the actor data object
Returns:
TypeDescription
ObjectThe actor data object

actorId()number

Get the actor's id
Returns:
TypeDescription
numberThe actor's id

addBuff(paramId, turns)inherited

Add a buff to the battler by id
NameTypeDescription
paramIdnumberId of the param to buff
turnsnumberAmount of turns the buff lasts

addDebuff(paramId, turns)inherited

Add a debuff to the battler by id
NameTypeDescription
paramIdnumberId of the param to debuff
turnsnumberAmount of turns the debuff lasts

addNewState(stateId)inherited

Adds a new state to the battler by id
NameTypeDescription
stateIdnumberThe state id to add

addParam(paramId, value)inherited

Adds a bonus to a parameter by id
NameTypeDescription
paramIdnumberThe parameter id to add to
valuenumberThe amount to add

addState(stateId)inherited

Add a state to the battler by id
NameTypeDescription
stateIdnumberId of state to be added

addedSkillTypes()Arrayinherited

Get the added skill types
Returns:
TypeDescription
ArrayThe added skill types

addedSkills()Arrayinherited

Get the added skills
Returns:
TypeDescription
ArrayThe added skills

allIcons()Arrayinherited

Get state and buff icons
Returns:
TypeDescription
ArrayArray of state and buff icon indexes

allTraits()Arrayinherited

Get an array of all traits from all trait objects
Returns:
TypeDescription
ArrayArray of all traits

appear()inherited

Shows the battler

applyTpbPenalty()inherited

Applies a TPB penalty

armors()Array

Get the actor's armors
Returns:
TypeDescription
ArrayArray of equipped armors

attackAnimationId1()number

Get the attack animation id1
Returns:
TypeDescription
numberThe attack animation id1

attackAnimationId2()number

Get the attack animation id2
Returns:
TypeDescription
numberThe attack animation id2

attackElements()Arrayinheritedoverrides

Get the attack elements trait set
Returns:
TypeDescription
ArrayArray of attack element trait data ids

attackSkillId()numberinherited

Get the attack skill id
Returns:
TypeDescription
numberThe attack skill id

attackSpeed()numberinherited

Get the attack speed
Returns:
TypeDescription
numberThe attack speed

attackStates()Arrayinherited

Get the attack state trait set
Returns:
TypeDescription
ArrayArray of attack state trait data ids

attackStatesRate(stateId)numberinherited

Get the attack state rate for a given state id
NameTypeDescription
stateIdnumberThe state id
Returns:
TypeDescription
numberThe state rate

attackTimesAdd()numberinherited

Get the attack times
Returns:
TypeDescription
numberThe attack times

bareHandsAnimationId()number

Get the bare hand attack animation id
Returns:
TypeDescription
numberThe bare hand attack animation id

bareHandsElementId()number

Get the bare hand element id
Returns:
TypeDescription
numberThe bare hand element id

basicFloorDamage()number

Get basic damage for floor damage
Returns:
TypeDescription
numberAmount of basic damage for floor damage

battlerName()string

Get the actor's battler name (for their battler image)
Returns:
TypeDescription
stringThe actor's battler name

benchMembersExpRate()number

Rate modifier for exp gain for benched party members
Returns:
TypeDescription
numberThe exp gain rate modifier

bestEquipItem(slotId)Object

Get the best item for a given equip slot id
NameTypeDescription
slotIdnumberThe id of the equipment slot
Returns:
TypeDescription
ObjectThe best item to equip in the given slot

buff(paramId)numberinherited

Get a buff for a parameter by id
NameTypeDescription
paramIdnumberThe id of the parameter
Returns:
TypeDescription
numberThe buff that parameter has

buffIconIndex(buffLevel, paramId)numberinherited

Get a buff icon a specific buff
NameTypeDescription
buffLevelnumberThe buff level of the parameter
paramIdnumberThe id of the parameter
Returns:
TypeDescription
numberThe buff icon index

buffIcons()Arrayinherited

Get buff icons for buffs the battler has
Returns:
TypeDescription
ArrayArray of buff icon indexes

buffLength()numberinherited

Get the amount of possible params to buff
Returns:
TypeDescription
numberAmount of buffs possible

calcEquipItemPerformance(item)number

Calculate an item's performance
NameTypeDescription
itemObjectThe item to calculate performance for
Returns:
TypeDescription
numberThe performance rating of the item

canAttack()booleaninherited

Check if the battler can attack
Returns:
TypeDescription
booleanTrue if the battler can attack

canEquip(item)booleaninherited

Check if an item can be equipped
NameTypeDescription
itemObjectThe weapon/armor object
Returns:
TypeDescription
booleanTrue if the weapon/armor can be equipped

canEquipArmor(item)booleaninherited

Check if an armor can be equipped
NameTypeDescription
itemObjectThe armor object
Returns:
TypeDescription
booleanTrue if the armor can be equipped

canEquipWeapon(item)booleaninherited

Check if a weapon can be equipped
NameTypeDescription
itemObjectThe weapon object
Returns:
TypeDescription
booleanTrue if the weapon can be equipped

canGuard()booleaninherited

Check if the battler can guard
Returns:
TypeDescription
booleanTrue if the battler can guard

canInput()booleaninherited

Check if the battler can input
Returns:
TypeDescription
booleanTrue if can input

canMove()booleaninherited

Check if the battler can move
Returns:
TypeDescription
booleanTrue if can move

canPaySkillCost(skill)booleaninherited

Check if skill costs are payable
NameTypeDescription
skillObjectThe skill object
Returns:
TypeDescription
booleanTrue if costs can be paid

canUse(item)booleaninherited

Check if an item or skill can be used
NameTypeDescription
itemObjectThe item/skill object
Returns:
TypeDescription
booleanTrue if the item/skill can be used

cancelMotionRefresh()inherited

Cancels a motion refresh
Since:
  • Version 1.1.0

changeClass(classId, keepExp)

Changes the actor's class
NameTypeDescription
classIdnumberThe id of the class to change to
keepExpbooleanIf the actor's exp in their previous class transfers to the new class

changeEquip(slotId, item)

Changes the actor's equipment in the given slot to the given item
NameTypeDescription
slotIdnumberThe equipment slot id to change
itemObjectThe data object to equip

changeEquipById(etypeId, itemId)

Change equips by ids
NameTypeDescription
etypeIdnumberThe equipment type id
itemIdnumberThe id of the item to equip

changeExp(exp, show)

Change the actor's exp
NameTypeDescription
expnumberThe new exp amount
showbooleanIf level up messages show as a result of this operation

changeLevel(level, show)

Changes the actor's level
NameTypeDescription
levelnumberThe actor's new level
showbooleanIf level up messages display as a result of this operation

characterIndex()number

Get the actor's character index (on their character sheet)
Returns:
TypeDescription
numberThe actor's character index

characterName()string

Get the actor's character name (for their character sheet)
Returns:
TypeDescription
stringThe actor's character name

chargeTpByDamage(damageRate)inherited

Gains tp based on damage
NameTypeDescription
damageRatenumberThe damage rate to base tp gain off

checkFloorEffect()

Check if the player is on a floor effect

clearActions()inheritedoverrides

Clears the battler's actions

clearBuffs()inherited

Clear buffs

clearDamagePopup()inherited

Clears the damage popup

clearEffect()inherited

Clears an effect

clearEquipments()

Clears all equipment slots

clearMotion()inherited

Clears a motion

clearParamPlus()inherited

Clears param bonus effects

clearResult()inherited

Clears the result of an action

clearStates()inheritedoverrides

Clears states affecting the battler

clearTp()inherited

Clears tp

clearTpbChargeTime()inherited

Clears TPB charge time

clearWeaponAnimation()inherited

Clears the weapon animation

collapseType()numberinherited

Get collapse type
Returns:
TypeDescription
numberThe collapse type

confusionLevel()numberinherited

Determine the confusion level of the battler
Returns:
TypeDescription
numberConfusion level

consumeItem(item)inherited

Consumes the given item
NameTypeDescription
itemObjectThe item object to consume

currentAction()Game_Actioninherited

Get the current action
Returns:
TypeDescription
Game_ActionThe current action

currentClass()Object

Get the class data object for the actor's current class
Returns:
TypeDescription
ObjectThe class data object

currentExp()number

Get the actor's current exp
Returns:
TypeDescription
numberThe actor's current exp

currentLevelExp()number

Get the exp needed for the actor's current level
Returns:
TypeDescription
numberThe exp needed for the actor's current level

deathStateId()numberinherited

Get the state id for the death state
Returns:
TypeDescription
numberThe id of the death state

debuffRate(paramId)numberinherited

Get the debuff rate by id
NameTypeDescription
paramIdnumberThe id of the parameter
Returns:
TypeDescription
numberThe debuff rate

decreaseBuff(paramId)inherited

Decrease the buff for a parameter
NameTypeDescription
paramIdnumberThe id of the param to debuff

deselect()inherited

Marks the battler as not selected
Kills the battler

discardEquip(item)

Discards the item if it is equipped
NameTypeDescription
itemObjectThe item to discard

displayLevelUp(newSkills)

Displays a level up message
NameTypeDescription
newSkillsArraySkills the actor learned from leveling up

effectType()stringinherited

Get the effect type
Returns:
TypeDescription
stringThe effect type

elementRate(elementId)numberinherited

Get the element rate by id
NameTypeDescription
elementIdnumberThe id of the element
Returns:
TypeDescription
numberThe element rate

equipSlots()Array

Get the actor's equip slots
Returns:
TypeDescription
ArrayArray of equipment slots

equips()Array

Get the actor's equips
Returns:
TypeDescription
ArrayArray of equipped items

eraseBuff(paramId)inherited

Erase a buff by param id
NameTypeDescription
paramIdnumberThe id of the param to erase buffs for

eraseState(stateId)inheritedoverrides

Erases a state by id
NameTypeDescription
stateIdnumberThe id of the state to erase

escape()inherited

Processing when there is an escape

executeFloorDamage()

Executes a floor damage effect

expForLevel(level)number

Get the exp needed for a given level
NameTypeDescription
levelnumberThe level to calculate exp for
Returns:
TypeDescription
numberThe exp needed

faceIndex()number

Get the actor's face index (on their face sheet)
Returns:
TypeDescription
numberThe actor's face index

faceName()string

Get the actor's face name (for their face sheet)
Returns:
TypeDescription
stringThe actor's face name

finalExpRate()number

Rate at which exp is gained
Returns:
TypeDescription
numberThe rate of exp gain

findNewSkills(lastSkills)Array

Gets the actor's new skills after change
NameTypeDescription
lastSkillsArrayArray of the actor's previous skills
Returns:
TypeDescription
ArrayArray of skills the actor knows but were not found in the lastSkills parameter

finishTpbCharge()inherited

Finishes the TPB charge

forceAction(skillId, targetIndex)inherited

Force an action
NameTypeDescription
skillIdnumberThe skill id
targetIndexnumberThe target index

forceChangeEquip(slotId, item)

Forcibly changes the actor's equipment in the given slot to the given item
NameTypeDescription
slotIdnumberThe equipment slot id to change
itemObjectThe data object to equip

forgetSkill(skillId)

Causes the actor to forget a skill by id
NameTypeDescription
skillIdnumberThe id of the skill to forget

friendsUnit()Game_Party | Game_Troop

Get the friendly unit in battle. For Game_Actor, this is Game_Party
Returns:
TypeDescription
Game_Party|Game_TroopThe friendly unit in battle

gainExp(exp)

Gain exp
NameTypeDescription
expnumberAmount of exp to gain

gainHp(value)inherited

Gains an amount of hp
NameTypeDescription
valuenumberThe amount of hp to gain

gainMp(value)inherited

Gains an amount of mp
NameTypeDescription
valuenumberThe amount of mp to gain

gainSilentTp(value)inherited

Gains an amount of tp without adding it to the action result
NameTypeDescription
valuenumberThe amount of tp to gain

gainTp(value)inherited

Gains an amount of tp
NameTypeDescription
valuenumberThe amount of tp to gain

guardSkillId()numberinherited

Get the guard skill's id
Returns:
TypeDescription
numberThe guard skill's id

hasArmor(armor)boolean

Check if the actor has the given armor
NameTypeDescription
armorObjectThe armor data object
Returns:
TypeDescription
booleanTrue if the actor has the armor

hasNoWeapons()boolean

Check if the actor has no weapon
Returns:
TypeDescription
booleanTrue if the actor has no weapon

hasSkill(skillId)boolean

Check if the actor has already has a skill by id
NameTypeDescription
skillIdnumberThe id of the skill to check
Returns:
TypeDescription
booleanTrue if the actor already has the skill

hasWeapon(weapon)boolean

Check if the actor has the given weapon
NameTypeDescription
weaponObjectThe weapon data object
Returns:
TypeDescription
booleanTrue if the actor has the weapon
Hides the battler

hpRate()numberinherited

Get the battler's hp rate (hp / max hp)
Returns:
TypeDescription
numberThe hp rate

increaseBuff(paramId)inherited

Increase the buff for a parameter
NameTypeDescription
paramIdnumberThe id of the param to buff

index()number

Get the actor's index in the party
Returns:
TypeDescription
numberThe actor's index in the party

initEquips(equips)

Initialize the actor's equipment
NameTypeDescription
equipsArrayArray of equipment ids for each equip slot

initExp()

Initialize the actor's exp

initImages()

Initialize the actor's image data

initMembers()inheritedoverrides

Initialize class variables

initSkills()

Initialize the actor's skills

initTp()inherited

Initialize tp

initTpbChargeTime(advantageous)inherited

Initialize the TPB charge time
NameTypeDescription
advantageousbooleanIf charge time should be advantageous

initTpbTurn()inherited

Initialize TPB turn

initialize(actorId)overrides

Initialize the actor
NameTypeDescription
actorIdnumberThe actor's id

inputtingAction()Game_Action

Get inputting action
Returns:
TypeDescription
Game_ActionThe inputting action

isActing()booleaninherited

Check if the action state is acting
Returns:
TypeDescription
booleanTrue if acting

isActor()booleanoverrides

Check if this is an actor. When called from Game_Actor, this is always true
Returns:
TypeDescription
booleanTrue if this is an actor

isAlive()booleaninherited

Check if the battler is alive
Returns:
TypeDescription
booleanTrue if alive

isAppeared()booleaninherited

Check if the battler is appeared (not hidden)
Returns:
TypeDescription
booleanTrue if appeared

isAutoBattle()booleaninherited

Check if the battler has the auto battle special flag
Returns:
TypeDescription
booleanTrue if auto battle

isBattleMember()boolean

Check if this actor will participate in battle
Returns:
TypeDescription
booleanTrue if the actor will participate in battle

isBuffAffected(paramId)booleaninherited

Check if there is a buff for a parameter by id
NameTypeDescription
paramIdnumberThe id of the param to check
Returns:
TypeDescription
booleanTrue if that parameter has a buff

isBuffExpired(paramId)booleaninherited

Check if buff is expired by id
NameTypeDescription
paramIdnumberThe id of the param to check for expired buff
Returns:
TypeDescription
booleanTrue if the buff is expired

isBuffOrDebuffAffected(paramId)booleaninherited

Check if there is a buff or debuff for a parameter by id
NameTypeDescription
paramIdnumberThe id of the param to check
Returns:
TypeDescription
booleanTrue if that parameter has a buff or debuff

isChanting()booleaninherited

Check if the battler is chanting
Returns:
TypeDescription
booleanTrue if chanting

isClass(gameClass)boolean

Check if the actor's class matches the given class
NameTypeDescription
gameClassObjectThe class data object
Returns:
TypeDescription
booleanTrue if the given class is the actor's class

isConfused()booleaninherited

Check if the battler is confused
Returns:
TypeDescription
booleanTrue if confused

isDamagePopupRequested()booleaninherited

Check if a damage popup is requested
Returns:
TypeDescription
booleanTrue if a damage popup has been requested

isDead()booleaninherited

Check if the battler is dead
Returns:
TypeDescription
booleanTrue if dead

isDeathStateAffected()booleaninherited

Check if the battler is affected by the death state
Returns:
TypeDescription
booleanTrue if the battler is affected by the state

isDebuffAffected(paramId)booleaninherited

Check if there is a debuff for a parameter by id
NameTypeDescription
paramIdnumberThe id of the param to check
Returns:
TypeDescription
booleanTrue if that parameter has a debuff

isDualWield()booleaninherited

Check if the battler is dual wield type
Returns:
TypeDescription
booleanTrue if dual wield

isDying()booleaninherited

Check if the battler is low on hp
Returns:
TypeDescription
booleanTrue if low on hp

isEffectRequested()booleaninherited

Check if an effect is requested
Returns:
TypeDescription
booleanTrue if an effect has been requested

isEnemy()booleaninherited

Check if the battler is an enemy type
Returns:
TypeDescription
booleanTrue if enemy

isEquipAtypeOk(atypeId)booleaninherited

Check if an armor type is ok to equip
NameTypeDescription
atypeIdnumberThe armor type to check
Returns:
TypeDescription
booleanTrue if ok to equip

isEquipChangeOk(slotId)boolean

Check if the actor can change equips in the given slot
NameTypeDescription
slotIdnumberThe equipment slot id
Returns:
TypeDescription
booleanTrue if the actor can change the equip in the slot

isEquipTypeLocked(etypeId)booleaninherited

Check if an equip type is locked
NameTypeDescription
etypeIdnumberThe equip type to check
Returns:
TypeDescription
booleanTrue if locked

isEquipTypeSealed(etypeId)booleaninherited

Check if an equip type is sealed
NameTypeDescription
etypeIdnumberThe equip type to check
Returns:
TypeDescription
booleanTrue if sealed

isEquipWtypeOk(wtypeId)booleaninherited

Check if a weapon type is ok to equip
NameTypeDescription
wtypeIdnumberThe weapon type to check
Returns:
TypeDescription
booleanTrue if ok to equip

isEquipped(item)boolean

Check if the given item is equipped by the actor
NameTypeDescription
itemObjectThe item to check for
Returns:
TypeDescription
booleanTrue if the item is already equipped

isFormationChangeOk()boolean

Check if this actor can change formation. When called from Game_Actor, this is always true
Returns:
TypeDescription
booleanTrue if the actor can change formation

isGuard()booleaninherited

Check if the battler has the guard special flag
Returns:
TypeDescription
booleanTrue if guard

isGuardWaiting()booleaninherited

Check if the battler is guarding
Returns:
TypeDescription
booleanTrue if guarding

isHidden()booleaninherited

Check if the battler is hidden
Returns:
TypeDescription
booleanTrue if hidden

isInputting()booleaninherited

Check if the action state is inputting
Returns:
TypeDescription
booleanTrue if inputting

isLearnedSkill(skillId)boolean

Check if the actor has already learned a skill by id
NameTypeDescription
skillIdnumberThe id of the skill to check
Returns:
TypeDescription
booleanTrue if the skill is already learned

isMaxBuffAffected(paramId)booleaninherited

Check if the maximum buff is on the parameter
NameTypeDescription
paramIdnumberThe id of the param to check
Returns:
TypeDescription
booleanTrue if that parameter has a maximum buff

isMaxDebuffAffected(paramId)booleaninherited

Check if the maximum debuff is on the parameter
NameTypeDescription
paramIdnumberThe id of the param to check
Returns:
TypeDescription
booleanTrue if that parameter has a maximum debuff

isMaxLevel()boolean

Check if the actor is max level
Returns:
TypeDescription
booleanTrue if max level

isMotionRefreshRequested()booleaninherited

Check if a motion refresh is requested
Returns:
TypeDescription
booleanTrue if a motion refresh has been requested

isMotionRequested()booleaninherited

Check if a motion is requested
Returns:
TypeDescription
booleanTrue if a motion has been requested

isOccasionOk(item)booleaninherited

Check if an item's occasion is met
NameTypeDescription
itemObjectThe item object
Returns:
TypeDescription
booleanTrue if the occasion is met

isPreserveTp()booleaninherited

Check if the battler has the preserve tp special flag
Returns:
TypeDescription
booleanTrue if preserve tp

isRestricted()booleaninherited

Check if the battler is restricted
Returns:
TypeDescription
booleanTrue if restricted

isSelected()booleaninherited

Check if this is selected
Returns:
TypeDescription
booleanTrue if selected

isSkillSealed(skillId)booleaninherited

Check if a skill is sealed
NameTypeDescription
skillIdnumberThe skill to check
Returns:
TypeDescription
booleanTrue if sealed

isSkillTypeSealed(stypeId)booleaninherited

Check if a skill type is sealed
NameTypeDescription
stypeIdnumberThe skill type to check
Returns:
TypeDescription
booleanTrue if sealed

isSkillWtypeOk(skill)booleanoverrides

Check if actor has required weapon types for the given skill
NameTypeDescription
skillObjectThe skill object
Returns:
TypeDescription
booleanTrue if the actor has the required weapon types equipped

isSpriteVisible()boolean

Check if the battler sprite should be visible (for side view battles)
Returns:
TypeDescription
booleanTrue if the battler sprite should be visible

isStateAddable(stateId)booleaninherited

Check if the state with the given id can be added to the battler
NameTypeDescription
stateIdnumberId of state to check
Returns:
TypeDescription
booleanTrue if the state can be added

isStateAffected(stateId)booleaninherited

Check if the battler is affected by a state by id
NameTypeDescription
stateIdnumberThe id of the state to check
Returns:
TypeDescription
booleanTrue if the battler is affected by the state

isStateExpired(stateId)booleaninherited

Check if a state is expired
NameTypeDescription
stateIdnumberThe id of the state to check
Returns:
TypeDescription
booleanTrue if the state is expired

isStateResist(stateId)booleaninherited

Check if a state is resisted
NameTypeDescription
stateIdnumberThe id of the state to check
Returns:
TypeDescription
booleanTrue if resisted

isStateRestrict(stateId)booleaninherited

Check if the state with the given id is restricted
NameTypeDescription
stateIdnumberId of state to check
Returns:
TypeDescription
booleanTrue if the state is restricted

isSubstitute()booleaninherited

Check if the battler has the substitute special flag
Returns:
TypeDescription
booleanTrue if substitute

isTpbCharged()booleaninherited

Check if TPB is in the charged state
Returns:
TypeDescription
booleanTrue if charged

isTpbReady()booleaninherited

Check if TPB is in the ready state
Returns:
TypeDescription
booleanTrue if ready

isTpbTimeout()booleaninherited

Check if TPB is timed out
Returns:
TypeDescription
booleanTrue if timed out

isTpbTurnEnd()booleaninherited

Check for turn end in TPB
Returns:
TypeDescription
booleanTrue if turn ended

isUndecided()booleaninherited

Check if the action state is undecided
Returns:
TypeDescription
booleanTrue if undecided

isWaiting()booleaninherited

Check if the action state is waiting
Returns:
TypeDescription
booleanTrue if waiting

isWeaponAnimationRequested()booleaninherited

Check if a weapon animation is requested
Returns:
TypeDescription
booleanTrue if a weapon animation has been requested

isWtypeEquipped(wtypeId)boolean

Check if actor has a weapon of the given type equipped
NameTypeDescription
wtypeIdnumberThe weapon type id to check for
Returns:
TypeDescription
booleanTrue if the actor has a weapon of the given type equipped

lastBattleSkill()Object

Get the last skill from battle
Returns:
TypeDescription
ObjectLast skill object

lastCommandSymbol()string

Get the last command symbol
Returns:
TypeDescription
stringThe last command symbol

lastMenuSkill()Object

Get the last skill from menu
Returns:
TypeDescription
ObjectLast skill object

lastSkill()Object

Get the last skill
Returns:
TypeDescription
ObjectLast skill object

learnSkill(skillId)

Causes the actor to learn a skill by id
NameTypeDescription
skillIdnumberThe id of the skill to learn

levelDown()

Handles when the actor levels down

levelUp()

Handles when the actor levels up

makeActionList()Array

Make the action list
Returns:
TypeDescription
ArrayA list of actions

makeActionTimes()numberinherited

Make the action times
Returns:
TypeDescription
numberThe action times

makeActions()inheritedoverrides

Make the battler's actions

makeAutoBattleActions()

Make the auto battle action

makeConfusionActions()

Make actions when confused

makeSpeed()inherited

Make the battler's speed

makeTpbActions()inherited

Makes the TPB actions

maxFloorDamage()number

Get maximum amount of floor damage to inflict
Returns:
TypeDescription
numberMaximum amount of floor damage the player can take

maxLevel()number

Get the actor's max level
Returns:
TypeDescription
numberThe actor's max level

maxSlipDamage()numberinherited

Get the maximum amount for slip damage
Returns:
TypeDescription
numberMaximum slip damage amount

maxTp()numberinherited

Get the max tp the battler can have
Returns:
TypeDescription
numberMaximum tp value

meetsItemConditions(item)booleaninherited

Check if an item's conditions are met
NameTypeDescription
itemObjectThe item object
Returns:
TypeDescription
booleanTrue if the conditions are met

meetsSkillConditions(skill)booleaninherited

Check if a skill's conditions are met
NameTypeDescription
skillObjectThe skill object
Returns:
TypeDescription
booleanTrue if the conditions are met

meetsUsableItemConditions(item)booleaninheritedoverrides

Check if an item's usable conditions are met
NameTypeDescription
itemObjectThe item object
Returns:
TypeDescription
booleanTrue if the conditions are met

mostImportantStateText()stringinherited

Get the most important state's text (persists message)
Returns:
TypeDescription
stringThe most important state's persist message

motionType()stringinherited

Get the motion type
Returns:
TypeDescription
stringThe motion type

mpRate()numberinherited

Get the battler's mp rate (mp / max mp)
Returns:
TypeDescription
numberThe mp rate

name()string

Get the actor's name
Returns:
TypeDescription
stringThe actor's name

nextLevelExp()number

Get the exp needed for the actor's next level
Returns:
TypeDescription
numberThe exp needed for the actor's next level

nextRequiredExp()number

Get the exp needed to level up from the actor's current exp
Returns:
TypeDescription
numberThe exp needed to level up

nickname()string

Get the actor's nickname
Returns:
TypeDescription
stringThe actor's nickname

numActions()numberinherited

Get the amount of actions the battler has
Returns:
TypeDescription
numberAmount of actions

onAllActionsEnd()inherited

Processing when all actions are over

onBattleEnd()inherited

Processing when a battle ends

onBattleStart(advantageous)inherited

Processing when a battle starts
NameTypeDescription
advantageousbooleanIf the battle is advantageous

onDamage(value)inherited

Processing when damage occurs
NameTypeDescription
valuenumberAmount of damage taken

onEscapeFailure()

Handling when an escape fails

onPlayerWalk()

Processing when the player walks on the map

onRestrict()inherited

Processing when a restriction is added

onTpbCharged()inherited

Processing when TPB is charged

onTpbTimeout()inherited

Processing for when TPB is timed out

onTurnEnd()inherited

Processing when a turn ends

opponentsUnit()Game_Party | Game_Troop

Get the enemy unit in battle. For Game_Actor, this is Game_Troop
Returns:
TypeDescription
Game_Party|Game_TroopThe enemy unit in battle

optimizeEquipments()

Optimizes equipment

overwriteBuffTurns(paramId, turns)inherited

Overwrite a buff's turns remaining
NameTypeDescription
paramIdnumberThe id of the param to overwrite buff turns for
turnsnumberThe new amount of turns the buff will last for

param(paramId)numberinherited

Get the final parameter value id
NameTypeDescription
paramIdnumberThe id of the parameter
Returns:
TypeDescription
numberThe parameter value

paramBase(paramId)numberoverrides

Get a base param value
NameTypeDescription
paramIdnumberThe id of the param to get
Returns:
TypeDescription
numberThe base param value

paramBasePlus(paramId)numberinherited

Get the parameter base + plus by id
NameTypeDescription
paramIdnumberThe id of the parameter
Returns:
TypeDescription
numberThe parameter base added to parameter plus

paramBuffRate(paramId)numberinherited

Get the parameter buff rate by id
NameTypeDescription
paramIdnumberThe id of the parameter
Returns:
TypeDescription
numberThe parameter buff rate

paramMax()numberinherited

Get the maximum a parameter can be
Returns:
TypeDescription
numberThe maximum valid value for this parameter

paramMin(paramId)numberinherited

Get the minimum a parameter can be
NameTypeDescription
paramIdnumberThe id of the parameter
Returns:
TypeDescription
numberThe minimum valid value for this parameter

paramPlus(paramId)numberinheritedoverrides

Get the parameter bonus by id
NameTypeDescription
paramIdnumberThe id of the parameter
Returns:
TypeDescription
numberThe parameter bonus

paramRate(paramId)numberinherited

Get the parameter rate by id
NameTypeDescription
paramIdnumberThe id of the parameter
Returns:
TypeDescription
numberThe parameter rate

partyAbility(abilityId)booleaninherited

Check if there are traits with a party ability id
NameTypeDescription
abilityIdnumberThe ability id to check
Returns:
TypeDescription
booleanTrue if traits exist for the ability id

paySkillCost(skill)inherited

Pay the skill costs
NameTypeDescription
skillObjectThe skill object

performAction()inheritedoverrides

Perform an action. When called from Game_Battler, this does nothing.

performActionEnd()inheritedoverrides

Perform an action end. When called from Game_Battler, this does nothing.

performActionStart(action)inheritedoverrides

Start an action
NameTypeDescription
actionGame_ActionThe action to start

performAttack()

Performs an attack

performCollapse()inheritedoverrides

Perform a collapse. When called from Game_Battler, this does nothing.

performCounter()inheritedoverrides

Perform a counter

performDamage()inheritedoverrides

Perform a damage. When called from Game_Battler, this does nothing.

performEscape()

Perform an escape

performEvasion()inheritedoverrides

Perform an evasion

performMagicEvasion()inheritedoverrides

Perform a magic evasion

performMapDamage()

Perform damage on map

performMiss()inherited

Perform a miss

performRecovery()inherited

Perform a recovery

performReflection()inherited

Perform a reflection

performSubstitute()inherited

Perform a substitute. When called from Game_Battler, this does nothing.

performVictory()

Perform a victory

profile()string

Get the actor's profile
Returns:
TypeDescription
stringThe actor's profile

recoverAll()inherited

Recover all for the battler
Refresh the battler

regenerateAll()inherited

Regenerates everything (hp/mp/tp)

regenerateHp()inherited

Regenerates hp

regenerateMp()inherited

Regenerates mp

regenerateTp()inherited

Regenerates tp

releaseUnequippableItems(forcing)

Unequips items that are not equippable
NameTypeDescription
forcingbooleanIf uneqippping items forcibly

removeAllBuffs()inherited

Remove all buffs

removeBattleStates()inherited

Remove states that end after battle

removeBuff(paramId)inherited

Remove a buff to the battler by id
NameTypeDescription
paramIdnumberId of the param to remove buffs for

removeBuffsAuto()inherited

Remove buffs when they expire

removeCurrentAction()inherited

Removes the current action

removeState(stateId)inherited

Remove a state to the battler by id
NameTypeDescription
stateIdnumberId of state to be removed

removeStatesAuto(timing)inherited

Remove states set to auto remove
NameTypeDescription
timingnumberThe timing to check against for auto removal

removeStatesByDamage()inherited

Remove states that are removed by damage

requestEffect(effectType)inherited

Requests an effect
NameTypeDescription
effectTypestringThe type of effect to request

requestMotion(motionType)inherited

Requests a motion
NameTypeDescription
motionTypestringThe type of motion to request

requestMotionRefresh()inherited

Requests a motion refresh

resetStateCounts(stateId)inheritedoverrides

Resets a state's turn counter by id
NameTypeDescription
stateIdnumberThe id of the state to reset

restriction()numberinherited

Get the highest restriction on the battler
Returns:
TypeDescription
numberThe greatest restriction on the battler
Get the result of an action
Returns:
TypeDescription
Game_ActionResultThe action result

revive()inherited

Revives the battler

select()inherited

Marks the battler as selected

selectNextCommand()boolean

Selects the next command
Returns:
TypeDescription
booleanTrue if selected

selectPreviousCommand()boolean

Selects the previous command
Returns:
TypeDescription
booleanTrue if selected

setAction(index, action)inherited

Set an action at the given index
NameTypeDescription
indexnumberThe index to set the action of
actionGame_ActionThe action to set

setActionState(actionState)inherited

Set the action state
NameTypeDescription
actionStatestringThe new action state

setBattlerImage(battlerName)

Changes the actor's battler image
NameTypeDescription
battlerNamestringName of the battler image

setCharacterImage(characterName, characterIndex)

Changes the actor's character image
NameTypeDescription
characterNamestringName of the character sheet
characterIndexnumberIndex on the character sheet

setFaceImage(faceName, faceIndex)

Changes the actor's face image
NameTypeDescription
faceNamestringName of the face sheet
faceIndexnumberIndex on the face sheet

setHp(hp)inherited

Sets the battler's hp to the given value
NameTypeDescription
hpnumberThe new hp value

setLastBattleSkill(skill)

Set the last skill from battle
NameTypeDescription
skillObjectThe skill object

setLastCommandSymbol(symbol)

Set the last command symbol
NameTypeDescription
symbolstringThe command symbol

setLastMenuSkill(skill)

Set the last skill from menu
NameTypeDescription
skillObjectThe skill object

setLastTarget(target)inherited

Set the last target
NameTypeDescription
targetGame_Enemy|Game_ActorThe last target

setMp(mp)inherited

Sets the battler's mp to the given value
NameTypeDescription
mpnumberThe new mp value

setName(name)

Set the actor's name
NameTypeDescription
namestringThe actor's new name

setNickname(nickname)

Set the actor's nickname
NameTypeDescription
nicknamestringThe actor's new nickname

setProfile(profile)

Set the actor's profile
NameTypeDescription
profilestringThe actor's new profile

setTp(tp)inherited

Sets the battler's tp to the given value
NameTypeDescription
tpnumberThe new tp value

setup(actorId)

Set up the actor
NameTypeDescription
actorIdnumberThe actor's id

shouldDelayTpbCharge()booleaninherited

Check if charging should be delayed
Returns:
TypeDescription
booleanTrue if delay is needed

shouldDisplayLevelUp()boolean

Check if level up messages should display. For Game_Actor, this always returns true
Returns:
TypeDescription
booleanTrue if level up messages should display

shouldPopupDamage()booleaninherited

Check if a damage popup should appear
Returns:
TypeDescription
booleanTrue if should popup damage

showAddedStates()

Displays a message when state is added

showRemovedStates()

Displays a message when state is removed

skillMpCost(skill)numberinherited

Get the skill mp cost
NameTypeDescription
skillObjectThe skill object
Returns:
TypeDescription
numberSkill mp cost

skillTpCost(skill)numberinherited

Get the skill tp cost
NameTypeDescription
skillObjectThe skill object
Returns:
TypeDescription
numberSkill tp cost

skillTypes()Array

Get the actor's skill types
Returns:
TypeDescription
ArrayThe actor's skill types

skills()Array

Get the actor's skills
Returns:
TypeDescription
ArrayThe actor's skills

slotType()numberinherited

Get the slot type
Returns:
TypeDescription
numberThe slot type

sortStates()inherited

Sort the states affecting the battler by their priority

sparam(sparamId)numberinherited

Get the s-parameter value by id
NameTypeDescription
sparamIdnumberThe id of the parameter
Returns:
TypeDescription
numberThe parameter value

specialFlag(flagId)booleaninherited

Check if there are traits with a special flag id
NameTypeDescription
flagIdnumberThe flag id to check
Returns:
TypeDescription
booleanTrue if traits exist for the flag id

speed()numberinherited

Get the battler's speed
Returns:
TypeDescription
numberThe battler's speed

startDamagePopup()inherited

Starts the damage popup

startTpbAction()inherited

Starts a TPB action

startTpbCasting()inherited

Starts TPB casting

startTpbTurn()inherited

Starts TPB turn

startWeaponAnimation(weaponImageId)inherited

Starts a weapon animation of type id
NameTypeDescription
weaponImageIdnumberThe weapon image id

stateIcons()Arrayinherited

Get state icons for states affecting the battler
Returns:
TypeDescription
ArrayArray of state icon indexes

stateMotionIndex()numberinherited

Get the state motion index
Returns:
TypeDescription
numberThe state motion index

stateOverlayIndex()numberinherited

Get the state overlay index
Returns:
TypeDescription
numberThe state overlay index

stateRate(stateId)numberinherited

Get the state rate by id
NameTypeDescription
stateIdnumberThe id of the state
Returns:
TypeDescription
numberThe state rate

stateResistSet()Arrayinherited

Get the state resist trait set
Returns:
TypeDescription
ArrayArray of state resist trait data ids

states()Arrayinherited

Get states affecting the battler
Returns:
TypeDescription
ArrayArray of state data objects

stepsForTurn()number

Get the steps per turn
Returns:
TypeDescription
numberSteps per turn

testEscape(item)boolean

Check if the given item has an escape effect
NameTypeDescription
itemObjectThe item object to test
Returns:
TypeDescription
booleanTrue if escape special effect detected

tpRate()numberinherited

Get the battler's tp rate (tp / max tp)
Returns:
TypeDescription
numberThe tp rate

tpbAcceleration()numberinherited

Get the acceleration of the TPB
Returns:
TypeDescription
numberTPB acceleration

tpbBaseSpeed()numberinherited

Get the base speed of the TPB
Returns:
TypeDescription
numberTPB base speed

tpbChargeTime()numberinherited

Get the TPB charge time
Returns:
TypeDescription
numberThe TPB charge time

tpbRelativeSpeed()numberinherited

Get the relative speed of the TPB
Returns:
TypeDescription
numberTPB relative speed

tpbRequiredCastTime()numberinherited

Get the cast time of the TPB
Returns:
TypeDescription
numberTPB cast time

tpbSpeed()numberinherited

Get the speed of the TPB
Returns:
TypeDescription
numberTPB speed

tradeItemWithParty(newItem, oldItem)boolean

Trades an item the actor has with the party inventory
NameTypeDescription
newItemObjectThe item to trade to the actor
oldItemObjectThe item to trade to the party inventory
Returns:
TypeDescription
booleanTrue if the trade succeeds

traitObjects()Arrayinheritedoverrides

Get an array of all objects that have traits
Returns:
TypeDescription
ArrayArray of all objects that have traits

traits(code)Arrayinherited

Get an array of all traits from all trait objects that match the given code
NameTypeDescription
codenumberThe trait code to check for
Returns:
TypeDescription
ArrayArray of traits with given code

traitsPi(code, id)numberinherited

Get multiplicative value of all traits with given code and id
NameTypeDescription
codenumberThe trait code
idnumberThe trait data id
Returns:
TypeDescription
numberValue of the traits

traitsSet(code)Arrayinherited

Get array all trait data ids with given code
NameTypeDescription
codenumberThe trait code
Returns:
TypeDescription
ArrayTrait data ids

traitsSum(code, id)numberinherited

Get additive value of all traits with given code and id
NameTypeDescription
codenumberThe trait code
idnumberThe trait data id
Returns:
TypeDescription
numberValue of the traits

traitsSumAll(code)numberinherited

Get additive value of all traits with given code
NameTypeDescription
codenumberThe trait code
Returns:
TypeDescription
numberValue of the traits

traitsWithId(code, id)Arrayinherited

Get an array of all traits from all trait objects that match the given code and id
NameTypeDescription
codenumberThe trait code to check for
idnumberThe trait data id to check for
Returns:
TypeDescription
ArrayArray of traits with given code

turnCount()numberinherited

Get the turn count
Returns:
TypeDescription
numberTurn count

turnEndOnMap()

Handle a turn end on map scene

updateBuffTurns()inherited

Update buff turn counts

updateStateSteps(state)

Update states that can end by walking
NameTypeDescription
stateObjectThe state object to update

updateStateTurns()inherited

Update state turns

updateTpb()inherited

Update for TPB

updateTpbAutoBattle()inherited

Update TPB auto battle

updateTpbCastTime()inherited

Update TPB cast time

updateTpbChargeTime()inherited

Update TPB charge time

updateTpbIdleTime()inherited

Update TPB idle time

usableSkills()Array

Get the actor's usable skills
Returns:
TypeDescription
ArrayThe actor's usable skills

useItem(item)inherited

Use the given item
NameTypeDescription
itemObjectThe item/skill object to use

weaponImageId()numberinherited

Get the weapon image id
Returns:
TypeDescription
numberThe weapon image id

weapons()Array

Get the actor's weapons
Returns:
TypeDescription
ArrayArray of equipped weapons

xparam(xparamId)numberinherited

Get the x-parameter value by id
NameTypeDescription
xparamIdnumberThe id of the parameter
Returns:
TypeDescription
numberThe parameter value