How to make using an item change variables during an event?

I'm trying to make an item that controls a variable during a scene. The item menu is called with

SceneManager.push(Scene_Item)

and I can select and use the item. The item's effect is a common event that adds to the variable. However, it doesn't do that.
The item is consumed, but the variable isn't changed.
Outside the scene the variable does change, but whenever I use it in the scene it does nothing.

The scene itself is also a common event since I plan this to happen more often and not being able to use said items would be a problem.
I'm trying to make an item that controls a variable during a scene. The item menu is called with

SceneManager.push(Scene_Item)

and I can select and use the item. The item's effect is a common event that adds to the variable. However, it doesn't do that.
The item is consumed, but the variable isn't changed.
Outside the scene the variable does change, but whenever I use it in the scene it does nothing.

The scene itself is also a common event since I plan this to happen more often and not being able to use said items would be a problem.
Can you show me how you've currently tried to implement this?
Can you show me how you've currently tried to implement this?
The item effects are the common event that changes the progress variable and the Use Item is how the item menu pops up. The main common event uses the variable only once at the end where it checks if it's at 100, but otherwise nothing in the main event changes it. You can use the item again after the event loops. Using health potions like this works, but this strangely doesn't.
Are you inside a menu screen or dialog box after you use the item? Sometimes events don't run until you exit out of the windows.

Edit: Ok, from the first post it looks like you are, so you'll need a plugin. I recommend Hakuen Studios Message Actions which will let you change a variable or run a common event from inside a message
Are you inside a menu screen or dialog box after you use the item? Sometimes events don't run until you exit out of the windows.

Edit: Ok, from the first post it looks like you are, so you'll need a plugin. I recommend Hakuen Studios Message Actions which will let you change a variable or run a common event from inside a message
I've been trying it out, but I don't know how it works. The tutorials included are bit too complex for me. I've seen games where a window with item selection appears at the top of the screen during dialog where you then select the item. It's not the same as the main item menu. Do you happen to know how that works? What plugin they might have used?
I've been trying it out, but I don't know how it works. The tutorials included are bit too complex for me. I've seen games where a window with item selection appears at the top of the screen during dialog where you then select the item. It's not the same as the main item menu. Do you happen to know how that works? What plugin they might have used?
You need to have a text message pop up to tie it into. In the text you put \PCE[11] for example to play common event 11. So a text message that says You used item.\PCE[x]
The text box can even have no text, just \PCE[x] and be transparent so the player doesn't see the text box
You need to have a text message pop up to tie it into. In the text you put \PCE[11] for example to play common event 11. So a text message that says You used item.\PCE[x]
The text box can even have no text, just \PCE[x] and be transparent so the player doesn't see the text box
So I can't have an item menu show up and work with this plugin? Isn't this just the same as selecting an item via choice and then manually setting the variables and removing the item after the choice?
I'm looking for a way to use an item menu that shows the items you currently have in the inventory and has the items working as they should.
So I can't have an item menu show up and work with this plugin? Isn't this just the same as selecting an item via choice and then manually setting the variables and removing the item after the choice?
I'm looking for a way to use an item menu that shows the items you currently have in the inventory and has the items working as they should.
Is there any particular reason you can't use the "Select Item" event command?
Is there any particular reason you can't use the "Select Item" event command?
My stupidy... 😩
How did I not see that...
Thanks. I'm fairly certain I would have never even seen that one.
My stupidy... 😩
How did I not see that...
Thanks. I'm fairly certain I would have never even seen that one.
They're only easy if you know the answer. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-using-an-item-change-variables-during-an-event.159293/