Class: Game_Enemy

Game_Enemy()

new Game_Enemy()

The game object declare class for an enemy.

Extends

Methods

action(index) → {Game_Action}

Parameters:
Name Type Description
index Number
Inherited From:
Returns:
Type
Game_Action

actionPlusSet() → {Array.<number>}

Inherited From:
Returns:
Type
Array.<number>

addBuff(paramId, turns)

Adds a buff to the battler for the specified number of turns on the selected parameter.
Parameters:
Name Type Description
paramId Number
turns Number
Inherited From:

addDebuff(paramId, turns)

Adds a debuff to the battler for the specified number of turns on the selected parameter.
Parameters:
Name Type Description
paramId Number
turns Number
Inherited From:

addedSkills() → {Array.<number>}

Inherited From:
Returns:
Type
Array.<number>

addedSkillTypes() → {Array.<number>}

Inherited From:
Returns:
Type
Array.<number>

addNewState(stateId)

Adds a new state given a state id to the battler.
Parameters:
Name Type Description
stateId Number
Inherited From:

addParam(paramId, value)

Parameters:
Name Type Description
paramId Number
value Number
Inherited From:

addState(stateId)

Adds a state to the battler given the specified state id.
Parameters:
Name Type Description
stateId Number
Inherited From:

allIcons() → {Array.<number>}

Returns all of the icons attached to the battler.
Inherited From:
Returns:
Type
Array.<number>

allTraits() → {Array.<RPG.Trait>}

Returns all the traits of the battler.
Inherited From:
Returns:
Type
Array.<RPG.Trait>

appear()

Shows the game battler.
Inherited From:

attackElements() → {Array.<number>}

Returns the attack elements of the battler as a list of numbers.
Inherited From:
Returns:
Type
Array.<number>

attackSkillId() → {Number}

Returns the attack skill id in the database.
Inherited From:
Returns:
Type
Number

attackSpeed() → {Number}

Returns the attack speed of the battler.
Inherited From:
Returns:
Type
Number

attackStates() → {Array.<number>}

Returns the attack states of the battler as a list of numbers.
Inherited From:
Returns:
Type
Array.<number>

attackStatesRate(stateId)

Parameters:
Name Type Description
stateId Number
Inherited From:

attackTimesAdd() → {Number}

Returns the number of attacks available to the battler.
Inherited From:
Returns:
Type
Number

battlerHue() → {Number}

Returns the hue of the enemy.
Returns:
Type
Number

battlerName() → {String}

Returns:
Type
String

buff(paramId) → {Number}

Buffs the current parameter id.
Parameters:
Name Type Description
paramId Number
Inherited From:
Returns:
Type
Number

buffIconIndex(buffLevel, paramId) → {Number}

Parameters:
Name Type Description
buffLevel Number
paramId Number
Inherited From:
Returns:
Type
Number

buffIcons() → {Array.<number>}

Returns the array of buff icons attached to the battler; this is determined by the active buffs on the battler.
Inherited From:
Returns:
Type
Array.<number>

buffLength() → {Number}

Returns the length of the buff.
Inherited From:
Returns:
Type
Number

canAttack() → {Boolean}

Returns true if the battler can attack.
Inherited From:
Returns:
Type
Boolean

canEquip(item) → {Boolean}

Returns true if the battler can equip the item.
Parameters:
Name Type Description
item RPG.EquipItem
Inherited From:
Returns:
Type
Boolean

canEquipArmor(item) → {Boolean}

Returns true if the battler can equip armor.
Parameters:
Name Type Description
item RPG.EquipItem
Inherited From:
Returns:
Type
Boolean

canEquipWeapon(item) → {Boolean}

Returns true if the battler can equip a weapon.
Parameters:
Name Type Description
item RPG.EquipItem
Inherited From:
Returns:
Type
Boolean

canGuard() → {Boolean}

Returns true if the battler can guard.
Inherited From:
Returns:
Type
Boolean

canInput() → {Boolean}

Returns true if the battler can input actions.
Inherited From:
Returns:
Type
Boolean

