Class: Game_Enemy

Game_Enemy

new Game_Enemy()

The game object class for an enemy.

Extends

Methods

Get the action at the given index
NameTypeDescription
indexnumberThe index to get the action from
Returns:
TypeDescription
Game_ActionThe action
Get action plus traits set
Returns:
TypeDescription
ArrayTrait values for action plus

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
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
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
Get the added skills
Returns:
TypeDescription
ArrayThe added skills
Get state and buff icons
Returns:
TypeDescription
ArrayArray of state and buff icon indexes
Get an array of all traits from all trait objects
Returns:
TypeDescription
ArrayArray of all traits
Shows the battler
Applies a TPB penalty
Get the attack elements trait set
Returns:
TypeDescription
ArrayArray of attack element trait data ids
Get the attack skill id
Returns:
TypeDescription
numberThe attack skill id
Get the attack speed
Returns:
TypeDescription
numberThe attack speed
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

battlerHue()number

Get the enemy's battler hue
Returns:
TypeDescription
numberThe enemy's battler hue

battlerName()string

Get the enemy's battler name
Returns:
TypeDescription
stringThe enemy's battler name
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
Get buff icons for buffs the battler has
Returns:
TypeDescription
ArrayArray of buff icon indexes
Get the amount of possible params to buff
Returns:
TypeDescription
numberAmount of buffs possible
Check if the battler can attack
Returns:
TypeDescription
booleanTrue if the battler can attack
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
Check if the battler can guard
Returns:
TypeDescription
booleanTrue if the battler can guard
Check if the battler can input
Returns:
TypeDescription
booleanTrue if can input
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
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

chargeTpByDamage(damageRate)inherited

Gains tp based on damage
NameTypeDescription
damageRatenumberThe damage rate to base tp gain off
Clears the battler's actions
Clear buffs

clearDamagePopup()inherited

Clears the damage popup
Clears an effect
Clears a motion
Clears param bonus effects
Clears the result of an action
Clears states affecting the battler
Clears tp

clearTpbChargeTime()inherited

Clears TPB charge time

clearWeaponAnimation()inherited

Clears the weapon animation
Get collapse type
Returns:
TypeDescription
numberThe collapse type

confusionLevel()numberinherited

Determine the confusion level of the battler
Returns:
TypeDescription
numberConfusion level
Consumes the given item
NameTypeDescription
itemObjectThe item object to consume
Get the current action
Returns:
TypeDescription
Game_ActionThe current action
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
Decrease the buff for a parameter
NameTypeDescription
paramIdnumberThe id of the param to debuff
Marks the battler as not selected
Kills the battler

dropItemRate()number

Get the rate for item drops
Returns:
TypeDescription
numberThe drop item rate
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

enemy()Object

Get the enemy's data object
Returns:
TypeDescription
ObjectThe enemy's data object

enemyId()number

Get the enemy's id
Returns:
TypeDescription
numberThe enemy's id
Erase a buff by param id
NameTypeDescription
paramIdnumberThe id of the param to erase buffs for
Erases a state by id
NameTypeDescription
stateIdnumberThe id of the state to erase
Processing when there is an escape
Get the enemy's exp
Returns:
TypeDescription
numberThe enemy's exp
Finishes the TPB charge

forceAction(skillId, targetIndex)inherited

Force an action
NameTypeDescription
skillIdnumberThe skill id
targetIndexnumberThe target index
Get the friendly unit in battle. For Game_Enemy, this is Game_Troop
Returns:
TypeDescription
Game_Party|Game_TroopThe friendly unit in battle
Gains an amount of hp
NameTypeDescription
valuenumberThe amount of hp to gain
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
Gains an amount of tp
NameTypeDescription
valuenumberThe amount of tp to gain

gold()number

Get the enemy's gold
Returns:
TypeDescription
numberThe enemy's gold
Get the guard skill's id
Returns:
TypeDescription
numberThe guard skill's id
Hides the battler
Get the battler's hp rate (hp / max hp)
Returns:
TypeDescription
numberThe hp rate
Increase the buff for a parameter
NameTypeDescription
paramIdnumberThe id of the param to buff

index()number

Get the enemy's index in battle
Returns:
TypeDescription
numberThe enemy's index in battle
Initialize class variables
Initialize tp

initTpbChargeTime(advantageous)inherited

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

initialize(enemyId, x, y)overrides

