An open library of RPG Maker MZ plugins, powered by the community.

PGMZ - The Community-Driven Plugin Library for RPG Maker MZ

MZ plugins

Action Result Keep - ActionResultKeep.js

Plugin desc : Action result retention plugin

License : MIT License

Author : Triacontane

Website : https://triacontane.blogspot.com

Desc page : https://github.com/triacontane/RPGMakerMV/tree/mz_master/ActionResultKeep.js

Download Page : https://raw.githubusercontent.com/munokura/triacontane-MZ-plugins/refs/heads/main/ActionResultKeep.js

File name : ActionResultKeep.js

Help of plugin :

@target MZ
@url https://github.com/triacontane/RPGMakerMV/tree/mz_master/ActionResultKeep.js
@plugindesc Action result retention plugin
@author Triacontane
@license MIT License

@help
English Help Translator: munokura
This is an unofficial English translation of the plugin help,
created to support global RPG Maker users.
Feedback is welcome to improve translation quality
(see: https://github.com/munokura/triacontane-MZ-plugins ).
Original plugin by Triacontane.
Please check the latest official version at:
https://triacontane.blogspot.com
-----

ActionResultKeep.js

Keeps the user and result of the most recent action in dedicated variables.
You can reference this in common events called by skills, etc.
Execute the corresponding script for each.

- User
$gameTemp.lastSubject()
- Target
$gameTemp.lastTarget()
- Skill
$gameTemp.lastSkill()
- Action result (success or evasion check)
The plugin parameters are stored in the switches and variables.

This plugin requires the base plugin ”PluginCommonBase.js.”
”PluginCommonBase.js” is located in the following folder under the RPG Maker
MZ installation folder:
dlc/BasicResources/plugins/official

Terms of Use:
You may modify and redistribute this plugin without permission, and there are
no restrictions on its use (commercial, 18+, etc.).
This plugin is now yours.

@param flagResultList
@text Flag Result List
@desc The flag items from the action results are stored in the specified switch.
@type struct<FlagResult>[]
@default []

@param variableResultList
@text Numerical result list
@desc The numerical values and array items of the action results will be stored in the specified variables.
@type struct<VariableResult>[]
@default []

@param lastTargetActorId
@text Target actor ID variable
@desc This is the variable number that stores the target actor ID of the previous action.
@type variable
@default 0

@param lastTargetEnemyId
@text Target enemy ID variable
@desc This is the variable number that stores the target enemy ID of the previous action.
@type variable
@default 0

@param lastSubjectActorId
@text User actor ID variable
@desc This is the variable number that stores the actor ID of the user of the previous action.
@type variable
@default 0

@param lastSubjectEnemyId
@text User enemy ID variable
@desc This is the variable number that stores the enemy ID of the user of the previous action.
@type variable
@default 0

スポンサードリンク

-MZ plugins

Copyright© PGMZ - The Community-Driven Plugin Library for RPG Maker MZ , 2026 All Rights Reserved.