Class in reactor_objects_actions.js

Game_Action

133 public functions in 6 groups · show internal (_) functions

Everything here is tracked by Game Objects: the party, the map, its events.

Familiar territory. Game_Action keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.

Quick Reference

Setup & Creation 6

initialize() Sets up a new instance.
prepare() Prepare.
makeTargets() Makes the targets.
makeDamageValue() Makes the damage value.
installMultiElementShim() Let an element plugin see the list.
makeSuccess() Makes the success.

Getting Information 24

item() Item.
itemRepeats() Repeats is the fewest hits; a repeatsMax above it makes the count a range.
itemTargetCandidates() Item target candidates.
itemCnt() Item cnt.
itemMrf() Item mrf.
itemHit() Item hit.
itemEva() Item eva.
itemCri() Item cri.
calcElementRate() Calculates the element rate.
itemEffectRecoverHp() Item effect recover hp.
itemEffectRecoverMp() Item effect recover mp.
itemEffectGainTp() Item effect gain tp.
itemEffectAddState() Item effect add state.
itemEffectAddAttackState() Item effect add attack state.
itemEffectAddNormalState() Item effect add normal state.
itemEffectRemoveState() Item effect remove state.
itemEffectAddBuff() Item effect add buff.
itemEffectAddDebuff() Item effect add debuff.
itemEffectRemoveBuff() Item effect remove buff.
itemEffectRemoveDebuff() Item effect remove debuff.
itemEffectSpecial() Item effect special.
itemEffectGrow() Item effect grow.
itemEffectLearnSkill() Item effect learn skill.
itemEffectCommonEvent() Item effect common event.

Checks (True / False) 34

isSkill() Whether it is skill.
isItem() Whether it is item.
isForOpponent() The either-side and random-any scopes answer true to both isForOpponent and isForFriend: they really can reac…
isForFriend() Whether it is for friend.
isForEveryone() Whether it is for everyone.
isForAliveFriend() Whether it is for alive friend.
isForDeadFriend() Whether it is for dead friend.
isForUser() Whether it is for user.
isForOne() Whether it is for one.
isForRandom() Whether it is for random.
isForAll() Whether it is for all.
needsSelection() Whether it needs selection.
isForAnyone() True when the action may reach either side, the side being settled when the target is picked.
isForAnyoneFocusFriends() Which side an either-side scope opens its cursor on.
isForAnyoneFocusOpponents() Whether it is for anyone focus opponents.
isForOneSide() True when picking one battler picks that battler's entire living side.
isForRandomAny() True for the random scopes that draw from both sides at once, as distinct from scopes 3-6, which draw from op…
isForAllAlliesButUser() Whether it is for all allies but user.
isHpEffect() Whether it is hp effect.
isMpEffect() Whether it is mp effect.
isDamage() Whether it is damage.
isRecover() Whether it is recover.
isDrain() Whether it is drain.
isHpRecover() Whether it is hp recover.
isMpRecover() Whether it is mp recover.
isCertainHit() Whether it is certain hit.
isPhysical() Whether it is physical.
isMagical() Whether it is magical.
isAttack() Whether it is attack.
isGuard() Whether it is guard.
isMagicSkill() Whether it is magic skill.
isValid() Whether it is valid.
hasPlannedTargets() Whether it has the planned targets.
hasItemAnyValidEffects() Whether it has the item any valid effects.

Actions 28

clear() Clear.
setSubject() Sets the subject.
setEnemyAction() Sets the enemy action.
setAttack() Sets the attack.
setGuard() Sets the guard.
setSkill() Sets the skill.
setItem() Sets the item.
setItemObject() Sets the item object.
setTarget() Sets the target.
setTargetBattler() Records which battler was chosen along with which side it was on.
setConfusion() Sets the confusion.
setPlannedTargets() Sets the planned targets.
clearPlannedTargets() Clears the planned targets.
takePlannedTargets() Take planned targets.
apply() Apply.
executeSecondaryDamage() Apply the secondary channel to a target the primary has just hit, as a pass of its own through makeDamageValu…
applyCritical() Applies the critical.
applyVariance() Applies the variance.
applyGuard() Applies the guard.
executeDamage() Runs the damage.
executeHpDamage() Runs the hp damage.
executeMpDamage() Runs the mp damage.
gainDrainedHp() Gains the drained hp.
gainDrainedMp() Gains the drained mp.
applyItemEffect() Applies the item effect.
applyEffectStateTurns() Applies the effect state turns.
applyItemUserEffect() Applies the item user effect.
applyGlobal() Applies the global.