Initialize the enemy
NameTypeDescription
enemyIdnumberThe enemy's id
xnumberThe enemy's screen x coordinate
ynumberThe enemy's screen y coordinate
Check if the action state is acting
Returns:
TypeDescription
booleanTrue if acting

isActionValid(action)boolean

Check if an action is valid
NameTypeDescription
actionObjectThe action object to check
Returns:
TypeDescription
booleanTrue if the action is valid
Check if the battler is an actor type
Returns:
TypeDescription
booleanTrue if actor
Check if the battler is alive
Returns:
TypeDescription
booleanTrue if alive
Check if the battler is appeared (not hidden)
Returns:
TypeDescription
booleanTrue if appeared
Check if the battler has the auto battle special flag
Returns:
TypeDescription
booleanTrue if auto battle

isBattleMember()boolean

Check if this is a battle member
Returns:
TypeDescription
booleanTrue if this is a battle member

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
Check if the battler is chanting
Returns:
TypeDescription
booleanTrue if chanting
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
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
Check if the battler is dual wield type
Returns:
TypeDescription
booleanTrue if dual wield
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
Check if this is an enemy. When called from Game_Enemy, this is always true
Returns:
TypeDescription
booleanTrue if this is an 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

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
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
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

isLetterEmpty()boolean

Check if the enemy's letter is empty
Returns:
TypeDescription
booleanTrue if the enemy's letter is empty

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

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
Check if the battler has the preserve tp special flag
Returns:
TypeDescription
booleanTrue if preserve tp
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()booleaninherited

Check if skill Wtype is ok
Returns:
TypeDescription
booleanTrue if skill wtype is ok

isSpriteVisible()boolean

Check if the battler sprite should be visible. For Game_Enemy, this always returns true
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
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
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

itemObject(kind, dataId)Object | null

Get the item object from a kind id and the data id
NameTypeDescription
kindnumberThe kind of item to get, 1 = item, 2 = weapon, 3 = armor
dataIdnumberThe item's id to get
Returns:
TypeDescription
Object|nullThe item object, or null if invalid kind id

makeActionTimes()numberinherited

Make the action times
Returns:
TypeDescription
numberThe action times
Make the battler's actions

makeDropItems()Array

Make a list of drop items the enemy actually dropped
Returns:
TypeDescription
ArrayArray of drop items
Make the battler's speed
Makes the TPB actions

maxSlipDamage()numberinherited

Get the maximum amount for slip damage
Returns:
TypeDescription
numberMaximum slip damage amount
Get the max tp the battler can have
Returns:
TypeDescription
numberMaximum tp value

meetsCondition(action)boolean

Check if an action's condition is met
NameTypeDescription
actionObjectThe action object to check
Returns:
TypeDescription
booleanTrue if the condition is met

meetsHpCondition(param1, param2)boolean

Check if an action's hp condition is met
NameTypeDescription
param1numberThe first hp condition param
param2numberThe second hp condition param
Returns:
TypeDescription
booleanTrue if the condition is met

meetsItemConditions(item)booleaninherited

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

meetsMpCondition(param1, param2)boolean

Check if an action's mp condition is met
NameTypeDescription
param1numberThe first mp condition param
param2numberThe second mp condition param
Returns:
TypeDescription
booleanTrue if the condition is met

meetsPartyLevelCondition(param)boolean

Check if an action's party level condition is met
NameTypeDescription
paramnumberThe party level to check for
Returns:
TypeDescription
booleanTrue if the condition is met

meetsSkillConditions(skill)booleaninherited

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

meetsStateCondition(param)boolean

Check if an action's state condition is met
NameTypeDescription
paramnumberThe state to check for
Returns:
TypeDescription
booleanTrue if the condition is met

meetsSwitchCondition(param)boolean

Check if an action's switch condition is met
NameTypeDescription
paramnumberThe switch id to check
Returns:
TypeDescription
booleanTrue if the condition is met

meetsTurnCondition(param1, param2)boolean

Check if an action's turn condition is met
NameTypeDescription
param1numberThe first turn condition param
param2numberThe second turn condition param
Returns:
TypeDescription
booleanTrue if the condition is met

meetsUsableItemConditions(item)booleaninherited

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
Get the motion type
Returns:
TypeDescription
stringThe motion type
Get the battler's mp rate (mp / max mp)
Returns:
TypeDescription
numberThe mp rate

name()string

