How can I make the item crafting window update immediately after creating an item? The idea is to update the list of recipes immediately after creating an item. However, the plugin command in the <Custom Effect> tag does not work on both versions of RPG Maker MV/MZ.
I tried calling the commands in the same tag:
$gameParty.gainItem($dataItems[itemId], n);
$gameParty.loseItem($dataItems[ID], amount);
But instead of the expected effect, I received an error.
We need the plugin to change the list of recipes immediately after upgrading an area of the house.
Code inside each <Custom Effect>:
<Custom Synthesis Effect>
$gameTemp._synthRecipe = undefined;
SceneManager._scene.onCancelOk();
$gameSwitches.setValue(195, true);
$gameTemp.reserveCommonEvent(195);
</Custom Synthesis Effect>
The plugin I use is YEP_ItemSynthesis.js.
I tried calling the commands in the same tag:
$gameParty.gainItem($dataItems[itemId], n);
$gameParty.loseItem($dataItems[ID], amount);
But instead of the expected effect, I received an error.
We need the plugin to change the list of recipes immediately after upgrading an area of the house.
Code inside each <Custom Effect>:
<Custom Synthesis Effect>
$gameTemp._synthRecipe = undefined;
SceneManager._scene.onCancelOk();
$gameSwitches.setValue(195, true);
$gameTemp.reserveCommonEvent(195);
</Custom Synthesis Effect>
The plugin I use is YEP_ItemSynthesis.js.