Updating & Drawing 3

updateLastUsed() Updates the last used each frame.
updateLastSubject() Updates the last subject each frame.
updateLastTarget() Updates the last target each frame.

Other 38

subject() Subject.
friendsUnit() Friends unit.
opponentsUnit() Opponents unit.
targetSideUnit() The unit holding the chosen target: the side recorded at selection time, or the side the scope opens on when…
numRepeats() Num repeats.
checkItemScope() Check item scope.
numTargets() Num targets.
checkDamageType() Check damage type.
decideRandomTarget() Decide random target.
speed() Speed.
repeatTargets() Repeat targets.
confusionTarget() Confusion target.
targetsForEveryone() Targets for everyone.
targetsForAnyone() The side was settled when the target was chosen, so resolve against that side and let the ordinary one-versus…
targetsForRandomAny() Each draw picks a side first, then a battler on it.
targetsForAlliesButUser() Targets for allies but user.
targetsForOpponents() Targets for opponents.
targetsForFriends() Targets for friends.
randomTargets() Random targets.
targetsForDead() Targets for dead.
targetsForAlive() Targets for alive.
targetsForDeadAndAlive() Targets for dead and alive.
evaluate() Evaluate.
evaluateBestSide() Scope 17 reaches one whole side: each side is totalled on its own and the better one is recorded, so the acti…
evaluateWithTarget() Evaluate with target.
testApply() Test apply.
testSecondaryRecover() A secondary Recover makes the action worth using, as a primary one does.
testLifeAndDeath() Test life and death.
testItemEffect() Test item effect.
secondaryDamage() Secondary damage.
damageTypeSign() Damage type sign.
evalDamageFormula() Eval damage formula.
elements() The elements this action carries.
elementsMaxRate() Elements max rate.
effectStateTurns() An Add State effect may say how long the state lasts, overriding the state's own Min/Max Turns for this one s…
effectBuffRate() An Add Buff or Add Debuff effect may say how strong the stack it adds is, instead of the standard rate: value…
effectGrowValue() A Grow effect's amount: value1, or a whole number drawn between value1 and value2 when value2 is set (RPG Mak…
lukEffectRate() Luk effect rate.

Setup & Creation

initialize

method source
Game_Action.prototype.initialize(subject, forcing)

Sets up a new instance. (Same as the RPG Maker MZ method of this name.)

prepare

method source
Game_Action.prototype.prepare()

Prepare. (Same as the RPG Maker MZ method of this name.)

makeTargets

method source
Game_Action.prototype.makeTargets()

Makes the targets. (Same as the RPG Maker MZ method of this name.)

makeDamageValue

method source
Game_Action.prototype.makeDamageValue(target, critical)

Makes the damage value. (Same as the RPG Maker MZ method of this name.)

installMultiElementShim

static source
Game_Action.installMultiElementShim()

Let an element plugin see the list.

Details

Let an element plugin see the list. VisuMZ_1_ElementStatusCore replaces elements() and calcElementRate outright, so a list in elementIds would be invisible to its Maximum/Minimum/Multiply/Additive/Average rulings and to reflect, pierce and absorb - but its elements() reads DataManager.getActionObjectElements(item) for the note-tag elements and de-duplicates afterwards, and that one function is a plain definition. Wrapping it after the plugins have loaded feeds the list into every ruling without touching the plugin. Inert when no such function exists; marked so a second boot cannot wrap it twice.

makeSuccess

method source
Game_Action.prototype.makeSuccess(target)

Makes the success. (Same as the RPG Maker MZ method of this name.)

Getting Information

item

method source
Game_Action.prototype.item()

Item. (Same as the RPG Maker MZ method of this name.)

itemRepeats

method source
Game_Action.prototype.itemRepeats()

Repeats is the fewest hits; a repeatsMax above it makes the count a range.

Details

Repeats is the fewest hits; a repeatsMax above it makes the count a range. The roll is made once and kept on the action, because numRepeats is read many times for one action - to lay out its targets, in AI scoring, and by plugins mid-action - and every read has to agree. It is keyed by the item, so giving the same action a different skill or item rolls again.

itemTargetCandidates

method source
Game_Action.prototype.itemTargetCandidates()

