Sorry for making another topic so quickly, but this is a completely separate question and the other one was closed anyway.
I want to have an NPC which only sometimes appears.
Ideally, the way I want to do this is for him to only appear when your Battle Count is a multiple of a certain number (for example, a multiple of 3), but I would also be satisfied with him appearing by pulling the event chance from a random number generation.
The thing is... I have no idea how to get either way to work...
Help?
Since the default conditions on an event page don't allow for either of those conditions, you'll need two events - one to check the conditions and set a switch accordingly, and the other your NPC controlled by that switch.
Create a parallel process event that will turn a switch on or off based on your conditions, and then erase itself. So turn the switch off initially, set a variable to the battle count, then do a mod 3, and if it's 0 turn on a switch; or set a variable to a random number between 0 and whatever you want, and if it's 1, turn on the switch. Remember to erase the event afterwards (assuming those conditions change on a different map)
The other will be your NPC event, and will be conditioned by that switch.
Well, was your battle count a multiple of 3 when you entered that map?
And his NPC event is conditioned by switch 97? Every page of that event?
And the event above is on the same map as the NPC event?
ahahaha - you've got to PUT the battle count into variable 68 before you do the mod 3.
Because you haven't done that, the variable uses its default (0) and 0 % 3 is 0. So the switch will always be getting turned on.
Battle Count comes from Game Data.
Yeah, it doesn't do anything if there's nothing in there. I just think it takes up unnecessary space and looks messy, so if it's not needed, I get rid of it.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.