Implementing a 'battle warning' system?

Hey everyone,

I was watching of Driftwood's older videos and came across this (amazing looking) game he tried out called Last Legend. In it, there is a 'Caution' icon that appears before a random battle occurs. You can see it here:

I was wondering how to implement something like this? Is it a specific plugin? Or is it something you can create natively?

Thanks for any help on this! 🙂
Bumping this in case anyone has any insight! 🙂
Just a guess because I do something similar but I have on map enemies. Using region events where your random encounters happen have a separate region bordering it call a show picture command of the graphic you want. Or on a map tranfer event call a show picture event or common event when entering a map with random encounters to show the graphic. Set it to a switch like "Random Encounters On" and say you want to turn them off throw the switch off and another switch on "All Clear" that links to a common event that erases that picture.
Thanks for the response!

Yeah actually watching the video again it seems the CAUTION image doesn't actually appear right before a battle, it just appears in areas where you can have random encounters. So it's not as awesome as I thought, haha. It seems they are probably doing one of the ideas you presented, which are great.

But now I'm wondering how to do the idea I originally presented, if it's possible. The only thing I can think of is to always have encounters occur after a set amount of steps, and X amount of steps before that call the show picture event. So for example...encounter is set to occur after 30 steps. When the player takes 25 steps, the CAUTION image is shown. After a battle, it resets.

But is there a way to do this without having to use a set number of steps and actually make it random? That's what I'm wondering now.
Variables. Have random encounters be variable (x). In control variables, you set it to random and 20~40 or whatever at the start of your map and have your "Alert" event reference variable (x)-5
Oh nice! So would I be using that variable to dictate when battles start then instead of the Encounter Steps option present in the maker? Since obviously if I had a variable that was 20-40 and the Enc. Steps were also 20-40, they wouldn't line up with each other.
No you would need a parallel process to call your battle event and not use true random encounters. You could use another random variable to dictate what troops you would fight.
Personally I would regions or set numbers, it would be easier.
Yeah...it's easier, but it doesn't accomplish exactly what I want. I'll have to think on it more to see if there is actually a way to do this.

Original thread: https://forums.rpgmakerweb.com/threads/implementing-a-battle-warning-system.84842/