RPG Maker (I use MZ) hinges on Events, which are snippets of code made to run at certain times. Prototypical examples might be, say, an NPC sprite you can click on for dialogue, or a doorway you can walk into that takes you to another map. But not all events work this way. For each Event, you must specify a type of trigger. There are Action Button triggers, which are exactly what they sound like - your NPCs. Player Touch and Event Touch triggers are also what they sound like - your doorways. There are Autorun triggers, which grab control of the game by the nostrils and say, "Shut down the player controls and do this, above and before everything else, BECAUSE I SAY SO." Then there are Parallel Process triggers, which are a little more "I'll be here in the background controlling some stuff, but don't mind me; keep doing what you're doing." Trying to put together minigames can be a little hairy, because there are typically a couple different ways you can do...