Item target candidates. (Same as the RPG Maker MZ method of this name.)

itemCnt

method source
Game_Action.prototype.itemCnt(target)

Item cnt. (Same as the RPG Maker MZ method of this name.)

itemMrf

method source
Game_Action.prototype.itemMrf(target)

Item mrf. (Same as the RPG Maker MZ method of this name.)

itemHit

method source
Game_Action.prototype.itemHit(/*target*/)

Item hit. (Same as the RPG Maker MZ method of this name.)

itemEva

method source
Game_Action.prototype.itemEva(target)

Item eva. (Same as the RPG Maker MZ method of this name.)

itemCri

method source
Game_Action.prototype.itemCri(target)

Item cri. (Same as the RPG Maker MZ method of this name.)

calcElementRate

method source
Game_Action.prototype.calcElementRate(target)

Calculates the element rate. (Same as the RPG Maker MZ method of this name.)

itemEffectRecoverHp

method source
Game_Action.prototype.itemEffectRecoverHp(target, effect)

Item effect recover hp. (Same as the RPG Maker MZ method of this name.)

itemEffectRecoverMp

method source
Game_Action.prototype.itemEffectRecoverMp(target, effect)

Item effect recover mp. (Same as the RPG Maker MZ method of this name.)

itemEffectGainTp

method source
Game_Action.prototype.itemEffectGainTp(target, effect)

Item effect gain tp. (Same as the RPG Maker MZ method of this name.)

itemEffectAddState

method source
Game_Action.prototype.itemEffectAddState(target, effect)

Item effect add state. (Same as the RPG Maker MZ method of this name.)

itemEffectAddAttackState

method source
Game_Action.prototype.itemEffectAddAttackState(target, effect)

Item effect add attack state. (Same as the RPG Maker MZ method of this name.)

itemEffectAddNormalState

method source
Game_Action.prototype.itemEffectAddNormalState(target, effect)

Item effect add normal state. (Same as the RPG Maker MZ method of this name.)

itemEffectRemoveState

method source
Game_Action.prototype.itemEffectRemoveState(target, effect)

Item effect remove state. (Same as the RPG Maker MZ method of this name.)

itemEffectAddBuff

method source
Game_Action.prototype.itemEffectAddBuff(target, effect)

Item effect add buff. (Same as the RPG Maker MZ method of this name.)

itemEffectAddDebuff

method source
Game_Action.prototype.itemEffectAddDebuff(target, effect)

Item effect add debuff. (Same as the RPG Maker MZ method of this name.)

itemEffectRemoveBuff

method source
Game_Action.prototype.itemEffectRemoveBuff(target, effect)

Item effect remove buff. (Same as the RPG Maker MZ method of this name.)

itemEffectRemoveDebuff

method source
Game_Action.prototype.itemEffectRemoveDebuff(target, effect)

Item effect remove debuff. (Same as the RPG Maker MZ method of this name.)

itemEffectSpecial

method source
Game_Action.prototype.itemEffectSpecial(target, effect)

Item effect special. (Same as the RPG Maker MZ method of this name.)

itemEffectGrow

method source
Game_Action.prototype.itemEffectGrow(target, effect)

Item effect grow. (Same as the RPG Maker MZ method of this name.)

itemEffectLearnSkill

method source
Game_Action.prototype.itemEffectLearnSkill(target, effect)

Item effect learn skill. (Same as the RPG Maker MZ method of this name.)

itemEffectCommonEvent

method source
Game_Action.prototype.itemEffectCommonEvent(/*target, effect*/)

Item effect common event. (Same as the RPG Maker MZ method of this name.)

Checks (True / False)

isSkill

method source
Game_Action.prototype.isSkill()

Whether it is skill. (Same as the RPG Maker MZ method of this name.)

isItem

method source
Game_Action.prototype.isItem()

Whether it is item. (Same as the RPG Maker MZ method of this name.)

isForOpponent

method source
Game_Action.prototype.isForOpponent()

The either-side and random-any scopes answer true to both isForOpponent and isForFriend: they really can reach either side, and this pair of predicates is what every consumer - the engine, action conditions, plugins - asks to learn who an action may touch.

Details

The either-side and random-any scopes answer true to both isForOpponent and isForFriend: they really can reach either side, and this pair of predicates is what every consumer - the engine, action conditions, plugins - asks to learn who an action may touch. makeTargets below is ordered to resolve them before either of these can steer the action onto one fixed side.

