OK now that I have it set up to where every chest has a random chance of being a mimic instead, I want to have a message after the first encounter with a mimic that will explain that the chances of any chest being a mimic is random.
After First encounter notice: Random Mimic Encounters
RPG Maker MV SupportMake a conditional branch to only give the massage if a certain switch is off/on, then turn that switch on/off.
Though with this method you'll need to paste these commands to every chest. Putting these commands in a common event then calling it might be faster.
Though with this method you'll need to paste these commands to every chest. Putting these commands in a common event then calling it might be faster.
I would create a variable (Mimics killed). After a Mimic was killed I would add +1 to that variable (add not set!). Then I would create a conditional branch after the battle in the event to check if Mimics killed == 1 and add the text message if that's true. That way it would show the message after the first killed mimic but not on the later ones (and you could display the amount of mimics killed somewhere if you want) 😛
The problem with a switch is that it will display it EVERY time because there's only true or false. The only way to make it work with switches would require 2 switches, that's why a single variable is much easier and can be used to display a kill count.
OK I'm a bit lost. I know how to set up conditional branches and all but how to set it up is where I am confused. Can someone tell me how to pull this off step by step?
I don't follow.
The first time it happens, the switch is turned on, the massage plays, then it's turned off.
the second time, since the switch is turned off, the massage does not play and the command to turn the switch off does nothing.
I don't see anything that would turn the switch on again.
Ultimately it doesn't matter, I guess. either method works.
Here, I made some screenshots:
My solution:
Baka-chan's:
Original thread: https://forums.rpgmakerweb.com/threads/after-first-encounter-notice-random-mimic-encounters.47048/