


minigameLobbySolving: This switch will tell us if we need to solve the minigame lobby(for example, when the lobby's leader leaves).minigameIsRunning: This switch will tell us if the minigame is currently running(so players will need to wait until minigame ends).If the minigame is ready to start, it's value will be true. minigameIsReady: This switch will store the information about the availability of the minigame.We use this as a variable instead of a switch for the same reason of the previous one. leaderFromLobby: This variable will store the ID of the lobby we are leaders of.We use this as a variable instead of a switch because we may want adding more minigames in the future so we won't create hundreds of switches. onLobby: This variable will store the lobby ID where the player is.A few switches and variables(both player & global)Īs I said before, we'll need some switches and variables. A map event (the npc who will offer the minigame access) When the countdown finish, all ready players(1-4) will start the minigame. There will be a npc on the map which will offer us playing a 4 player's minigame.
