Greetings,
Rpg Maker community i got a question on how to add a +1 variable when random monster encounter on the map.
Because when i put a +1 var on a NPC it works and when i add +1 var in the random encounter in the database it doesn't.
Thank you
Please show a screenshot of what you did that doesn't work. It is not clear whether you're trying to add 1 to a game variable or add a variable to an enemy, or what...no such thing as an NPC...
So a picture will be more helpful 🙂
On the NPC tile itself it workd with the variable and in the troops menu it doesnt work
So, i cant do it manual? and have to put in a plugin?
A battle ends when there are no enemies left, instantly. So if that's the last/only enemy in your troop, that event will never happen.
Aside from the plugin that Testosterone suggested, you have two options for this kind of thing.
1 - on turn 0, apply a state to the enemy that makes it immortal. Then you'd have the event you made above that checks for <= 0% health, does stuff, then removes the immortal state to let them die.
2 - you can install Himeworks' End Phase Triggers plugin, which will make the engine check for troop events before the end of battle.
Okay Thank you i will try option 1. ^^