canMove() → {Boolean}

Inherited From:
Returns:
Type
Boolean

canPaySkillCost(skill) → {Boolean}

Returns true if the battler can pay the cost of the specified skill.
Parameters:
Name Type Description
skill RPG.Skill
Inherited From:
Returns:
Type
Boolean

canUse(item) → {Boolean}

Returns true if the battler can use the item.
Parameters:
Name Type Description
item RPG.UsableItem
Inherited From:
Returns:
Type
Boolean

chargeTpByDamage(damageRate)

Parameters:
Name Type Description
damageRate Number
Inherited From:

clearActions()

Clears the battler actions.
Inherited From:

clearAnimations()

Clears animations from the battler.
Inherited From:

clearBuffs()

Clears buffs from the battler.
Inherited From:

clearDamagePopup()

Clear damage pop up from the battler.
Inherited From:

clearEffect()

Clears effect from the battler.
Inherited From:

clearMotion()

Clears motion from the battler.
Inherited From:

clearParamPlus()

Inherited From:

clearResult()

Clears the battler action result.
Inherited From:

clearStates()

Inherited From:

clearTp()

Clears the battler's tp.
Inherited From:

clearWeaponAnimation()

Clear weapon animation from the battler.
Inherited From:

collapseType() → {Number}

Returns the collapse type of the battler.
Inherited From:
Returns:
Type
Number

confusionLevel() → {Number}

Returns the confusion level of the battler.
Inherited From:
Returns:
Type
Number

consumeItem(item)

Has the battler consume the given item.
Parameters:
Name Type Description
item RPG.UsableItem
Inherited From:

currentAction() → {Game_Action}

Returns the current action of the battler.
Inherited From:
Returns:
Type
Game_Action

deathStateId() → {Number}

Returns the death state id.
Inherited From:
Returns:
Type
Number

debuffRate(paramId) → {Number}

Parameters:
Name Type Description
paramId Number
Inherited From:
Returns:
Type
Number

decreaseBuff(paramId)

Parameters:
Name Type Description
paramId Number
Inherited From:

deselect()

Inherited From:

die()

Kills the battler.
Inherited From:

dropItemRate() → {Number}

Returns the item drop rate of the enemy.
Returns:
Type
Number

effectType() → {String}

Returns the effect type of the battler.
Inherited From:
Returns:
Type
String

elementRate(elementId) → {Number}

Parameters:
Name Type Description
elementId Number
Inherited From:
Returns:
Type
Number

enemy() → {RPG.Enemy}

Returns the enemy information from the database.
Returns:
Type
RPG.Enemy

enemyId() → {Number}

Returns the enemy id.
Returns:
Type
Number

eraseBuff(paramId)

Parameters:
Name Type Description
paramId Number
Inherited From:

eraseState(stateId)

Erases the current state from the game battler given the stateId in the editor database.
Parameters:
Name Type Description
stateId Number
Inherited From:

escape()

Has the battler escape from battle; plays a sound on escaping.
Inherited From:

exp() → {Number}

Returns the enemy's exp amount.
Returns:
Type
Number

forceAction(skillId, targetIndex)

Parameters:
Name Type Description
skillId Number
targetIndex Number
Inherited From:

friendsUnit() → {Game_Troop}

Returns the other troops in the enemy team.
Returns:
Type
Game_Troop

gainHp(value)

Adds the specified amount of hp to the battler.
Parameters:
Name Type Description
value Number
Inherited From:

gainMp(value)

Adds the specified amount of mp to the battler.
Parameters:
Name Type Description
value Number
Inherited From:

gainSilentTp(value)

Adds a specified amount of tp to the battler silently.
Parameters:
Name Type Description
value Number
Inherited From:

gainTp(value)

Adds the specified amount of tp to the battler.
Parameters:
Name Type Description
value Number
Inherited From:

gold() → {Number}

Returns enemy's given gold.
Returns:
Type
Number

guardSkillId() → {Number}

Returns the guard skill id in the database.
Inherited From:
Returns:
Type
Number