isForFriend

method source
Game_Action.prototype.isForFriend()

Whether it is for friend. (Same as the RPG Maker MZ method of this name.)

isForEveryone

method source
Game_Action.prototype.isForEveryone()

Whether it is for everyone. (Same as the RPG Maker MZ method of this name.)

isForAliveFriend

method source
Game_Action.prototype.isForAliveFriend()

Whether it is for alive friend. (Same as the RPG Maker MZ method of this name.)

isForDeadFriend

method source
Game_Action.prototype.isForDeadFriend()

Whether it is for dead friend. (Same as the RPG Maker MZ method of this name.)

isForUser

method source
Game_Action.prototype.isForUser()

Whether it is for user. (Same as the RPG Maker MZ method of this name.)

isForOne

method source
Game_Action.prototype.isForOne()

Whether it is for one. (Same as the RPG Maker MZ method of this name.)

isForRandom

method source
Game_Action.prototype.isForRandom()

Whether it is for random. (Same as the RPG Maker MZ method of this name.)

isForAll

method source
Game_Action.prototype.isForAll()

Whether it is for all. (Same as the RPG Maker MZ method of this name.)

needsSelection

method source
Game_Action.prototype.needsSelection()

Whether it needs selection. (Same as the RPG Maker MZ method of this name.)

isForAnyone

method source
Game_Action.prototype.isForAnyone()

True when the action may reach either side, the side being settled when the target is picked.

Details

True when the action may reach either side, the side being settled when the target is picked. Scope 17 is included: choosing a battler there chooses that battler's whole side.

isForAnyoneFocusFriends

method source
Game_Action.prototype.isForAnyoneFocusFriends()

Which side an either-side scope opens its cursor on.

Details

Which side an either-side scope opens its cursor on. Only the focus differs; both scopes can still reach every living battler.

isForAnyoneFocusOpponents

method source
Game_Action.prototype.isForAnyoneFocusOpponents()

Whether it is for anyone focus opponents. (Same as the RPG Maker MZ method of this name.)

isForOneSide

method source
Game_Action.prototype.isForOneSide()

True when picking one battler picks that battler's entire living side.

isForRandomAny

method source
Game_Action.prototype.isForRandomAny()

True for the random scopes that draw from both sides at once, as distinct from scopes 3-6, which draw from opponents only.

isForAllAlliesButUser

method source
Game_Action.prototype.isForAllAlliesButUser()

Whether it is for all allies but user. (Same as the RPG Maker MZ method of this name.)

isHpEffect

method source
Game_Action.prototype.isHpEffect()

Whether it is hp effect. (Same as the RPG Maker MZ method of this name.)

isMpEffect

method source
Game_Action.prototype.isMpEffect()

Whether it is mp effect. (Same as the RPG Maker MZ method of this name.)

isDamage

method source
Game_Action.prototype.isDamage()

Whether it is damage. (Same as the RPG Maker MZ method of this name.)

isRecover

method source
Game_Action.prototype.isRecover()

Whether it is recover. (Same as the RPG Maker MZ method of this name.)

isDrain

method source
Game_Action.prototype.isDrain()

Whether it is drain. (Same as the RPG Maker MZ method of this name.)

isHpRecover

method source
Game_Action.prototype.isHpRecover()

Whether it is hp recover. (Same as the RPG Maker MZ method of this name.)

isMpRecover

method source
Game_Action.prototype.isMpRecover()

Whether it is mp recover. (Same as the RPG Maker MZ method of this name.)

isCertainHit

method source
Game_Action.prototype.isCertainHit()

Whether it is certain hit. (Same as the RPG Maker MZ method of this name.)

isPhysical

method source
Game_Action.prototype.isPhysical()

Whether it is physical. (Same as the RPG Maker MZ method of this name.)

isMagical

method source
Game_Action.prototype.isMagical()

Whether it is magical. (Same as the RPG Maker MZ method of this name.)

isAttack

method source
Game_Action.prototype.isAttack()

Whether it is attack. (Same as the RPG Maker MZ method of this name.)

isGuard

method source
Game_Action.prototype.isGuard()

Whether it is guard. (Same as the RPG Maker MZ method of this name.)

isMagicSkill

method source
Game_Action.prototype.isMagicSkill()

Whether it is magic skill. (Same as the RPG Maker MZ method of this name.)

isValid

method source
Game_Action.prototype.isValid()

