MV I have a question about the MOG_Chrono Engine (ABS).

Hello, Guys.

I am using the MOG_Chrono Engine.
I want the switch to work when I kill the last monster on the map.
But, I don't know where to put the Dead Switch Id because I don't know which monster will die last.
Is there a good way? I wish for your help.
the best way I think if you have a respawn wait time,
create a conditional branch.

if Variable x > = 5
selswitch D = ON
else
variable +1
end

change variable x to the desire variable ID, and change 5 X
number of monsters on that map.

this is the most basic idea, but there might be a better way though.
in case the monster will respawn, like 600 frames,

wait = 600 frames
variable x -= 1 (or variable x = -1 (if you do add))
selfswitch x = OFF

so variable will be -1 if respawn.
Sorry, I don't understand as a newbie. I tried the first method but it failed.

Specifically, I want the obstacle switch to turn off when I kill 4 monsters on the map.

Could you please attach an example event image?
as a quick check, you can just add variable x +=1 (x being the variable you want to use).

you can re-use this variable for other events as well.
while I dont know if selfswitch D is OFF by switching maps from previous map.
while it doesn't resapwn by default, you can add this if you want too.

than on the obstacle, if variable x = 4 or variable >=4
than remove it by selfswitch. or other switch.
Thanks for your help! : )
감사합니다.

Original thread: https://forums.rpgmakerweb.com/threads/i-have-a-question-about-the-mog_chrono-engine-abs.127180/