Get the enemy's name
Returns:
TypeDescription
stringThe enemy's name
Get the amount of actions the battler has
Returns:
TypeDescription
numberAmount of actions
Processing when all actions are over
Processing when a battle ends

onBattleStart(advantageous)inherited

Processing when a battle starts
NameTypeDescription
advantageousbooleanIf the battle is advantageous
Processing when damage occurs
NameTypeDescription
valuenumberAmount of damage taken
Processing when a restriction is added
Processing when TPB is charged
Processing for when TPB is timed out
Processing when a turn ends
Get the enemy unit in battle. For Game_Enemy, this is Game_Party
Returns:
TypeDescription
Game_Party|Game_TroopThe enemy unit in battle

originalName()string

Get the enemy's original name
Returns:
TypeDescription
stringThe enemy's original name

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
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
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)numberinherited

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
Pay the skill costs
NameTypeDescription
skillObjectThe skill object
Perform an action. When called from Game_Battler, this does nothing.
Perform an action end. When called from Game_Battler, this does nothing.

performActionStart(action)inheritedoverrides

Start an action
NameTypeDescription
actionGame_ActionThe action to start
Perform a collapse. When called from Game_Battler, this does nothing.
Perform a counter
Perform a damage. When called from Game_Battler, this does nothing.
Perform an evasion

performMagicEvasion()inherited

Perform a magic evasion
Perform a miss
Perform a recovery
Perform a reflection
Perform a substitute. When called from Game_Battler, this does nothing.
Recover all for the battler
Refresh the battler
Regenerates everything (hp/mp/tp)
Regenerates hp
Regenerates mp
Regenerates tp
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
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)inherited

Resets a state's turn counter by id
NameTypeDescription
stateIdnumberThe id of the state to reset
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
Revives the battler

screenX()number

Get the enemy's screen x coordinate
Returns:
TypeDescription
numberThe enemy's screen x coordinate

screenY()number

Get the enemy's screen y coordinate
Returns:
TypeDescription
numberThe enemy's screen y coordinate
Marks the battler as selected

selectAction(actionList, ratingZero)Object | null

Select an action
NameTypeDescription
actionListArrayList of possible action objects
ratingZeronumberThe minimum rating of the action
Returns:
TypeDescription
Object|nullThe action object, or null if none selected

selectAllActions(actionList)

Select all actions
NameTypeDescription
actionListArrayList of possible action objects

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
Sets the battler's hp to the given value
NameTypeDescription
hpnumberThe new hp value

setLastTarget(target)inherited

Set the last target
NameTypeDescription
targetGame_Enemy|Game_ActorThe last target

setLetter(letter)

Set the enemy's letter
NameTypeDescription
letterstringThe enemy's new letter
Sets the battler's mp to the given value
NameTypeDescription
mpnumberThe new mp value

setPlural(plural)

Set the enemy's plural status (if there are multiple of the enemy)
NameTypeDescription
pluralbooleanThe enemy's new plural status
Sets the battler's tp to the given value
NameTypeDescription
tpnumberThe new tp value

setup(enemyId, x, y)

Setup the enemy
NameTypeDescription
enemyIdnumberThe enemy's id
xnumberThe enemy's screen x coordinate
ynumberThe enemy's screen y coordinate

shouldDelayTpbCharge()booleaninherited

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

shouldPopupDamage()booleaninherited

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

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
Get the slot type
Returns:
TypeDescription
numberThe slot type
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
Get the battler's speed
Returns:
TypeDescription
numberThe battler's speed
Starts the damage popup
Starts a TPB action
Starts TPB casting
Starts TPB turn

startWeaponAnimation(weaponImageId)inherited

Starts a weapon animation of type id
NameTypeDescription
weaponImageIdnumberThe weapon image id
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
Get the state resist trait set
Returns:
TypeDescription
ArrayArray of state resist trait data ids
Get states affecting the battler
Returns:
TypeDescription
ArrayArray of state data objects
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
Get the speed of the TPB
Returns:
TypeDescription
numberTPB speed
Get an array of all objects that have traits
Returns:
TypeDescription
ArrayArray of all objects that have traits
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
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

transform(enemyId)

Transform the enemy
NameTypeDescription
enemyIdnumberThe new enemy's id
Get the turn count
Returns:
TypeDescription
numberTurn count
Update buff turn counts
Update state turns
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
Use the given item
NameTypeDescription
itemObjectThe item/skill object to use

weaponImageId()numberinherited

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

xparam(xparamId)numberinherited

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