Whether it is valid. (Same as the RPG Maker MZ method of this name.)

hasPlannedTargets

method source
Game_Action.prototype.hasPlannedTargets()

Whether it has the planned targets. (Same as the RPG Maker MZ method of this name.)

hasItemAnyValidEffects

method source
Game_Action.prototype.hasItemAnyValidEffects(target)

Whether it has the item any valid effects. (Same as the RPG Maker MZ method of this name.)

Actions

clear

method source
Game_Action.prototype.clear()

Clear. (Same as the RPG Maker MZ method of this name.)

setSubject

method source
Game_Action.prototype.setSubject(subject)

Sets the subject. (Same as the RPG Maker MZ method of this name.)

setEnemyAction

method source
Game_Action.prototype.setEnemyAction(action)

Sets the enemy action. (Same as the RPG Maker MZ method of this name.)

setAttack

method source
Game_Action.prototype.setAttack()

Sets the attack. (Same as the RPG Maker MZ method of this name.)

setGuard

method source
Game_Action.prototype.setGuard()

Sets the guard. (Same as the RPG Maker MZ method of this name.)

setSkill

method source
Game_Action.prototype.setSkill(skillId)

Sets the skill. (Same as the RPG Maker MZ method of this name.)

setItem

method source
Game_Action.prototype.setItem(itemId)

Sets the item. (Same as the RPG Maker MZ method of this name.)

setItemObject

method source
Game_Action.prototype.setItemObject(object)

Sets the item object. (Same as the RPG Maker MZ method of this name.)

setTarget

method source
Game_Action.prototype.setTarget(targetIndex)

Sets the target. (Same as the RPG Maker MZ method of this name.)

setTargetBattler

method source
Game_Action.prototype.setTargetBattler(battler)

Records which battler was chosen along with which side it was on.

Details

Records which battler was chosen along with which side it was on. A target index cannot carry that on its own - index 0 is both the first actor and the first enemy - so the either-side scopes need the side stored beside it. Separate from setTarget so every existing caller keeps its meaning.

setConfusion

method source
Game_Action.prototype.setConfusion()

Sets the confusion. (Same as the RPG Maker MZ method of this name.)

setPlannedTargets

method source
Game_Action.prototype.setPlannedTargets(targets)

Sets the planned targets. (Same as the RPG Maker MZ method of this name.)

clearPlannedTargets

method source
Game_Action.prototype.clearPlannedTargets()

Clears the planned targets. (Same as the RPG Maker MZ method of this name.)

takePlannedTargets

method source
Game_Action.prototype.takePlannedTargets()

Take planned targets. (Same as the RPG Maker MZ method of this name.)

apply

method source
Game_Action.prototype.apply(target)

Apply. (Same as the RPG Maker MZ method of this name.)

executeSecondaryDamage

method source
Game_Action.prototype.executeSecondaryDamage(target, primaryValue, critical)

Apply the secondary channel to a target the primary has just hit, as a pass of its own through makeDamageValue and executeDamage.

Details

Apply the secondary channel to a target the primary has just hit, as a pass of its own through makeDamageValue and executeDamage. For that pass the item's damage type (and, by formula, its formula) are the secondary's, so every check and every wrapper sees an ordinary action of one type: an undead reversal, a barrier or a break shield judges each resource by itself. Plugins read damage.type and damage.formula off the item directly, which is why the fields themselves change rather than a method answering differently; both are put back before this returns.

By rate, the amount is the primary's value scaled, carrying its sign, so a primary an element absorbed turns the secondary round with it; element, critical and variance are already in that number and are not applied again. Returns the value executed, or null when there was nothing to do.

applyCritical

method source
Game_Action.prototype.applyCritical(damage)

Applies the critical. (Same as the RPG Maker MZ method of this name.)

applyVariance

method source
Game_Action.prototype.applyVariance(damage, variance)

Applies the variance. (Same as the RPG Maker MZ method of this name.)

applyGuard

method source
Game_Action.prototype.applyGuard(damage, target)

Applies the guard. (Same as the RPG Maker MZ method of this name.)

executeDamage

method source
Game_Action.prototype.executeDamage(target, value)

Runs the damage. (Same as the RPG Maker MZ method of this name.)

executeHpDamage

method source
Game_Action.prototype.executeHpDamage(target, value)

Runs the hp damage. (Same as the RPG Maker MZ method of this name.)

executeMpDamage

