Yanfly quest book help

OK, how would one make a quest requiring someone to gather X of a certain item?
How about killing X of a certain creature?
In the 'Control Variable' command there should be a 'Item [] in Inventory' option in 'Game Data'. Use that to store the quantity of a specified item in said variable.
Then, make a common event that gets activated by a certain switch, and make it run in parallel process. Said switch would be activated as soon as you get to the step of killing many monsters/having many items/etc in the quest.
In this Common Event, check the variables were the value was stored as "Equal or greater than" the x quantity you want as a requirement. If the conditions are met, use the plugin command "Quest x Complete Objective y". If it's not, use "Quest x Normalize Objective y"
I don't know this is much of an issue in MV, but put a 'Wait' of 1~10 frames in case the Common Event starts to drop the FPS.

As for the monster quantity, go to the troop events that has the particular monster and make a event page that runs when the switch for the quest is activated AND when the enemy has 0% HP.

It should be similar to this:

upload_2019-5-28_21-51-6.png


upload_2019-5-28_21-51-25.png
In the 'Control Variable' command there should be a 'Item [] in Inventory' option in 'Game Data'. Use that to store the quantity of a specified item in said variable.
Then, make a common event that gets activated by a certain switch, and make it run in parallel process. Said switch would be activated as soon as you get to the step of killing many monsters/having many items/etc in the quest.
In this Common Event, check the variables were the value was stored as "Equal or greater than" the x quantity you want as a requirement. If the conditions are met, use the plugin command "Quest x Complete Objective y". If it's not, use "Quest x Normalize Objective y"
I don't know this is much of an issue in MV, but put a 'Wait' of 1~10 frames in case the Common Event starts to drop the FPS.

As for the monster quantity, go to the troop events that has the particular monster and make a event page that runs when the switch for the quest is activated AND when the enemy has 0% HP.

It should be similar to this:

View attachment 116465

View attachment 116466
thank you

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-quest-book-help.109502/