RMMV Removing Item Event When Another Plug-In Menu Closes

normad88

Warper
Member
Joined
Jul 21, 2013
Messages
1
Reaction score
0
First Language
English
Primarily Uses
Hello all,

A friend of mine and I are creating a game that utilizes a crafting system (Thank you Szyu for your amazing plug-in). We want to be able to allow others to view the crafting recipes anytime, but only craft the items at crafting stations (not in the menu). The workaround that we found on the forums for this is to add a "crafting station" item and add the item to the recipe of the items to be crafted. Then, when players activate the physical crafting station on the map, an event would add the "crafting station" item to the inventory, satisfying the recipe. However, we are wanting to add an event to remove the crafting station item upon the crafting station menu closing.

Does anybody know of a good way to do this? I attempted to use Yanfly's Utility Common Events plug-in, but that only works for the menu of the game, not for other plug-in's menus.

Thank you!
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
32,931
Reaction score
8,256
First Language
German
Primarily Uses
RMMV
usually parallel processes are stopped while any screen is open, because parallel only work on the map. This can be used to run events directly after a screen closes, IF you can activate the switch for the event at the same time as opening the screen, or on the screen itself.

I don't know if it will work with your crafting screen - that is what you have to experiment.
I usually use this for the battlescreen, to run an event directly after the battle has ended on the map.

one common event parallel process conditioned on a switch, that turn off this switch at the end of its process (so it only runs once)
and activating the switch in a troop event even at the beginning of the battle still means that the common event waits until the battlescreen is closed before executing.
 

Latest Threads

Latest Posts

Latest Profile Posts

Playing my game to improve my game. (Totally not procrastinating)
Hope he recovers fast :|
Looks like it's functional:
It's a common thing to forget eating &drinking while you are working concentrated, right?
If I had discovered RPG-Maker before moving together with my girlfriend, I'd have died of dehydration a long time ago.
Ami
trying to change my picture & got screwed up...

Forum statistics

Threads
112,498
Messages
1,068,705
Members
146,172
Latest member
kamster94
Top