hi all!! just a simple question, is there a way for yanfly's item synthesis plugin to detect when you've crafted every recipe? i want to make a switch turn on when it sees you've crafted all your recipes. thanks in advance!!!
MV turn switch on when you've crafted everything? (yanfly)
Javascript/Plugin SupportYou can give each craftable item this notetag:
X is the ID of a different switch for each craftable recipe you have.
Y is the ID of a common event, that's the same every time. Inside that event you put conditionals to check whether all of the switches are set to ON - if yes, do your thing.
Code:
<Custom Synthesis Effect>
$gameSwitches.setValue(X, true);
$gameTemp.reserveCommonEvent(Y);
</Custom Synthesis Effect>
Y is the ID of a common event, that's the same every time. Inside that event you put conditionals to check whether all of the switches are set to ON - if yes, do your thing.
i apologize for replying so late, but thank you, the script works perfectly!! is there a way to script batch checking if more than one switch is on? like how you can turn a range on at once, i want to do a conditional check if a range of switches is on. if not thats ok, just wanted to ask!
Original thread: https://forums.rpgmakerweb.com/threads/turn-switch-on-when-youve-crafted-everything-yanfly.159464/