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

PGMV - The Community-Driven Plugin Library for RPG Maker MV

MV plugins

MNKR Last Action Data - MNKR_LastActionData.js

Plugin desc : You can assign the most recent action data to a variable.

License : MIT License

Author : munokura

Website : https://github.com/munokura/MNKR-MV-plugins/blob/master/MNKR_LastActionData.js

Desc page : https://raw.githubusercontent.com/munokura/MNKR-MV-plugins/master/MNKR_LastActionData.js

Download Page : https://raw.githubusercontent.com/munokura/MNKR-MV-plugins/master/MNKR_LastActionData.js

File name : MNKR_LastActionData.js

Help of plugin :

@target MV
@url https://raw.githubusercontent.com/munokura/MNKR-MV-plugins/master/MNKR_LastActionData.js
@plugindesc You can assign the most recent action data to a variable.
@author munokura
@license MIT License

@help
You can assign the most recent action data to a variable.

--Plugin Command---

MNKR_LastActionData Variable ID Data Type

--Variable ID
The numeric value is the variable ID.

--Data Type
Skill / S - ID of the most recently used skill
Item / I - ID of the most recently used item
ActionActor / AA - ID of the actor who performed the most recent action
ActionEnemy / AE - Index of the enemy character who performed the most recent
action
TargetActor / TA - Index of the enemy character who performed the most recent
action
TargetEnemy / TE - Index of the enemy character who was targeted most recently

Usage Example
MNKR_LastActionData 1 AA
Effect: Assigns the ID of the actor who performed the most recent action to
variable ID1.

---Script---

Assign the following script using "Variable Operation."

- ID of the most recently used skill
$gameTemp.lastActionData(0)

- ID of the most recently used item
$gameTemp.lastActionData(1)

- ID of the actor who performed the most recently used action
$gameTemp.lastActionData(2)

- Index of the most recently used enemy character
$gameTemp.lastActionData(3)

- ID of the most recently targeted actor
$gameTemp.lastActionData(4)

- Index of the most recently targeted enemy character
$gameTemp.lastActionData(5)

Terms of Use:
MIT License.
http://opensource.org/licenses/mit-license.php
Modification and redistribution are permitted without permission from the
author, and there are no restrictions on use (commercial, 18+, etc.).

スポンサードリンク

-MV plugins

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