hide()

Hides the game battler.
Inherited From:

hpRate() → {Number}

Returns the percentage of the battler's hp left as a float.
Inherited From:
Returns:
Type
Number

increaseBuff(paramId)

Parameters:
Name Type Description
paramId Number
Inherited From:

index() → {Number}

Returns:
Type
Number

initialize(enemyId, x, y)

Parameters:
Name Type Description
enemyId Number
x Number
y Number
Overrides:

initMembers()

Overrides:

initTp()

Initializes the battler's tp; tp is random.
Inherited From:

isActing() → {Boolean}

Returns true if the battler is performing an action in battle.
Inherited From:
Returns:
Type
Boolean

isActionValid(action) → {Boolean}

Returns true if the enemy action is valid.
Parameters:
Name Type Description
action RPG.Enemy.Action
Returns:
Type
Boolean

isActor() → {Boolean}

Returns true if the battler is an actor.
Inherited From:
Returns:
Type
Boolean

isAlive() → {Boolean}

Returns true if the battler is alive.
Inherited From:
Returns:
Type
Boolean

isAnimationRequested() → {Boolean}

Inherited From:
Returns:
Type
Boolean

isAppeared() → {Boolean}

Returns true if the game battler is not hidden.
Inherited From:
Returns:
Type
Boolean

isAutoBattle() → {Boolean}

Returns true if the battler is set to battle automatically.
Inherited From:
Returns:
Type
Boolean

isBattleMember() → {Boolean}

Returns:
Type
Boolean

isBuffAffected(paramId) → {Boolean}

Parameters:
Name Type Description
paramId Number
Inherited From:
Returns:
Type
Boolean

isBuffExpired(paramId) → {Boolean}

Parameters:
Name Type Description
paramId Number
Inherited From:
Returns:
Type
Boolean

isBuffOrDebuffAffected(paramId) → {Boolean}

Parameters:
Name Type Description
paramId Number
Inherited From:
Returns:
Type
Boolean

isChanting() → {Boolean}

Returns true if the battler is chanting in combat.
Inherited From:
Returns:
Type
Boolean

isConfused() → {Boolean}

Returns true if the battler is confused.
Inherited From:
Returns:
Type
Boolean

isDamagePopupRequested() → {Boolean}

Inherited From:
Returns:
Type
Boolean

isDead() → {Boolean}

Returns true if the battler is dead.
Inherited From:
Returns:
Type
Boolean

isDeathStateAffected() → {Boolean}

Inherited From:
Returns:
Type
Boolean

isDebuffAffected(paramId) → {Boolean}

Parameters:
Name Type Description
paramId Number
Inherited From:
Returns:
Type
Boolean

isDualWield() → {Boolean}

Returns true if the battler dual wields.
Inherited From:
Returns:
Type
Boolean

isDying() → {Boolean}

Returns true if the battler is dying.
Inherited From:
Returns:
Type
Boolean

isEffectRequested() → {Boolean}

Inherited From:
Returns:
Type
Boolean

isEnemy() → {Boolean}

Overrides:
Returns:
Type
Boolean

isEquipAtypeOk(atypeId) → {Boolean}

Parameters:
Name Type Description
atypeId Number
Inherited From:
Returns:
Type
Boolean

isEquipTypeLocked(etypeId) → {Boolean}

Parameters:
Name Type Description
etypeId Number
Inherited From:
Returns:
Type
Boolean

isEquipTypeSealed(etypeId) → {Boolean}

Parameters:
Name Type Description
etypeId Number
Inherited From:
Returns:
Type
Boolean

isEquipWtypeOk(wtypeId) → {Boolean}

Parameters:
Name Type Description
wtypeId Number
Inherited From:
Returns:
Type
Boolean

isGuard() → {Boolean}

Returns true if the battler is guarding.
Inherited From:
Returns:
Type
Boolean

isGuardWaiting() → {Boolean}

Returns true if the battler is waiting to guard.
Inherited From:
Returns:
Type
Boolean

isHidden() → {Boolean}

