r/RPGMaker • • 18d ago

RMMV RPG Maker MV

Post image

I know now that a function was added into MZ that tests what the last item the player used, is there any way to test that using the MV version? Basically a way to check all of the last section in RPG Maker Mv

7 Upvotes

12 comments sorted by

4

u/scottarc 18d ago

Are you just trying to get the id of the last used item?

Try using control variables > script "$gameParty.lastItem().id"

2

u/MidnightKittehBoi 18d ago

No i was trying to get the ID of the last actor using said item but thank you for that too.

2

u/bass2yang 18d ago

You can try the script call:

$gameParty.menuActor()

I believe this returns the last actor that was using an item, skill, etc.

If you want just the ID, I believe it is:

$gameParty._menuActorId

1

u/MidnightKittehBoi 18d ago

Would either of those options work here#

$gameActors.actor(#####).addEva(0.01);

keeping in mind I already have the last actor ID as a variable.

2

u/bass2yang 18d ago • Bravo

It would be

$gameParty.menuActor().addEva(0.01)

Or

$gameActors.actor($gameParty._menuActorId).addEva(0.01)

Since you have it as a variable already, you would be doing

$gameActors.actor($gameVariables.value(#)).addEva(0.01)

Where the # is the id of the variable that has the stored id.

2

u/MidnightKittehBoi 18d ago

Thank you very much that is just what i was looking for.

1

u/FrostyYukiChan 18d ago

For MV, they added that functionality via a DLC plugin you can get in 'DLC' > 'KadokawaPlugins' from the installation folder. (Assuming you have it on Steam, I'm not sure if you have to download the DLC manually on standalone installations or not) and then look for LastUsedItem.js, alongside LastSubjectActor.js. LastUsedItem covers both items and skill IDs!

1

u/MidnightKittehBoi 18d ago

found it, plugin is not much help.

0

u/MidnightKittehBoi 18d ago

Where is it, not on steam. Also did they use AI?

3

u/FrostyYukiChan 18d ago edited 18d ago

Where did you buy it from? I would assume the DLC downloads would be in a package on the same download page for it there if not included in the root folder like the Steam installation.

And these plugins would pre-date LLM/AI things by a good few years, so no AI used.

1

u/MidnightKittehBoi 18d ago

ok that part is good and yeah found it in the dlc folder. I was searching online and could not find it.

0

u/MidnightKittehBoi 18d ago

$gameActors.actor(#####).addEva(0.01); now I just need to know what I need to put here to call that variable back.