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
33,341
Reaction score
8,388
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

illuminatigirl.png
Illuminati may be just a cover-up for the actual secret society of Illuminaughty. :kaojoy:
Got distracted... again. So now I'm on project.... 5? 6? I can't even remember off the top of my head how many plugins I have in the works. Though I blame the latest two on a coding youtuber I watch occasionally. He codes in C++ but walks through the process well enough that it inspires me to do similar things for JS plugins. So... blame him for my lack of activity. lol
It's my birthday today! Mom and I went to my favorite Japanese restaurant for lunch and they gave me a Japanese dessert as a birthday surprise. Their salad is SO GOOD. Now we're back home chilling!
Game Theory is great to practice and all... but it is zero substitute for playtesting a game and saying, "Am I having fun?".
Orbiting the cactus
unborn180.png

Forum statistics

Threads
113,757
Messages
1,077,223
Members
147,790
Latest member
Fercha-AT
Top