Returns true if the game battler is hidden.
Inherited From:
Returns:
Type
Boolean

isInputting() → {Boolean}

Returns true if the battler is inputting commands in battle.
Inherited From:
Returns:
Type
Boolean

isLetterEmpty() → {Boolean}

Returns:
Type
Boolean

isMaxBuffAffected(paramId) → {Boolean}

Parameters:
Name Type Description
paramId Number
Inherited From:
Returns:
Type
Boolean

isMaxDebuffAffected(paramId) → {Boolean}

Parameters:
Name Type Description
paramId Number
Inherited From:
Returns:
Type
Boolean

isMotionRefreshRequested() → {Boolean}

Inherited From:
Returns:
Type
Boolean

isMotionRequested() → {Boolean}

Returns true if a motion is requested.
Inherited From:
Returns:
Type
Boolean

isOccasionOk(item) → {Boolean}

Returns true if the item occasion is okay.
Parameters:
Name Type Description
item RPG.UsableItem
Inherited From:
Returns:
Type
Boolean

isPreserveTp() → {Boolean}

Returns true if tp is preserved between battles.
Inherited From:
Returns:
Type
Boolean

isRestricted() → {Boolean}

Returns true if the game battler is restricted.
Inherited From:
Returns:
Type
Boolean

isSelected() → {Boolean}

Inherited From:
Returns:
Type
Boolean

isSkillSealed(stypeId) → {Boolean}

Parameters:
Name Type Description
stypeId Number
Inherited From:
Returns:
Type
Boolean

isSkillTypeSealed(stypeId) → {Boolean}

Parameters:
Name Type Description
stypeId Number
Inherited From:
Returns:
Type
Boolean

isSkillWtypeOk(skill) → {Boolean}

Returns true if the skill is a weapon type oriented skill.
Parameters:
Name Type Description
skill RPG.Skill
Inherited From:
Returns:
Type
Boolean

isSpriteVisible() → {Boolean}

Returns true if the enemy sprite is visible.
Returns:
Type
Boolean

isStateAddable(stateId) → {Boolean}

Returns true if the specified state given the state id is addable.
Parameters:
Name Type Description
stateId Number
Inherited From:
Returns:
Type
Boolean

isStateAffected(stateId) → {Boolean}

Returns true if the battler is affected by the specified state given the state id.
Parameters:
Name Type Description
stateId Number
Inherited From:
Returns:
Type
Boolean

isStateExpired(stateId) → {Boolean}

Returns true if the state, given the state id is expired.
Parameters:
Name Type Description
stateId Number
Inherited From:
Returns:
Type
Boolean

isStateResist(stateId) → {Boolean}

Parameters:
Name Type Description
stateId Number
Inherited From:
Returns:
Type
Boolean

isStateRestrict(stateId) → {Boolean}

Returns true if the specified state given the state id restricts.
Parameters:
Name Type Description
stateId Number
Inherited From:
Returns:
Type
Boolean

isSubstitute() → {Boolean}

Inherited From:
Returns:
Type
Boolean

isUndecided() → {Boolean}

Inherited From:
Returns:
Type
Boolean

isWaiting() → {Boolean}

Returns true if the battler is waiting in battle.
Inherited From:
Returns:
Type
Boolean

isWeaponAnimationRequested() → {Boolean}

Returns true if a weapon animation is requested.
Inherited From:
Returns:
Type
Boolean

itemObject(kind, dataId) → {RPG.BaseItem}

Parameters:
Name Type Description
kind Number 1:item 2:weapon 3:armor
dataId Numver
Returns:
Type
RPG.BaseItem

makeActions()

Overrides:

makeActionTimes() → {Number}

Creates the number of times for an action.
Inherited From:
Returns:
Type
Number

makeDropItems() → {Array.<RPG.BaseItem>}

Creates the drop items for the enemy specified by the database.
Returns:
Type
Array.<RPG.BaseItem>

makeSpeed()

Calculates the speed of the battler.
Inherited From:

maxSlipDamage() → {Number}

