Get the action at the given index
| Name | Type | Description |
|---|
index | number | The index to get the action from |
Returns:
Get action plus traits set
Returns:
| Type | Description |
|---|
| Array | Trait values for action plus |
Add a buff to the battler by id
| Name | Type | Description |
|---|
paramId | number | Id of the param to buff |
turns | number | Amount of turns the buff lasts |
Add a debuff to the battler by id
| Name | Type | Description |
|---|
paramId | number | Id of the param to debuff |
turns | number | Amount of turns the debuff lasts |
Adds a new state to the battler by id
| Name | Type | Description |
|---|
stateId | number | The state id to add |
Adds a bonus to a parameter by id
| Name | Type | Description |
|---|
paramId | number | The parameter id to add to |
value | number | The amount to add |
Add a state to the battler by id
| Name | Type | Description |
|---|
stateId | number | Id of state to be added |
Get the added skill types
Returns:
| Type | Description |
|---|
| Array | The added skill types |
Get the added skills
Returns:
| Type | Description |
|---|
| Array | The added skills |
Get state and buff icons
Returns:
| Type | Description |
|---|
| Array | Array of state and buff icon indexes |
Get an array of all traits from all trait objects
Returns:
| Type | Description |
|---|
| Array | Array of all traits |
Shows the battler
Applies a TPB penalty
Get the attack elements trait set
Returns:
| Type | Description |
|---|
| Array | Array of attack element trait data ids |
Get the attack skill id
Returns:
| Type | Description |
|---|
| number | The attack skill id |
Get the attack speed
Returns:
| Type | Description |
|---|
| number | The attack speed |
Get the attack state trait set
Returns:
| Type | Description |
|---|
| Array | Array of attack state trait data ids |
Get the attack state rate for a given state id
| Name | Type | Description |
|---|
stateId | number | The state id |
Returns:
| Type | Description |
|---|
| number | The state rate |
Get the attack times
Returns:
| Type | Description |
|---|
| number | The attack times |
Get the enemy's battler hue
Returns:
| Type | Description |
|---|
| number | The enemy's battler hue |
Get the enemy's battler name
Returns:
| Type | Description |
|---|
| string | The enemy's battler name |
Get a buff for a parameter by id
| Name | Type | Description |
|---|
paramId | number | The id of the parameter |
Returns:
| Type | Description |
|---|
| number | The buff that parameter has |
buffIconIndex(buffLevel, paramId)numberinherited
Get a buff icon a specific buff
| Name | Type | Description |
|---|
buffLevel | number | The buff level of the parameter |
paramId | number | The id of the parameter |
Returns:
| Type | Description |
|---|
| number | The buff icon index |
Get buff icons for buffs the battler has
Returns:
| Type | Description |
|---|
| Array | Array of buff icon indexes |
Get the amount of possible params to buff
Returns:
| Type | Description |
|---|
| number | Amount of buffs possible |
Check if the battler can attack
Returns:
| Type | Description |
|---|
| boolean | True if the battler can attack |
Check if an item can be equipped
| Name | Type | Description |
|---|
item | Object | The weapon/armor object |
Returns:
| Type | Description |
|---|
| boolean | True if the weapon/armor can be equipped |
Check if an armor can be equipped
| Name | Type | Description |
|---|
item | Object | The armor object |
Returns:
| Type | Description |
|---|
| boolean | True if the armor can be equipped |
Check if a weapon can be equipped
| Name | Type | Description |
|---|
item | Object | The weapon object |
Returns:
| Type | Description |
|---|
| boolean | True if the weapon can be equipped |
Check if the battler can guard
Returns:
| Type | Description |
|---|
| boolean | True if the battler can guard |
Check if the battler can input
Returns:
| Type | Description |
|---|
| boolean | True if can input |
Check if the battler can move
Returns:
| Type | Description |
|---|
| boolean | True if can move |
Check if skill costs are payable
| Name | Type | Description |
|---|
skill | Object | The skill object |
Returns:
| Type | Description |
|---|
| boolean | True if costs can be paid |
Check if an item or skill can be used
| Name | Type | Description |
|---|
item | Object | The item/skill object |
Returns:
| Type | Description |
|---|
| boolean | True if the item/skill can be used |
Cancels a motion refresh
- Since:
Gains tp based on damage
| Name | Type | Description |
|---|
damageRate | number | The damage rate to base tp gain off |
Clears the battler's actions
Clear buffs
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
Clears TPB charge time
Clears the weapon animation
Get collapse type
Returns:
| Type | Description |
|---|
| number | The collapse type |
Determine the confusion level of the battler
Returns:
| Type | Description |
|---|
| number | Confusion level |
Consumes the given item
| Name | Type | Description |
|---|
item | Object | The item object to consume |
Get the current action
Returns:
Get the state id for the death state
Returns:
| Type | Description |
|---|
| number | The id of the death state |
Get the debuff rate by id
| Name | Type | Description |
|---|
paramId | number | The id of the parameter |
Returns:
| Type | Description |
|---|
| number | The debuff rate |
Decrease the buff for a parameter
| Name | Type | Description |
|---|
paramId | number | The id of the param to debuff |
Marks the battler as not selected
Kills the battler
Get the rate for item drops
Returns:
| Type | Description |
|---|
| number | The drop item rate |
Get the effect type
Returns:
| Type | Description |
|---|
| string | The effect type |
Get the element rate by id
| Name | Type | Description |
|---|
elementId | number | The id of the element |
Returns:
| Type | Description |
|---|
| number | The element rate |
Get the enemy's data object
Returns:
| Type | Description |
|---|
| Object | The enemy's data object |
Get the enemy's id
Returns:
| Type | Description |
|---|
| number | The enemy's id |
Erase a buff by param id
| Name | Type | Description |
|---|
paramId | number | The id of the param to erase buffs for |
Erases a state by id
| Name | Type | Description |
|---|
stateId | number | The id of the state to erase |
Processing when there is an escape
Get the enemy's exp
Returns:
| Type | Description |
|---|
| number | The enemy's exp |
Finishes the TPB charge
Force an action
| Name | Type | Description |
|---|
skillId | number | The skill id |
targetIndex | number | The target index |
Get the friendly unit in battle. For Game_Enemy, this is Game_Troop
Returns:
Gains an amount of hp
| Name | Type | Description |
|---|
value | number | The amount of hp to gain |
Gains an amount of mp
| Name | Type | Description |
|---|
value | number | The amount of mp to gain |
Gains an amount of tp without adding it to the action result
| Name | Type | Description |
|---|
value | number | The amount of tp to gain |
Gains an amount of tp
| Name | Type | Description |
|---|
value | number | The amount of tp to gain |
Get the enemy's gold
Returns:
| Type | Description |
|---|
| number | The enemy's gold |
Get the guard skill's id
Returns:
| Type | Description |
|---|
| number | The guard skill's id |
Hides the battler
Get the battler's hp rate (hp / max hp)
Returns:
| Type | Description |
|---|
| number | The hp rate |
Increase the buff for a parameter
| Name | Type | Description |
|---|
paramId | number | The id of the param to buff |
Get the enemy's index in battle
Returns:
| Type | Description |
|---|
| number | The enemy's index in battle |
Initialize class variables
Initialize tp
Initialize the TPB charge time
| Name | Type | Description |
|---|
advantageous | boolean | If charge time should be advantageous |
Initialize TPB turn
Initialize the enemy
| Name | Type | Description |
|---|
enemyId | number | The enemy's id |
x | number | The enemy's screen x coordinate |
y | number | The enemy's screen y coordinate |
Check if the action state is acting
Returns:
| Type | Description |
|---|
| boolean | True if acting |
isActionValid(action)boolean
Check if an action is valid
| Name | Type | Description |
|---|
action | Object | The action object to check |
Returns:
| Type | Description |
|---|
| boolean | True if the action is valid |
Check if the battler is an actor type
Returns:
| Type | Description |
|---|
| boolean | True if actor |
Check if the battler is alive
Returns:
| Type | Description |
|---|
| boolean | True if alive |
Check if the battler is appeared (not hidden)
Returns:
| Type | Description |
|---|
| boolean | True if appeared |
Check if the battler has the auto battle special flag
Returns:
| Type | Description |
|---|
| boolean | True if auto battle |
Check if this is a battle member
Returns:
| Type | Description |
|---|
| boolean | True if this is a battle member |
Check if there is a buff for a parameter by id
| Name | Type | Description |
|---|
paramId | number | The id of the param to check |
Returns:
| Type | Description |
|---|
| boolean | True if that parameter has a buff |
Check if buff is expired by id
| Name | Type | Description |
|---|
paramId | number | The id of the param to check for expired buff |
Returns:
| Type | Description |
|---|
| boolean | True if the buff is expired |
isBuffOrDebuffAffected(paramId)booleaninherited
Check if there is a buff or debuff for a parameter by id
| Name | Type | Description |
|---|
paramId | number | The id of the param to check |
Returns:
| Type | Description |
|---|
| boolean | True if that parameter has a buff or debuff |
Check if the battler is chanting
Returns:
| Type | Description |
|---|
| boolean | True if chanting |
Check if the battler is confused
Returns:
| Type | Description |
|---|
| boolean | True if confused |
Check if a damage popup is requested
Returns:
| Type | Description |
|---|
| boolean | True if a damage popup has been requested |
Check if the battler is dead
Returns:
| Type | Description |
|---|
| boolean | True if dead |
Check if the battler is affected by the death state
Returns:
| Type | Description |
|---|
| boolean | True if the battler is affected by the state |
Check if there is a debuff for a parameter by id
| Name | Type | Description |
|---|
paramId | number | The id of the param to check |
Returns:
| Type | Description |
|---|
| boolean | True if that parameter has a debuff |
Check if the battler is dual wield type
Returns:
| Type | Description |
|---|
| boolean | True if dual wield |
Check if the battler is low on hp
Returns:
| Type | Description |
|---|
| boolean | True if low on hp |
Check if an effect is requested
Returns:
| Type | Description |
|---|
| boolean | True if an effect has been requested |
Check if this is an enemy. When called from Game_Enemy, this is always true
Returns:
| Type | Description |
|---|
| boolean | True if this is an enemy |
Check if an armor type is ok to equip
| Name | Type | Description |
|---|
atypeId | number | The armor type to check |
Returns:
| Type | Description |
|---|
| boolean | True if ok to equip |
Check if an equip type is locked
| Name | Type | Description |
|---|
etypeId | number | The equip type to check |
Returns:
| Type | Description |
|---|
| boolean | True if locked |
Check if an equip type is sealed
| Name | Type | Description |
|---|
etypeId | number | The equip type to check |
Returns:
| Type | Description |
|---|
| boolean | True if sealed |
Check if a weapon type is ok to equip
| Name | Type | Description |
|---|
wtypeId | number | The weapon type to check |
Returns:
| Type | Description |
|---|
| boolean | True if ok to equip |
Check if the battler has the guard special flag
Returns:
| Type | Description |
|---|
| boolean | True if guard |
Check if the battler is guarding
Returns:
| Type | Description |
|---|
| boolean | True if guarding |
Check if the battler is hidden
Returns:
| Type | Description |
|---|
| boolean | True if hidden |
Check if the action state is inputting
Returns:
| Type | Description |
|---|
| boolean | True if inputting |
Check if the enemy's letter is empty
Returns:
| Type | Description |
|---|
| boolean | True if the enemy's letter is empty |
Check if the maximum buff is on the parameter
| Name | Type | Description |
|---|
paramId | number | The id of the param to check |
Returns:
| Type | Description |
|---|
| boolean | True if that parameter has a maximum buff |
Check if the maximum debuff is on the parameter
| Name | Type | Description |
|---|
paramId | number | The id of the param to check |
Returns:
| Type | Description |
|---|
| boolean | True if that parameter has a maximum debuff |
Check if a motion refresh is requested
Returns:
| Type | Description |
|---|
| boolean | True if a motion refresh has been requested |
Check if a motion is requested
Returns:
| Type | Description |
|---|
| boolean | True if a motion has been requested |
Check if an item's occasion is met
| Name | Type | Description |
|---|
item | Object | The item object |
Returns:
| Type | Description |
|---|
| boolean | True if the occasion is met |
Check if the battler has the preserve tp special flag
Returns:
| Type | Description |
|---|
| boolean | True if preserve tp |
Check if the battler is restricted
Returns:
| Type | Description |
|---|
| boolean | True if restricted |
Check if this is selected
Returns:
| Type | Description |
|---|
| boolean | True if selected |
Check if a skill is sealed
| Name | Type | Description |
|---|
skillId | number | The skill to check |
Returns:
| Type | Description |
|---|
| boolean | True if sealed |
Check if a skill type is sealed
| Name | Type | Description |
|---|
stypeId | number | The skill type to check |
Returns:
| Type | Description |
|---|
| boolean | True if sealed |
Check if skill Wtype is ok
Returns:
| Type | Description |
|---|
| boolean | True if skill wtype is ok |
Check if the battler sprite should be visible. For Game_Enemy, this always returns true
Returns:
| Type | Description |
|---|
| boolean | True if the battler sprite should be visible |
Check if the state with the given id can be added to the battler
| Name | Type | Description |
|---|
stateId | number | Id of state to check |
Returns:
| Type | Description |
|---|
| boolean | True if the state can be added |
Check if the battler is affected by a state by id
| Name | Type | Description |
|---|
stateId | number | The id of the state to check |
Returns:
| Type | Description |
|---|
| boolean | True if the battler is affected by the state |
Check if a state is expired
| Name | Type | Description |
|---|
stateId | number | The id of the state to check |
Returns:
| Type | Description |
|---|
| boolean | True if the state is expired |
Check if a state is resisted
| Name | Type | Description |
|---|
stateId | number | The id of the state to check |
Returns:
| Type | Description |
|---|
| boolean | True if resisted |
Check if the state with the given id is restricted
| Name | Type | Description |
|---|
stateId | number | Id of state to check |
Returns:
| Type | Description |
|---|
| boolean | True if the state is restricted |
Check if the battler has the substitute special flag
Returns:
| Type | Description |
|---|
| boolean | True if substitute |
Check if TPB is in the charged state
Returns:
| Type | Description |
|---|
| boolean | True if charged |
Check if TPB is in the ready state
Returns:
| Type | Description |
|---|
| boolean | True if ready |
Check if TPB is timed out
Returns:
| Type | Description |
|---|
| boolean | True if timed out |
Check for turn end in TPB
Returns:
| Type | Description |
|---|
| boolean | True if turn ended |
Check if the action state is undecided
Returns:
| Type | Description |
|---|
| boolean | True if undecided |
Check if the action state is waiting
Returns:
| Type | Description |
|---|
| boolean | True if waiting |
Check if a weapon animation is requested
Returns:
| Type | Description |
|---|
| boolean | True if a weapon animation has been requested |
itemObject(kind, dataId)Object | null
Get the item object from a kind id and the data id
| Name | Type | Description |
|---|
kind | number | The kind of item to get, 1 = item, 2 = weapon, 3 = armor |
dataId | number | The item's id to get |
Returns:
| Type | Description |
|---|
| Object|null | The item object, or null if invalid kind id |
Make the action times
Returns:
| Type | Description |
|---|
| number | The action times |
Make the battler's actions
Make a list of drop items the enemy actually dropped
Returns:
| Type | Description |
|---|
| Array | Array of drop items |
Make the battler's speed
Makes the TPB actions
Get the maximum amount for slip damage
Returns:
| Type | Description |
|---|
| number | Maximum slip damage amount |
Get the max tp the battler can have
Returns:
| Type | Description |
|---|
| number | Maximum tp value |
meetsCondition(action)boolean
Check if an action's condition is met
| Name | Type | Description |
|---|
action | Object | The action object to check |
Returns:
| Type | Description |
|---|
| boolean | True if the condition is met |
meetsHpCondition(param1, param2)boolean
Check if an action's hp condition is met
| Name | Type | Description |
|---|
param1 | number | The first hp condition param |
param2 | number | The second hp condition param |
Returns:
| Type | Description |
|---|
| boolean | True if the condition is met |
Check if an item's conditions are met
| Name | Type | Description |
|---|
item | Object | The item object |
Returns:
| Type | Description |
|---|
| boolean | True if the conditions are met |
meetsMpCondition(param1, param2)boolean
Check if an action's mp condition is met
| Name | Type | Description |
|---|
param1 | number | The first mp condition param |
param2 | number | The second mp condition param |
Returns:
| Type | Description |
|---|
| boolean | True if the condition is met |
meetsPartyLevelCondition(param)boolean
Check if an action's party level condition is met
| Name | Type | Description |
|---|
param | number | The party level to check for |
Returns:
| Type | Description |
|---|
| boolean | True if the condition is met |
Check if a skill's conditions are met
| Name | Type | Description |
|---|
skill | Object | The skill object |
Returns:
| Type | Description |
|---|
| boolean | True if the conditions are met |
meetsStateCondition(param)boolean
Check if an action's state condition is met
| Name | Type | Description |
|---|
param | number | The state to check for |
Returns:
| Type | Description |
|---|
| boolean | True if the condition is met |
meetsSwitchCondition(param)boolean
Check if an action's switch condition is met
| Name | Type | Description |
|---|
param | number | The switch id to check |
Returns:
| Type | Description |
|---|
| boolean | True if the condition is met |
meetsTurnCondition(param1, param2)boolean
Check if an action's turn condition is met
| Name | Type | Description |
|---|
param1 | number | The first turn condition param |
param2 | number | The second turn condition param |
Returns:
| Type | Description |
|---|
| boolean | True if the condition is met |
meetsUsableItemConditions(item)booleaninherited
Check if an item's usable conditions are met
| Name | Type | Description |
|---|
item | Object | The item object |
Returns:
| Type | Description |
|---|
| boolean | True if the conditions are met |
Get the most important state's text (persists message)
Returns:
| Type | Description |
|---|
| string | The most important state's persist message |
Get the motion type
Returns:
| Type | Description |
|---|
| string | The motion type |
Get the battler's mp rate (mp / max mp)
Returns:
| Type | Description |
|---|
| number | The mp rate |
Get the enemy's name
Returns:
| Type | Description |
|---|
| string | The enemy's name |
Get the amount of actions the battler has
Returns:
| Type | Description |
|---|
| number | Amount of actions |
Processing when all actions are over
Processing when a battle ends
Processing when a battle starts
| Name | Type | Description |
|---|
advantageous | boolean | If the battle is advantageous |
Processing when damage occurs
| Name | Type | Description |
|---|
value | number | Amount 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:
Get the enemy's original name
Returns:
| Type | Description |
|---|
| string | The enemy's original name |
Overwrite a buff's turns remaining
| Name | Type | Description |
|---|
paramId | number | The id of the param to overwrite buff turns for |
turns | number | The new amount of turns the buff will last for |
Get the final parameter value id
| Name | Type | Description |
|---|
paramId | number | The id of the parameter |
Returns:
| Type | Description |
|---|
| number | The parameter value |
Get a base param value
| Name | Type | Description |
|---|
paramId | number | The id of the param to get |
Returns:
| Type | Description |
|---|
| number | The base param value |
Get the parameter base + plus by id
| Name | Type | Description |
|---|
paramId | number | The id of the parameter |
Returns:
| Type | Description |
|---|
| number | The parameter base added to parameter plus |
Get the parameter buff rate by id
| Name | Type | Description |
|---|
paramId | number | The id of the parameter |
Returns:
| Type | Description |
|---|
| number | The parameter buff rate |
Get the maximum a parameter can be
Returns:
| Type | Description |
|---|
| number | The maximum valid value for this parameter |
Get the minimum a parameter can be
| Name | Type | Description |
|---|
paramId | number | The id of the parameter |
Returns:
| Type | Description |
|---|
| number | The minimum valid value for this parameter |
Get the parameter bonus by id
| Name | Type | Description |
|---|
paramId | number | The id of the parameter |
Returns:
| Type | Description |
|---|
| number | The parameter bonus |
Get the parameter rate by id
| Name | Type | Description |
|---|
paramId | number | The id of the parameter |
Returns:
| Type | Description |
|---|
| number | The parameter rate |
Check if there are traits with a party ability id
| Name | Type | Description |
|---|
abilityId | number | The ability id to check |
Returns:
| Type | Description |
|---|
| boolean | True if traits exist for the ability id |
Pay the skill costs
| Name | Type | Description |
|---|
skill | Object | The 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.
Start an action
| Name | Type | Description |
|---|
action | Game_Action | The 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
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
Remove states that end after battle
Remove a buff to the battler by id
| Name | Type | Description |
|---|
paramId | number | Id of the param to remove buffs for |
Remove buffs when they expire
Removes the current action
Remove a state to the battler by id
| Name | Type | Description |
|---|
stateId | number | Id of state to be removed |
Remove states set to auto remove
| Name | Type | Description |
|---|
timing | number | The timing to check against for auto removal |
Remove states that are removed by damage
Requests an effect
| Name | Type | Description |
|---|
effectType | string | The type of effect to request |
Requests a motion
| Name | Type | Description |
|---|
motionType | string | The type of motion to request |
Requests a motion refresh
Resets a state's turn counter by id
| Name | Type | Description |
|---|
stateId | number | The id of the state to reset |
Get the highest restriction on the battler
Returns:
| Type | Description |
|---|
| number | The greatest restriction on the battler |
Get the result of an action
Returns:
Revives the battler
Get the enemy's screen x coordinate
Returns:
| Type | Description |
|---|
| number | The enemy's screen x coordinate |
Get the enemy's screen y coordinate
Returns:
| Type | Description |
|---|
| number | The enemy's screen y coordinate |
Marks the battler as selected
selectAction(actionList, ratingZero)Object | null
Select an action
| Name | Type | Description |
|---|
actionList | Array | List of possible action objects |
ratingZero | number | The minimum rating of the action |
Returns:
| Type | Description |
|---|
| Object|null | The action object, or null if none selected |
selectAllActions(actionList)
Select all actions
| Name | Type | Description |
|---|
actionList | Array | List of possible action objects |
Set an action at the given index
| Name | Type | Description |
|---|
index | number | The index to set the action of |
action | Game_Action | The action to set |
Set the action state
| Name | Type | Description |
|---|
actionState | string | The new action state |
Sets the battler's hp to the given value
| Name | Type | Description |
|---|
hp | number | The new hp value |
Set the last target
Set the enemy's letter
| Name | Type | Description |
|---|
letter | string | The enemy's new letter |
Sets the battler's mp to the given value
| Name | Type | Description |
|---|
mp | number | The new mp value |
Set the enemy's plural status (if there are multiple of the enemy)
| Name | Type | Description |
|---|
plural | boolean | The enemy's new plural status |
Sets the battler's tp to the given value
| Name | Type | Description |
|---|
tp | number | The new tp value |
Setup the enemy
| Name | Type | Description |
|---|
enemyId | number | The enemy's id |
x | number | The enemy's screen x coordinate |
y | number | The enemy's screen y coordinate |
Check if charging should be delayed
Returns:
| Type | Description |
|---|
| boolean | True if delay is needed |
Check if a damage popup should appear
Returns:
| Type | Description |
|---|
| boolean | True if should popup damage |
Get the skill mp cost
| Name | Type | Description |
|---|
skill | Object | The skill object |
Returns:
| Type | Description |
|---|
| number | Skill mp cost |
Get the skill tp cost
| Name | Type | Description |
|---|
skill | Object | The skill object |
Returns:
| Type | Description |
|---|
| number | Skill tp cost |
Get the slot type
Returns:
| Type | Description |
|---|
| number | The slot type |
Sort the states affecting the battler by their priority
Get the s-parameter value by id
| Name | Type | Description |
|---|
sparamId | number | The id of the parameter |
Returns:
| Type | Description |
|---|
| number | The parameter value |
Check if there are traits with a special flag id
| Name | Type | Description |
|---|
flagId | number | The flag id to check |
Returns:
| Type | Description |
|---|
| boolean | True if traits exist for the flag id |
Get the battler's speed
Returns:
| Type | Description |
|---|
| number | The battler's speed |
Starts the damage popup
Starts a TPB action
Starts TPB casting
Starts TPB turn
Starts a weapon animation of type id
| Name | Type | Description |
|---|
weaponImageId | number | The weapon image id |
Get state icons for states affecting the battler
Returns:
| Type | Description |
|---|
| Array | Array of state icon indexes |
Get the state motion index
Returns:
| Type | Description |
|---|
| number | The state motion index |
Get the state overlay index
Returns:
| Type | Description |
|---|
| number | The state overlay index |
Get the state rate by id
| Name | Type | Description |
|---|
stateId | number | The id of the state |
Returns:
| Type | Description |
|---|
| number | The state rate |
Get the state resist trait set
Returns:
| Type | Description |
|---|
| Array | Array of state resist trait data ids |
Get states affecting the battler
Returns:
| Type | Description |
|---|
| Array | Array of state data objects |
Get the battler's tp rate (tp / max tp)
Returns:
| Type | Description |
|---|
| number | The tp rate |
Get the acceleration of the TPB
Returns:
| Type | Description |
|---|
| number | TPB acceleration |
Get the base speed of the TPB
Returns:
| Type | Description |
|---|
| number | TPB base speed |
Get the TPB charge time
Returns:
| Type | Description |
|---|
| number | The TPB charge time |
Get the relative speed of the TPB
Returns:
| Type | Description |
|---|
| number | TPB relative speed |
Get the cast time of the TPB
Returns:
| Type | Description |
|---|
| number | TPB cast time |
Get the speed of the TPB
Returns:
| Type | Description |
|---|
| number | TPB speed |
Get an array of all objects that have traits
Returns:
| Type | Description |
|---|
| Array | Array of all objects that have traits |
Get an array of all traits from all trait objects that match the given code
| Name | Type | Description |
|---|
code | number | The trait code to check for |
Returns:
| Type | Description |
|---|
| Array | Array of traits with given code |
Get multiplicative value of all traits with given code and id
| Name | Type | Description |
|---|
code | number | The trait code |
id | number | The trait data id |
Returns:
| Type | Description |
|---|
| number | Value of the traits |
Get array all trait data ids with given code
| Name | Type | Description |
|---|
code | number | The trait code |
Returns:
| Type | Description |
|---|
| Array | Trait data ids |
Get additive value of all traits with given code and id
| Name | Type | Description |
|---|
code | number | The trait code |
id | number | The trait data id |
Returns:
| Type | Description |
|---|
| number | Value of the traits |
Get additive value of all traits with given code
| Name | Type | Description |
|---|
code | number | The trait code |
Returns:
| Type | Description |
|---|
| number | Value of the traits |
Get an array of all traits from all trait objects that match the given code and id
| Name | Type | Description |
|---|
code | number | The trait code to check for |
id | number | The trait data id to check for |
Returns:
| Type | Description |
|---|
| Array | Array of traits with given code |
Transform the enemy
| Name | Type | Description |
|---|
enemyId | number | The new enemy's id |
Get the turn count
Returns:
| Type | Description |
|---|
| number | Turn count |
Update buff turn counts
Update state turns
Update for TPB
Update TPB auto battle
Update TPB cast time
Update TPB charge time
Update TPB idle time
Use the given item
| Name | Type | Description |
|---|
item | Object | The item/skill object to use |
Get the weapon image id
Returns:
| Type | Description |
|---|
| number | The weapon image id |
Get the x-parameter value by id
| Name | Type | Description |
|---|
xparamId | number | The id of the parameter |
Returns:
| Type | Description |
|---|
| number | The parameter value |