method source
Game_Action.prototype.executeMpDamage(target, value)

Runs the mp damage. (Same as the RPG Maker MZ method of this name.)

gainDrainedHp

method source
Game_Action.prototype.gainDrainedHp(value)

Gains the drained hp. (Same as the RPG Maker MZ method of this name.)

gainDrainedMp

method source
Game_Action.prototype.gainDrainedMp(value)

Gains the drained mp. (Same as the RPG Maker MZ method of this name.)

applyItemEffect

method source
Game_Action.prototype.applyItemEffect(target, effect)

Applies the item effect. (Same as the RPG Maker MZ method of this name.)

applyEffectStateTurns

method source
Game_Action.prototype.applyEffectStateTurns(target, stateId, effect)

Applies the effect state turns. (Same as the RPG Maker MZ method of this name.)

applyItemUserEffect

method source
Game_Action.prototype.applyItemUserEffect(/*target*/)

Applies the item user effect. (Same as the RPG Maker MZ method of this name.)

applyGlobal

method source
Game_Action.prototype.applyGlobal()

Applies the global. (Same as the RPG Maker MZ method of this name.)

Updating & Drawing

updateLastUsed

method source
Game_Action.prototype.updateLastUsed()

Updates the last used each frame. (Same as the RPG Maker MZ method of this name.)

updateLastSubject

method source
Game_Action.prototype.updateLastSubject()

Updates the last subject each frame. (Same as the RPG Maker MZ method of this name.)

updateLastTarget

method source
Game_Action.prototype.updateLastTarget(target)

Updates the last target each frame. (Same as the RPG Maker MZ method of this name.)

Other

subject

method source
Game_Action.prototype.subject()

Subject. (Same as the RPG Maker MZ method of this name.)

friendsUnit

method source
Game_Action.prototype.friendsUnit()

Friends unit. (Same as the RPG Maker MZ method of this name.)

opponentsUnit

method source
Game_Action.prototype.opponentsUnit()

Opponents unit. (Same as the RPG Maker MZ method of this name.)

targetSideUnit

method source
Game_Action.prototype.targetSideUnit()

The unit holding the chosen target: the side recorded at selection time, or the side the scope opens on when nothing was recorded (an AI user, or a save written before the side was tracked).

numRepeats

method source
Game_Action.prototype.numRepeats()

Num repeats. (Same as the RPG Maker MZ method of this name.)

checkItemScope

method source
Game_Action.prototype.checkItemScope(list)

Check item scope. (Same as the RPG Maker MZ method of this name.)

numTargets

method source
Game_Action.prototype.numTargets()

Num targets. (Same as the RPG Maker MZ method of this name.)

checkDamageType

method source
Game_Action.prototype.checkDamageType(list)

Check damage type. (Same as the RPG Maker MZ method of this name.)

decideRandomTarget

method source
Game_Action.prototype.decideRandomTarget()

Decide random target. (Same as the RPG Maker MZ method of this name.)

speed

method source
Game_Action.prototype.speed()

Speed. (Same as the RPG Maker MZ method of this name.)

repeatTargets

method source
Game_Action.prototype.repeatTargets(targets)

Repeat targets. (Same as the RPG Maker MZ method of this name.)

confusionTarget

method source
Game_Action.prototype.confusionTarget()

Confusion target. (Same as the RPG Maker MZ method of this name.)

targetsForEveryone

method source
Game_Action.prototype.targetsForEveryone()

Targets for everyone. (Same as the RPG Maker MZ method of this name.)

targetsForAnyone

method source
Game_Action.prototype.targetsForAnyone()

The side was settled when the target was chosen, so resolve against that side and let the ordinary one-versus-all split take over from there.

targetsForRandomAny

method source
Game_Action.prototype.targetsForRandomAny()

Each draw picks a side first, then a battler on it.

Details

Each draw picks a side first, then a battler on it. Drawing from the two units combined would instead favour whichever side has more members left.

targetsForAlliesButUser

method source
Game_Action.prototype.targetsForAlliesButUser()

Targets for allies but user. (Same as the RPG Maker MZ method of this name.)

targetsForOpponents

method source
Game_Action.prototype.targetsForOpponents()

Targets for opponents. (Same as the RPG Maker MZ method of this name.)

targetsForFriends

method source
Game_Action.prototype.targetsForFriends()

Targets for friends. (Same as the RPG Maker MZ method of this name.)

randomTargets