Inherited From:
Returns:
Type
Number

maxTp() → {Number}

Returns the maximum tp of the battler.
Inherited From:
Returns:
Type
Number

meetsCondition(action) → {Boolean}

Parameters:
Name Type Description
action RPG.Enemy.Action
Returns:
Type
Boolean

meetsHpCondition(param1, param2) → {Boolean}

Parameters:
Name Type Description
param1 Number
param2 Number
Returns:
Type
Boolean

meetsItemConditions(item) → {Boolean}

Returns true if the battler meets the item conditions.
Parameters:
Name Type Description
item RPG.Item
Inherited From:
Returns:
Type
Boolean

meetsMpCondition(param1, param2) → {Boolean}

Parameters:
Name Type Description
param1 Number
param2 Number
Returns:
Type
Boolean

meetsPartyLevelCondition(param) → {Boolean}

Parameters:
Name Type Description
param Number
Returns:
Type
Boolean

meetsSkillConditions(skill) → {Boolean}

Returns true if the battler meets the skill conditions.
Parameters:
Name Type Description
skill RPG.Skill
Inherited From:
Returns:
Type
Boolean

meetsStateCondition(param) → {Boolean}

Parameters:
Name Type Description
param Number
Returns:
Type
Boolean

meetsSwitchCondition(param) → {Boolean}

Parameters:
Name Type Description
param Number
Returns:
Type
Boolean

meetsTurnCondition(param1, param2) → {Boolean}

Parameters:
Name Type Description
param1 Number
param2 Number
Returns:
Type
Boolean

meetsUsableItemConditions(item) → {Boolean}

Parameters:
Name Type Description
item RPG.UsableItem
Inherited From:
Returns:
Type
Boolean

mostImportantStateText() → {String}

Inherited From:
Returns:
Type
String

motionType() → {String}

Returns the motion type of the battler.
Inherited From:
Returns:
Type
String

mpRate() → {Number}

Returns the percentage of the battler's mp left as a float.
Inherited From:
Returns:
Type
Number

name() → {String}

Returns the enemy name with letter.
Returns:
Type
String

numActions() → {Number}

Returns the number of battler actions.
Inherited From:
Returns:
Type
Number

onAllActionsEnd()

Inherited From:

onBattleEnd()

Inherited From:

onBattleStart()

Inherited From:

onDamage(value)

Parameters:
Name Type Description
value Number
Inherited From:

onRestrict()

Handler for when theb attler is restricted.
Inherited From:

onTurnEnd()

Inherited From:

opponentsUnit() → {Game_Party}

Returns the game party.
Returns:
Type
Game_Party

originalName() → {String}

Returns the enemy original name.
Returns:
Type
String

overwriteBuffTurns(paramId, turns)

Parameters:
Name Type Description
paramId Number
turns Number
Inherited From:

param(paramId) → {Number}

Returns a standard parameter, given a paramId; standard parameters include: HP, MP, Atk, M.Atk, Def, M.Def, Luck, Agility.
Parameters:
Name Type Description
paramId Number
Inherited From:
Returns:
Type
Number

paramBase(paramId) → {Number}

Parameters:
Name Type Description
paramId Number
Overrides:
Returns:
Type
Number

paramBuffRate(paramId) → {Number}

Parameters:
Name Type Description
paramId Number
Inherited From:
Returns:
Type
Number

paramMax(paramId) → {Number}

Parameters:
Name Type Description
paramId Number
Inherited From:
Returns:
Type
Number

paramMin(paramId) → {Number}

Parameters:
Name Type Description
paramId Number
Inherited From:
Returns:
Type
Number

paramPlus(paramId) → {Number}

Parameters:
Name Type Description
paramId Number
Inherited From:
Returns:
Type
Number

paramRate(paramId) → {Number}

Parameters:
Name Type Description
paramId Number
Inherited From:
Returns:
Type
Number

partyAbility(abilityId) → {Boolean}

Parameters:
Name Type Description
abilityId Number
Inherited From:
Returns:
Type
Boolean

paySkillCost(skill)

