Class: Game_Action

Game_Action()

new Game_Action()

Game_Action The game object class representing a battle action.
Properties:
Name Type Description
EFFECT_RECOVER_HP Number [static]
EFFECT_RECOVER_MP Number [static]
EFFECT_GAIN_TP Number [static]
EFFECT_ADD_STATE Number [static]
EFFECT_REMOVE_STATE Number [static]
EFFECT_ADD_BUFF Number [static]
EFFECT_ADD_DEBUFF Number [static]
EFFECT_REMOVE_BUFF Number [static]
EFFECT_REMOVE_DEBUFF Number [static]
EFFECT_SPECIAL Number [static]
EFFECT_GROW Number [static]
EFFECT_LEARN_SKILL Number [static]
EFFECT_COMMON_EVENT Number [static]
SPECIAL_EFFECT_ESCAPE Number [static]
HITTYPE_CERTAIN Number [static]
HITTYPE_PHYSICAL Number [static]
HITTYPE_MAGICAL Number [static]
_subjectActorId Number
_subjectEnemyIndex Number
_targetIndex Number
_forcing Boolean
_item Game_Item

Methods

(static) initialize(subject, forcing)

Parameters:
Name Type Description
subject Game_Battler
forcing Boolean

apply(target)

Parameters:
Name Type Description
target Game_Battler

applyCritical(damage) → {Number}

Parameters:
Name Type Description
damage Number
Returns:
Type
Number

applyGlobal()

applyGuard(damage, target) → {Number}

Parameters:
Name Type Description
damage Number
target Game_Battler
Returns:
Type
Number

applyItemEffect(target, effect)

Parameters:
Name Type Description
target Game_Battler
effect RPG.Effect

applyItemUserEffect(target)

Parameters:
Name Type Description
target Game_Battler

applyVariance(damage, variance) → {Number}

Parameters:
Name Type Description
damage Number
variance Number
Returns:
Type
Number

calcElementRate(target) → {Number}

Parameters:
Name Type Description
target Game_Battler
Returns:
Type
Number

checkDamageType(list) → {Boolean}

Parameters:
Name Type Description
list Array.<Number>
Returns:
Type
Boolean

checkItemScope(list) → {Boolean}

Parameters:
Name Type Description
list Array.<Number>
Returns:
Type
Boolean

clear()

confusionTarget() → {Game_Battler}

Returns:
Type
Game_Battler

decideRandomTarget()

elementsMaxRate(target, elements) → {Number}

Parameters:
Name Type Description
target Game_Battler
elements Array.<Number>
Returns:
Type
Number

evalDamageFormula(target) → {Number}

Parameters:
Name Type Description
target Game_Battler
Returns:
Type
Number

evaluate() → {Number}

Returns:
Type
Number

evaluateWithTarget(target) → {Number}

Parameters:
Name Type Description
target Game_Battler
Returns:
Type
Number

executeDamage(target, value)

Parameters:
Name Type Description
target Game_Battler
value Number

executeHpDamage(target, value)

Parameters:
Name Type Description
target Game_Battler
value Number

executeMpDamage(target, value)

Parameters:
Name Type Description
target Game_Battler
value Number

friendsUnit() → {Game_Unit}

Returns:
Type
Game_Unit

gainDrainedHp(value)

Parameters:
Name Type Description
value Number

gainDrainedMp(value)

Parameters:
Name Type Description
value Number

hasItemAnyValidEffects(target) → {Boolean}

Parameters:
Name Type Description
target Game_Battler
Returns:
Type
Boolean

isAttack() → {Boolean}

Returns:
Type
Boolean

isCertainHit() → {Boolean}

Returns:
Type
Boolean

isDamage() → {Boolean}

Returns:
Type
Boolean

isDrain() → {Boolean}

Returns:
Type
Boolean

isForAll() → {Boolean}

Returns:
Type
Boolean

isForDeadFriend() → {Boolean}

Returns:
Type
Boolean

isForFriend() → {Boolean}

Returns:
Type
Boolean

isForOne() → {Boolean}

Returns:
Type
Boolean

isForOpponent() → {Boolean}

Returns:
Type
Boolean

isForRandom() → {Boolean}

Returns:
Type
Boolean

isForUser() → {Boolean}

Returns:
Type
Boolean

isGuard() → {Boolean}

Returns:
Type
Boolean

isHpEffect() → {Boolean}

Returns:
Type
Boolean

isHpRecover() → {Boolean}

Returns:
Type
Boolean

isItem() → {Boolean}

Returns:
Type
Boolean

isMagical() → {Boolean}

Returns:
Type
Boolean

isMagicSkill() → {Boolean}

Returns:
Type
Boolean

isMpEffect() → {Boolean}

Returns:
Type
Boolean

isMpRecover() → {Boolean}

Returns:
Type
Boolean

isPhysical() → {Boolean}