method source
Game_Action.prototype.randomTargets(unit)

Random targets. (Same as the RPG Maker MZ method of this name.)

targetsForDead

method source
Game_Action.prototype.targetsForDead(unit)

Targets for dead. (Same as the RPG Maker MZ method of this name.)

targetsForAlive

method source
Game_Action.prototype.targetsForAlive(unit)

Targets for alive. (Same as the RPG Maker MZ method of this name.)

targetsForDeadAndAlive

method source
Game_Action.prototype.targetsForDeadAndAlive(unit)

Targets for dead and alive. (Same as the RPG Maker MZ method of this name.)

evaluate

method source
Game_Action.prototype.evaluate()

Evaluate. (Same as the RPG Maker MZ method of this name.)

evaluateBestSide

method source
Game_Action.prototype.evaluateBestSide()

Scope 17 reaches one whole side: each side is totalled on its own and the better one is recorded, so the action is not aimed at the side it opens on when the other is the one worth using it on.

evaluateWithTarget

method source
Game_Action.prototype.evaluateWithTarget(target)

Evaluate with target. (Same as the RPG Maker MZ method of this name.)

testApply

method source
Game_Action.prototype.testApply(target)

Test apply. (Same as the RPG Maker MZ method of this name.)

testSecondaryRecover

method source
Game_Action.prototype.testSecondaryRecover(target)

A secondary Recover makes the action worth using, as a primary one does.

testLifeAndDeath

method source
Game_Action.prototype.testLifeAndDeath(target)

Test life and death. (Same as the RPG Maker MZ method of this name.)

testItemEffect

method source
Game_Action.prototype.testItemEffect(target, effect)

Test item effect. (Same as the RPG Maker MZ method of this name.)

secondaryDamage

method source
Game_Action.prototype.secondaryDamage()

Secondary damage. (Same as the RPG Maker MZ method of this name.)

damageTypeSign

static source
Game_Action.damageTypeSign(type)

Damage type sign. (Same as the RPG Maker MZ method of this name.)

evalDamageFormula

method source
Game_Action.prototype.evalDamageFormula(target)

Eval damage formula. (Same as the RPG Maker MZ method of this name.)

elements

method source
Game_Action.prototype.elements()

The elements this action carries.

Details

The elements this action carries. damage.elementIds holds two or more (the editor writes it only then, with elementId mirroring its first entry); otherwise the one elementId, or the user's own attack elements for Normal Attack (-1). For every entry authored before lists existed this is exactly the branch calcElementRate used to take, and the name is the one plugins ask an action for its elements by.

elementsMaxRate

method source
Game_Action.prototype.elementsMaxRate(target, elements)

Elements max rate. (Same as the RPG Maker MZ method of this name.)

effectStateTurns

static source
Game_Action.effectStateTurns(effect)

An Add State effect may say how long the state lasts, overriding the state's own Min/Max Turns for this one skill or item: value2 is the turns (0, which every RPG Maker-authored effect carries, keeps the state's default) and an optional value3 is the upper end of a range.

Details

An Add State effect may say how long the state lasts, overriding the state's own Min/Max Turns for this one skill or item: value2 is the turns (0, which every RPG Maker-authored effect carries, keeps the state's default) and an optional value3 is the upper end of a range. Applied after addState, so the count it wrote is what gets replaced.

effectBuffRate

static source
Game_Action.effectBuffRate(effect)

An Add Buff or Add Debuff effect may say how strong the stack it adds is, instead of the standard rate: value2 is that rate (0.4 for 40%), and 0 -- which every RPG Maker-authored effect carries -- keeps the standard.

Details

An Add Buff or Add Debuff effect may say how strong the stack it adds is, instead of the standard rate: value2 is that rate (0.4 for 40%), and 0 -- which every RPG Maker-authored effect carries -- keeps the standard. Always a magnitude; Add Debuff's own direction makes it a reduction.

effectGrowValue

static source
Game_Action.effectGrowValue(effect)

A Grow effect's amount: value1, or a whole number drawn between value1 and value2 when value2 is set (RPG Maker writes 0 there).

Details

A Grow effect's amount: value1, or a whole number drawn between value1 and value2 when value2 is set (RPG Maker writes 0 there). Either end may be the larger.

lukEffectRate

method source
Game_Action.prototype.lukEffectRate(target)

Luk effect rate. (Same as the RPG Maker MZ method of this name.)