Class in reactor_objects_actions.js
Game_ActionResult
22 public functions in 4 groups · show internal (_) functions
Familiar territory. Game_ActionResult 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 1
| initialize() | Sets up a new instance. |
Checks (True / False) 11
| isStatusAffected() | Whether it is status affected. |
| isHit() | Whether it is hit. |
| isLanded() | Whether the item's effects were applied: a hit that dodged did not turn aside. |
| isStateAdded() | Whether it is state added. |
| isStateRenewed() | Whether an added state was one the battler already had, so only its turn count was reset. |
| isStateNewlyAdded() | Whether an added state was not on the battler when it landed. |
| isStateBlocked() | Whether addState was asked for this state and left the battler without it: resisted, restricted, dead, or tur… |
| isStateRemoved() | Whether it is state removed. |
| isBuffAdded() | Whether it is buff added. |
| isDebuffAdded() | Whether it is debuff added. |
| isBuffRemoved() | Whether it is buff removed. |
Actions 8
| clear() | Clear. |
| pushAddedState() | Push added state. |
| pushRenewedState() | Push renewed state. |
| pushBlockedState() | Push blocked state. |
| pushRemovedState() | Push removed state. |
| pushAddedBuff() | Push added buff. |
| pushAddedDebuff() | Push added debuff. |
| pushRemovedBuff() | Push removed buff. |
Other 2
| addedStateObjects() | Added state objects. |
| removedStateObjects() | Removed state objects. |
Setup & Creation
initialize
method sourceGame_ActionResult.prototype.initialize()
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
isStatusAffected
method sourceGame_ActionResult.prototype.isStatusAffected()
Whether it is status affected. (Same as the RPG Maker MZ method of this name.)
isHit
method sourceGame_ActionResult.prototype.isHit()
Whether it is hit. (Same as the RPG Maker MZ method of this name.)
isLanded
method sourceGame_ActionResult.prototype.isLanded()
Whether the item's effects were applied: a hit that dodged did not turn aside.
Details
Whether the item's effects were applied: a hit that dodged did not turn
aside. isHit is true for a dodged hit too -- its damage step ran, and that
is where it was turned aside, so its effects were skipped.
isStateAdded
method sourceGame_ActionResult.prototype.isStateAdded(stateId)
Whether it is state added. (Same as the RPG Maker MZ method of this name.)
isStateRenewed
method sourceGame_ActionResult.prototype.isStateRenewed(stateId)
Whether an added state was one the battler already had, so only its turn count was reset.
Details
Whether an added state was one the battler already had, so only its turn count was reset. isStateAdded is true either way; this tells them apart. Decided the first time this result records the state landing: one that arrived fresh stays fresh if the same action lands it again.
isStateNewlyAdded
method sourceGame_ActionResult.prototype.isStateNewlyAdded(stateId)
Whether an added state was not on the battler when it landed.
isStateBlocked
method sourceGame_ActionResult.prototype.isStateBlocked(stateId)
Whether addState was asked for this state and left the battler without it: resisted, restricted, dead, or turned away by a plugin in addNewState.
Details
Whether addState was asked for this state and left the battler without it: resisted, restricted, dead, or turned away by a plugin in addNewState. A chance roll that failed never reaches addState, so it is not listed here; nor is a state the battler still has from before.
isStateRemoved
method sourceGame_ActionResult.prototype.isStateRemoved(stateId)
Whether it is state removed. (Same as the RPG Maker MZ method of this name.)
isBuffAdded
method sourceGame_ActionResult.prototype.isBuffAdded(paramId)
Whether it is buff added. (Same as the RPG Maker MZ method of this name.)
isDebuffAdded
method sourceGame_ActionResult.prototype.isDebuffAdded(paramId)
Whether it is debuff added. (Same as the RPG Maker MZ method of this name.)
isBuffRemoved
method sourceGame_ActionResult.prototype.isBuffRemoved(paramId)
Whether it is buff removed. (Same as the RPG Maker MZ method of this name.)
Actions
clear
method sourceGame_ActionResult.prototype.clear()
Clear. (Same as the RPG Maker MZ method of this name.)
pushAddedState
method sourceGame_ActionResult.prototype.pushAddedState(stateId)
Push added state. (Same as the RPG Maker MZ method of this name.)
pushRenewedState
method sourceGame_ActionResult.prototype.pushRenewedState(stateId)
Push renewed state. (Same as the RPG Maker MZ method of this name.)
pushBlockedState
method sourceGame_ActionResult.prototype.pushBlockedState(stateId)
Push blocked state. (Same as the RPG Maker MZ method of this name.)
pushRemovedState
method sourceGame_ActionResult.prototype.pushRemovedState(stateId)
Push removed state. (Same as the RPG Maker MZ method of this name.)
pushAddedBuff
method sourceGame_ActionResult.prototype.pushAddedBuff(paramId)
Push added buff. (Same as the RPG Maker MZ method of this name.)
pushAddedDebuff
method sourceGame_ActionResult.prototype.pushAddedDebuff(paramId)
Push added debuff. (Same as the RPG Maker MZ method of this name.)
pushRemovedBuff
method sourceGame_ActionResult.prototype.pushRemovedBuff(paramId)
Push removed buff. (Same as the RPG Maker MZ method of this name.)
Other
addedStateObjects
method sourceGame_ActionResult.prototype.addedStateObjects()
Added state objects. (Same as the RPG Maker MZ method of this name.)
removedStateObjects
method sourceGame_ActionResult.prototype.removedStateObjects()
Removed state objects. (Same as the RPG Maker MZ method of this name.)