Mother 2 Encounter System

The surprise attack from behind thing, how to do that?
I'm not sure what you're asking. Elaborate please?
Post questions like this in the "Support" subforum appropriate to the engine you're using, because the answer is a little different for each version of RPG Maker. (Game Mechanics Design is for engine-neutral game design discussion, not how-to questions.)

If you're using MV, I suggest checking out Yanfly's Event Encounter Aid plugin.

Please tell us what Maker you're using so the mods can move this topic to the right place.
@Raijinn Your query needs a lot more description than just that. Despite being popular, there are many millions of people who have never played Mother 2 and so won't know what you're referring to. However, they might well have the information you need because they've come across it elsewhere, or have tried it themselves. Please always give a full description of what you want, and do not rely on "like game X".

'Game Mechanics Design' is for looking at aspects of game play at a more conceptual level. "How do I...?" (implementation) questions belong in the Support forum for the engine you are using. However, you don't mention it in your post, nor is it in the information under your avatar. Please post and clarify which engine it is so that this thread can be moved.
Oh whoops, I posted this in a rush earlier, sorry. You can close this thread, I figured out how to do it.

Original thread: https://forums.rpgmakerweb.com/threads/mother-2-encounter-system.102186/