Class: Game_ActionResult

Game_ActionResult

new Game_ActionResult()

The game object class for a result of a battle action. For convenience, all member variables in this class are public.

Methods

addedStateObjects()Array.<Object>

Get added state data objects
Returns:
TypeDescription
Array.<Object>The data objects for added states
Clear the action result
Initialize the action result object

isBuffAdded(paramId)boolean

Check if the given param has a buff added
NameTypeDescription
paramIdnumberThe id of the param to check for buff adding
Returns:
TypeDescription
booleanTrue if added

isBuffRemoved(paramId)boolean

Check if the given param has a buff removed
NameTypeDescription
paramIdnumberThe id of the param to check for buff removal
Returns:
TypeDescription
booleanTrue if removed

isDebuffAdded(paramId)boolean

Check if the given param has a debuff added
NameTypeDescription
paramIdnumberThe id of the param to check for debuff adding
Returns:
TypeDescription
booleanTrue if added
Check if the result was a hit
Returns:
TypeDescription
booleanTrue if hit

isStateAdded(stateId)boolean

Check if the given state is added
NameTypeDescription
stateIdnumberThe id of the state to check for adding
Returns:
TypeDescription
booleanTrue if added

isStateRemoved(stateId)boolean

Check if the given state is removed
NameTypeDescription
stateIdnumberThe id of the state to check for removal
Returns:
TypeDescription
booleanTrue if removed

isStatusAffected()boolean

Check if any status effects
Returns:
TypeDescription
booleanTrue if any status effects exist

pushAddedBuff(paramId)

Add the given param to the added buffs
NameTypeDescription
paramIdnumberThe id of the param to add a buff for

pushAddedDebuff(paramId)

Add the given param to the added debuffs
NameTypeDescription
paramIdnumberThe id of the param to add a debuff for

pushAddedState(stateId)

Add the state id to the added states list
NameTypeDescription
stateIdnumberThe id of the state to add

pushRemovedBuff(paramId)

Remove the given param from the added buffs
NameTypeDescription
paramIdnumberThe id of the param to remove a buff for

pushRemovedState(stateId)

Add the state id to the removed states list
NameTypeDescription
stateIdnumberThe id of the state to remove

removedStateObjects()Array.<Object>

Get removed state data objects
Returns:
TypeDescription
Array.<Object>The data objects for removed states