Help

I'm trying to make guild quests where the player will be shown a bunch of kill quest choices and then when a random encounter of the specified kill quest monster appears, it'll add to a variable that once checked by the quest manager. will let them receive their reward

Pictures for reference:
1649213244627.png


1649213302964.png


one of the quests im still working on is to kill 5 Chizards and was planning to have the player complete it by random encounters. but the problem is, i don't know how to do it. i wrote in the chizard troops section of the troops settings that once 1 of the enemies reaches 0 hp, it'll add 1 to the Chizard kill variable. but when i tested it, it didn't add to the variable at all. it works when i manually add to the variable through an npc so i could only assume that the random encounters don't use the troops content conditions.

pictures for reference:
1649213899400.png

1649213928405.png

1649213955019.png
Yeah, the engine is weird with certain things. This happens because events don't get processed when you win a battle. The random encounter part doesn't matter.

This plugin solves that problem:

HIME_EndPhaseTriggers

However, if you plan on using Yanlfy's Core & Battle Engine Core plugins, they solve this problem as well.

YEP_CoreEngine
and if you don't want to use plugins, the usual way is to protect the enemies with an immortal state until the troop events are processed.

basically an event on turn 0 to give all enemies the immortal state, and then in each of your troop events on HP=0 you remove the immortal state at the end of the event, making them die after the control variable.

Original thread: https://forums.rpgmakerweb.com/threads/help.146468/