Pays the cost of the skill when activating the skill.
Parameters:
Name Type Description
skill RPG.Skill
Inherited From:

performAction(action)

Parameters:
Name Type Description
action RPG.Enemy.Action
Overrides:

performActionEnd()

Overrides:

performActionStart(action)

Parameters:
Name Type Description
action RPG.Enemy.Action
Overrides:

performCollapse()

Overrides:

performCounter()

Perform counter motion.
Inherited From:

performDamage()

Overrides:

performEvasion()

Perform evasion motion.
Inherited From:

performMagicEvasion()

Perform magic evasion motion.
Inherited From:

performMiss()

Perform miss motion.
Inherited From:

performRecovery()

Perform recovery motion.
Inherited From:

performReflection()

Performs the reflect motion.
Inherited From:

performSubstitute(target)

Perform substitute motion with the specified game battler.
Parameters:
Name Type Description
target Game_Battler
Inherited From:

recoverAll()

Recovers the battler from all states and restores the battler to maximum hp and mp.
Inherited From:

refresh()

Refreshes the battler.
Inherited From:

regenerateAll()

Handler for when battle has started.
Inherited From:

regenerateHp()

Has the battler regenerate hp based on their hp regen.
Inherited From:

regenerateMp()

Has the battler regenerate mp based on their mp regen.
Inherited From:

regenerateTp()

Has the battler regenerate tp based on their tp regen.
Inherited From:

removeAllBuffs()

Removes all buffs from the battler.
Inherited From:

removeBattleStates()

Inherited From:

removeBuff(paramId)

Parameters:
Name Type Description
paramId Number
Inherited From:

removeBuffsAuto()

Inherited From:

removeCurrentAction()

Removes the current battler action.
Inherited From:

removeState(stateId)

Removes the specified state given the state id.
Parameters:
Name Type Description
stateId Number
Inherited From:

removeStatesAuto(timing)

Parameters:
Name Type Description
timing Number
Inherited From:

removeStatesByDamage()

Inherited From:

requestEffect(effectType)

Parameters:
Name Type Description
effectType String
Inherited From:

requestMotion(motionType)

Request the specified motion on the game battler.
Parameters:
Name Type Description
motionType String
Inherited From:

requestMotionRefresh()

Inherited From:

resetStateCounts(stateId)

Resets the state count of the specified state, given the state id.
Parameters:
Name Type Description
stateId Number
Inherited From:

restriction() → {Number}

Returns the number of the restriction.
Inherited From:
Returns:
Type
Number

result() → {Game_ActionResult}

Returns the battler action result.
Inherited From:
Returns:
Type
Game_ActionResult

revive()

Revives the battler.
Inherited From:

screenX() → {Number}

Returns enemy screen X coordinate.
Returns:
Type
Number

screenY() → {Number}

Returns enemy screen Y position.
Returns:
Type
Number

select()

Inherited From:

selectAction(actionList, ratingZero) → {RPG.Enemy.Action}

Parameters:
Name Type Description
actionList Array.<RPG.Enemy.Action>
ratingZero Number
Returns:
Type
RPG.Enemy.Action

selectAllActions(actionList)

Parameters:
Name Type Description
actionList Array.<RPG.Enemy.Action>

setAction(index, action)

Sets the action at the specified index for the battler.
Parameters:
Name Type Description
index Number
action Game_Action
Inherited From:

setActionState(actionState)

Parameters:
Name Type Description
actionState String
Inherited From:

setHp(hp)

Sets the battler hp.
Parameters:
Name Type Description
hp Number
Inherited From:

setLastTarget(target)

Parameters:
Name Type Description
target Game_Battler
Inherited From:

setLetter(letter)

Parameters:
Name Type Description
letter String

setMp(mp)

Sets the battler mp.
Parameters:
Name Type Description
mp Number
Inherited From:

setPlural(plural)

Parameters:
Name Type Description
plural Boolean

setTp(tp)

Sets the battler tp.
Parameters:
Name Type Description
tp Number
Inherited From:

