The superclass of Game_Battler. It mainly contains parameters calculation.
Properties:
| Name | Type | Description |
|---|---|---|
hp | number | Battler hp |
mp | number | Battler mp |
tp | number | Battler tp |
mhp | number | Battler max hp |
mmp | number | Battler max mp |
atk | number | Battler attack |
def | number | Battler defense |
mat | number | Battler magic attack |
mdf | number | Battler magic defense |
agi | number | Battler agility |
luk | number | Battler luck |
hit | number | Battler hit rate |
eva | number | Battler evasion rate |
cri | number | Battler critical rate |
cev | number | Battler critical evasion rate |
mev | number | Battler magical evation rate |
mrf | number | Battler magical reflection rate |
cnt | number | Battler counter rate |
hrg | number | Battler hp regen rate |
mrg | number | Battler mp regen rate |
trg | number | Battler tp regen rate |
tgr | number | Battler target rate |
grd | number | Battler guard effect rate |
rec | number | Battler recovery rate |
pha | number | Battler pharmacology rate |
mcr | number | Battler mp cost rate |
tcr | number | Battler tp charge rate |
pdr | number | Battler physical damage rate |
mdr | number | Battler magic damage rate |
fdr | number | Battler floor damage rate |
exr | number | Battler exp rate |
Members
- Default Value:
- 1
- Default Value:
- 3
- Default Value:
- 2
- Default Value:
- 32
- Default Value:
- 48
- Default Value:
- 61
- Default Value:
- 31
- Default Value:
- 35
- Default Value:
- 33
- Default Value:
- 32
- Default Value:
- 34
- Default Value:
- 63
- Default Value:
- 12
- Default Value:
- 11
- Default Value:
- 52
- Default Value:
- 53
- Default Value:
- 54
- Default Value:
- 51
- Default Value:
- 21
- Default Value:
- 64
- Default Value:
- 43
- Default Value:
- 44
- Default Value:
- 55
- Default Value:
- 23
- Default Value:
- 62
- Default Value:
- 13
- Default Value:
- 14
- Default Value:
- 41
- Default Value:
- 42
- Default Value:
- 22
Methods
- Get action plus traits set
Returns:
Type Description Array Trait values for action plus - Adds a new state to the battler by id
Name Type Description stateIdnumber The state id to add - Adds a bonus to a parameter by id
Name Type Description paramIdnumber The parameter id to add to valuenumber The amount to add - 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
- 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 stateIdnumber The state id Returns:
Type Description number The state rate - Get the attack times
Returns:
Type Description number The attack times - Get a buff for a parameter by id
Name Type Description paramIdnumber The id of the parameter Returns:
Type Description number The buff that parameter has - Get a buff icon a specific buff
Name Type Description buffLevelnumber The buff level of the parameter paramIdnumber 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 itemObject 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 itemObject The armor object Returns:
Type Description boolean True if the armor can be equipped - Check if a weapon can be equipped
Name Type Description itemObject 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 skillObject 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 itemObject The item/skill object Returns:
Type Description boolean True if the item/skill can be used - Clear buffs
- Clears param bonus effects
- Clears states affecting the battler
- Get collapse type
Returns:
Type Description number The collapse type - Determine the confusion level of the battler
Returns:
Type Description number Confusion level - 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 paramIdnumber The id of the parameter Returns:
Type Description number The debuff rate - Decrease the buff for a parameter
Name Type Description paramIdnumber The id of the param to debuff - Kills the battler
- Get the element rate by id
Name Type Description elementIdnumber The id of the element Returns:
Type Description number The element rate - Erase a buff by param id
Name Type Description paramIdnumber The id of the param to erase buffs for - Erases a state by id
Name Type Description stateIdnumber The id of the state to erase - 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 paramIdnumber The id of the param to buff - Initialize class variables
- Initializes the class
- 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 there is a buff for a parameter by id
Name Type Description paramIdnumber 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 paramIdnumber The id of the param to check for expired buff Returns:
Type Description boolean True if the buff is expired - Check if there is a buff or debuff for a parameter by id
Name Type Description paramIdnumber 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 confused
Returns:
Type Description boolean True if confused - 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 paramIdnumber 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 the battler is an enemy type
Returns:
Type Description boolean True if enemy - Check if an armor type is ok to equip
Name Type Description atypeIdnumber The armor type to check Returns:
Type Description boolean True if ok to equip - Check if an equip type is locked
Name Type Description etypeIdnumber The equip type to check Returns:
Type Description boolean True if locked - Check if an equip type is sealed
Name Type Description etypeIdnumber The equip type to check Returns:
Type Description boolean True if sealed - Check if a weapon type is ok to equip
Name Type Description wtypeIdnumber 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 hidden
Returns:
Type Description boolean True if hidden - Check if the maximum buff is on the parameter
Name Type Description paramIdnumber 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 paramIdnumber The id of the param to check Returns:
Type Description boolean True if that parameter has a maximum debuff - Check if an item's occasion is met
Name Type Description itemObject 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 a skill is sealed
Name Type Description skillIdnumber The skill to check Returns:
Type Description boolean True if sealed - Check if a skill type is sealed
Name Type Description stypeIdnumber 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 is affected by a state by id
Name Type Description stateIdnumber 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 stateIdnumber 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 stateIdnumber The id of the state to check Returns:
Type Description boolean True if resisted - Check if the battler has the substitute special flag
Returns:
Type Description boolean True if substitute - Get the max tp the battler can have
Returns:
Type Description number Maximum tp value - Check if an item's conditions are met
Name Type Description itemObject The item object Returns:
Type Description boolean True if the conditions are met - Check if a skill's conditions are met
Name Type Description skillObject The skill object Returns:
Type Description boolean True if the conditions are met - Check if an item's usable conditions are met
Name Type Description itemObject 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 battler's mp rate (mp / max mp)
Returns:
Type Description number The mp rate - Processing when a restriction is added
- Overwrite a buff's turns remaining
Name Type Description paramIdnumber The id of the param to overwrite buff turns for turnsnumber The new amount of turns the buff will last for - Get the final parameter value id
Name Type Description paramIdnumber The id of the parameter Returns:
Type Description number The parameter value - Get the base param.
Returns:
Type Description number The base param - Get the parameter base + plus by id
Name Type Description paramIdnumber 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 paramIdnumber 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 paramIdnumber 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 paramIdnumber The id of the parameter Returns:
Type Description number The parameter bonus - Get the parameter rate by id
Name Type Description paramIdnumber 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 abilityIdnumber The ability id to check Returns:
Type Description boolean True if traits exist for the ability id - Pay the skill costs
Name Type Description skillObject The skill object - Recover all for the battler
- Refresh the battler
- Resets a state's turn counter by id
Name Type Description stateIdnumber The id of the state to reset - Get the highest restriction on the battler
Returns:
Type Description number The greatest restriction on the battler - Revives the battler
- Sets the battler's hp to the given value
Name Type Description hpnumber The new hp value - Sets the battler's mp to the given value
Name Type Description mpnumber The new mp value - Sets the battler's tp to the given value
Name Type Description tpnumber The new tp value - Get the skill mp cost
Name Type Description skillObject The skill object Returns:
Type Description number Skill mp cost - Get the skill tp cost
Name Type Description skillObject 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 sparamIdnumber 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 flagIdnumber The flag id to check Returns:
Type Description boolean True if traits exist for the flag 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 stateIdnumber 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 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 codenumber 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 codenumber The trait code idnumber The trait data id Returns:
Type Description number Value of the traits - Get array all trait data ids with given code
Name Type Description codenumber The trait code Returns:
Type Description Array Trait data ids - Get additive value of all traits with given code and id
Name Type Description codenumber The trait code idnumber The trait data id Returns:
Type Description number Value of the traits - Get additive value of all traits with given code
Name Type Description codenumber 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 codenumber The trait code to check for idnumber The trait data id to check for Returns:
Type Description Array Array of traits with given code - Update buff turn counts
- Update state turns
- Get the x-parameter value by id
Name Type Description xparamIdnumber The id of the parameter Returns:
Type Description number The parameter value