Returns:
Type
Boolean

isRecover() → {Boolean}

Returns:
Type
Boolean

isSkill() → {Boolean}

Returns:
Type
Boolean

isValid() → {Boolean}

Returns:
Type
Boolean

item() → {RPG.UsableItem}

Returns:
Type
RPG.UsableItem

itemCnt(target) → {Number}

Parameters:
Name Type Description
target Game_Battler
Returns:
Type
Number

itemCri(target) → {Number}

Parameters:
Name Type Description
target Game_Battler
Returns:
Type
Number

itemEffectAddAttackState(target, effect)

Parameters:
Name Type Description
target Game_Battler
effect RPG.Effect

itemEffectAddBuff(target, effect)

Parameters:
Name Type Description
target Game_Battler
effect RPG.Effect

itemEffectAddDebuff(target, effect)

Parameters:
Name Type Description
target Game_Battler
effect RPG.Effect

itemEffectAddNormalState(target, effect)

Parameters:
Name Type Description
target Game_Battler
effect RPG.Effect

itemEffectAddState(target, effect)

Parameters:
Name Type Description
target Game_Battler
effect RPG.Effect

itemEffectCommonEvent(target, effect)

Parameters:
Name Type Description
target Game_Battler
effect RPG.Effect

itemEffectGainTp(target, effect)

Parameters:
Name Type Description
target Game_Battler
effect RPG.Effect

itemEffectGrow(target, effect)

Parameters:
Name Type Description
target Game_Battler
effect RPG.Effect

itemEffectLearnSkill(target, effect)

Parameters:
Name Type Description
target Game_Battler
effect RPG.Effect

itemEffectRecoverHp(target, effect)

Parameters:
Name Type Description
target Game_Battler
effect RPG.Effect

itemEffectRecoverMp(target, effect)

Parameters:
Name Type Description
target Game_Battler
effect RPG.Effect

itemEffectRemoveBuff(target, effect)

Parameters:
Name Type Description
target Game_Battler
effect RPG.Effect

itemEffectRemoveDebuff(target, effect)

Parameters:
Name Type Description
target Game_Battler
effect RPG.Effect

itemEffectRemoveState(target, effect)

Parameters:
Name Type Description
target Game_Battler
effect RPG.Effect

itemEffectSpecial(target, effect)

Parameters:
Name Type Description
target Game_Battler
effect RPG.Effect

itemEva(target) → {Number}

Parameters:
Name Type Description
target Game_Battler
Returns:
Type
Number

itemHit(target) → {Number}

Parameters:
Name Type Description
target Game_Battler
Returns:
Type
Number

itemMrf(target) → {Number}

Parameters:
Name Type Description
target Game_Battler
Returns:
Type
Number

itemTargetCandidates() → {Array.<Game_Battler>}

Returns:
Type
Array.<Game_Battler>

lukEffectRate(target) → {Number}

Parameters:
Name Type Description
target Game_Battler
Returns:
Type
Number

makeDamageValue(target, critical) → {Number}

Parameters:
Name Type Description
target Game_Battler
critical Boolean
Returns:
Type
Number

makeSuccess(target)

Parameters:
Name Type Description
target Game_Battler

makeTargets() → {Array.<Game_Battler>}

Returns:
Type
Array.<Game_Battler>

needsSelection() → {Boolean}

Returns:
Type
Boolean

numRepeats() → {Number}

Returns:
Type
Number

numTargets() → {Number}

Returns:
Type
Number

opponentsUnit() → {Game_Unit}

Returns:
Type
Game_Unit

prepare()

repeatTargets(targets) → {Array.<Game_Battler>}

Parameters:
Name Type Description
targets Array.<Game_Battler>
Returns:
Type
Array.<Game_Battler>

setAttack()

setConfusion()

setEnemyAction(action)

Parameters:
Name Type Description
action RPG.Enemy.Action

setGuard()

setItem(itemId)

Parameters:
Name Type Description
itemId Number

setItemObject(object)

Parameters:
Name Type Description
object RPG.UsableItem

setSkill(skillId)

Parameters:
Name Type Description
skillId Number

setSubject(subject)

Parameters:
Name Type Description
subject Game_Battler

setTarget(targetIndex)

Parameters:
Name Type Description
targetIndex Number

speed() → {Number}

Returns:
Type
Number

subject() → {Game_Battler}

Returns:
Type
Game_Battler

targetsForFriends() → {Array.<Game_Battler>}

Returns:
Type
Array.<Game_Battler>

targetsForOpponents() → {Array.<Game_Battler>}

Returns:
Type
Array.<Game_Battler>

testApply(target) → {Boolean}

Parameters:
Name Type Description
target Game_Battler
Returns:
Type
Boolean

testItemEffect(target, effect) → {Boolean}

Parameters:
Name Type Description
target Game_Battler
effect RPG.Effect
Returns:
Type
Boolean