RPG Maker MZ

RPG Maker MZ

OmNom Sep 28, 2024 @ 7:34pm
Event trigger on item usage
I'm trying to start an event, something like 'Show Text' whenever I use a specific 1 time item from the inventory, I've googled, tried to find plugins but its so weirdly hard to find anything on this, anyone got any idea on how to make this work?

I'm also 1 day new into this so... don't mind me being an idiot and prolly missing something obvious
< >
Showing 1-4 of 4 comments
OmNom Sep 28, 2024 @ 10:06pm 
I did end up figuring this out! For anyone who sees this in the future on the desperate search for an answer, let me lead you down the right path

Search for "Item Use Plugin v1.0" in the workshop
Add it to your map, make an Event and add it trough "Advanced - Plugin Command"

From here assign it 2 Variables where it tells you to and 1 Switch you wont use for anything else.

Now all you need to do is have an 'if' condition related to a Variable corresponding to the ID of your item and category (If used) and there you go

Add as many if statements as you want and send it over to a Common Event like i did!

Gl out there and hope this help!
ZombieKidzRule! Sep 29, 2024 @ 3:45am 
Just an FYI that you don't even need a plugin for this. You can do this simply with having your Item call a Common Event upon use.

First you set the Last Item Used ID to a Variable. Then you set the Name of the Last Item Used to another Variable. Then you use the Variable that stored the name to show the Name in Show Text.

You could also have Conditional Branches in the Common Event based on the Item ID numbers that determine what text should be shown. So many items could call the same Common Event.

This is pretty easy to do without any plugins at all.

Here is a link to a YouTube tutorial that I made quite a ways back that uses this type of feature. It isn't exactly what you are trying to do, but the concepts are there.

https://www.youtube.com/watch?v=rcgccYMb6-0

Good luck on your journey of learning MZ and on your future projects!
what about say i want to show an image after said amount of item are collected how would you do this? ive tried
"Control Variables > Game Data > Item [X]" and
"Conditional Branch > Variable >= required number"
but it does nothing for me. so using item amounts as triggers, i wanted to use items as a type of gage because you need plugins to expand upon the existing base stats so health exp etc, figured this was an easier approach but i was wrong. any simple advice?
ZombieKidzRule! Dec 27, 2024 @ 2:38pm 
I could be misunderstanding you, but a simple way to track items collected is in whatever Event the item is added. Just make a Variable that tracks the item.

Every time you add the item, increase the Variable by 1. If you are able to remove the item somehow (sell, drop, store, whatever) then you decrease the Variable by 1.

Then you can check the value of the Variable and trigger whatever you want when the value is reached.
< >
Showing 1-4 of 4 comments
Per page: 1530 50