Help with tracking mob kills.

Redleg

Warper
Member
Joined
Nov 7, 2018
Messages
3
Reaction score
0
First Language
english
Primarily Uses
RMXP
I am trying to track mob kills and have an event trigger after a certain number of kills is achieved. Anyone have an idea how to do this using variables and switches?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,107
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
Are your battles triggered by event, or are they random?

If they're triggered by an event, you can just add the number of enemies in the mob either before or after the Battle Processing call. If they player wins the battle, it means they've killed that many enemies. If the player loses the battle, it'll be game over and they'll have to load an earlier saved game, so the variable won't include the enemies in that mob.

Then, depending on what your event is/does, you can either have it conditioned by the variable being equal to or greater than the number required, or you can do a conditional branch after each battle & variable change, to see if it's the right value, and turn on a switch if it is. Then the switch can condition the event (this is useful if it's a common event and your mobs cover more than one map).
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Frostorm wrote on Featherbrain's profile.
Hey, so what species are your raptors? Any of these?
... so here's my main characters running around inside "Headspace", a place people use as a safe place away from anxious/panic related thinking.
Stream will be live shortly! I will be doing some music tonight! Feel free to drop by!
Made transition effects for going inside or outside using zoom, pixi filter, and a shutter effect
I have gathered enough feedback from a few selected people. But it is still available if you want to sign up https://forums.rpgmakerweb.com/index.php?threads/looking-for-testers-a-closed-tech-demo.130774/

Forum statistics

Threads
105,992
Messages
1,018,189
Members
137,771
Latest member
evoque
Top