setup(enemyId, x, y)

Parameters:
Name Type Description
enemyId Number
x Number
y Number

shiftAnimation() → {MV.BattlerAnimation}

Shifts the battler animation.
Inherited From:
Returns:
Type
MV.BattlerAnimation

skillMpCost(skill) → {Number}

Returns the mp cost of the skill.
Parameters:
Name Type Description
skill RPG.Skill
Inherited From:
Returns:
Type
Number

skillTpCost(skill) → {Number}

Returns the tp cost of the skill.
Parameters:
Name Type Description
skill RPG.Skill
Inherited From:
Returns:
Type
Number

slotType() → {Number}

Returns the battler slot type of a trait.
Inherited From:
Returns:
Type
Number

sortStates()

Sorts the states attached to the battler.
Inherited From:

sparam(sparamId) → {Number}

Parameters:
Name Type Description
sparamId Number
Inherited From:
Returns:
Type
Number

specialFlag(flagId) → {Boolean}

Parameters:
Name Type Description
flagId Number
Inherited From:
Returns:
Type
Boolean

speed() → {Number}

Returns the speed of the battler.
Inherited From:
Returns:
Type
Number

startAnimation(animationId, mirror, delay)

Starts the specified animation, given the animation id on the battler.
Parameters:
Name Type Description
animationId Number
mirror Boolean
delay Number
Inherited From:

startDamagePopup()

Starts a damage pop up on the battler.
Inherited From:

startWeaponAnimation(weaponImageId)

Starts the weapon animation on te battler given a weapon id.
Parameters:
Name Type Description
weaponImageId Number
Inherited From:

stateIcons() → {Array.<number>}

Returns the array of state icons attached to the battler; this is determined by the active states on the battler.
Inherited From:
Returns:
Type
Array.<number>

stateMotionIndex() → {Number}

Inherited From:
Returns:
Type
Number

stateOverlayIndex() → {Number}

Inherited From:
Returns:
Type
Number

stateRate(stateId) → {Number}

Parameters:
Name Type Description
stateId Number
Inherited From:
Returns:
Type
Number

stateResistSet() → {Array.<number>}

Inherited From:
Returns:
Type
Array.<number>

states() → {Array.<RPG.State>}

Returns the states applied to the battler.
Inherited From:
Returns:
Type
Array.<RPG.State>

tpRate() → {Number}

Returns the percentage of the battler's tp left as a float.
Inherited From:
Returns:
Type
Number

traitObjects() → {*}

Overrides:
Returns:
RPG.Trait ?
Type
*

traits(code) → {Array.<RPG.Trait>}

Parameters:
Name Type Description
code Number
Inherited From:
Returns:
Type
Array.<RPG.Trait>

traitsPi(code, id) → {Number}

Parameters:
Name Type Description
code Number
id Number
Inherited From:
Returns:
Type
Number

traitsSet(code) → {Array.<number>}

Parameters:
Name Type Description
code Number
Inherited From:
Returns:
Type
Array.<number>

traitsSum(code, id) → {Number}

Parameters:
Name Type Description
code Number
id Number
Inherited From:
Returns:
Type
Number

traitsSumAll(code) → {Number}

Parameters:
Name Type Description
code Number
Inherited From:
Returns:
Type
Number

traitsWithId(code, id) → {Array.<RPG.Trait>}

Parameters:
Name Type Description
code Number
id Number
Inherited From:
Returns:
Type
Array.<RPG.Trait>

transform(enemyId)

Transform the enemy into another enemy based on id.
Parameters:
Name Type Description
enemyId Number

updateBuffTurns()

Updates the buff turns on battler.
Inherited From:

updateStateTurns()

Inherited From:

useItem(item)

Has theb attler use the given item.
Parameters:
Name Type Description
item RPG.UsableItem
Inherited From:

weaponImageId() → {Number}

Returns the weapon image id.
Inherited From:
Returns:
Type
Number

xparam(xparamId) → {Number}

Parameters:
Name Type Description
xparamId Number
Inherited From:
Returns:
Type
Number