Random Teleportation

Hey everyone! Hoping you're all well!

I'm currently trying to figure out how to event a crystal that my players can talk to, input a password, and it will teleport them to the dungeon that corresponds to the password they've input.

Alternatively/additionally, I also would like to create an event in the game where the players can be teleported to a random dungeon (from a list of 30 different dungeons, scaling in difficulty).

Is something like this possible to event without any plugins (I'm using the Switch version of the game so no plugins).

Sorry if this seems like a really basic thing to do, I'm still fairly new! Any help is greatly appreciated!
Of course, it's pretty easy to do using conditional branches. Check for password, if player input "password#1", then set variable teleport to 1, if "password#2", then set it to 2, etc. Then make a conditional branch to check if variable teleport is X. When is, then teleport player to the map X, and so on...
a random dungeon
out of which total, within which maximum?

"random" is always limited to "what's available", which is given by "what's discovered".
how do you prevent the player from being teleported "beyond the red tape", so to speak?
out of which total, within which maximum?

"random" is always limited to "what's available", which is given by "what's discovered".
how do you prevent the player from being teleported "beyond the red tape", so to speak?
I think he said that "from a list of 30 different dungeons".
I think he said that "from a list of 30 different dungeons".
yeah... the *maximum*
how do you cap that maximum depending on what the player is allowed to visit?
yeah... the *maximum*
how do you cap that maximum depending on what the player is allowed to visit?
Have a control variable incrementing on checkpoints or player progress, and a javascript for loop that populates the list of available locations that breaks the loop when it reaches the checkpoint variable value.
the list of available locations
and where do you put that list, if no plugins are allowed?

(I know where... just dropping the question for the record.)
and where do you put that list, if no plugins are allowed?

(I know where... just dropping the question for the record.)
An array, or maybe the maps are just numbered in sequential order so you just loop up to a map number
@AquaEcho I'm talking about where to put any complex custom logic in the space of the common event block where all you can use is a tiny script box.
you'd need to direct that logic somewhere else, if you want to load a big chunk of code, as you would with an actual plugin.
if the first instruction you put down is "go read *this file!*", you're set!
@AquaEcho I'm talking about where to put any complex custom logic in the space of the common event block where all you can use is a tiny script box.
you'd need to direct that logic somewhere else, if you want to load a big chunk of code, as you would with an actual plugin.
if the first instruction you put down is "go read *this file!*", you're set!
You only need a few lines of code to declare an array and do a for loop. It will fit in the script box of the engine.
@AquaEcho no, not just the array... I was talking about the "no plugins" limitation.
if there needs to be some complex logic for opening dungeons (maybe it's tied to a quest system, IDK) and you can't work it out with the rigid block instructions, the way out is to pre-code the procedure elsewhere and call it from a single line within a script box.
I do that a lot to load things from a note box... it's a half step between note tags and a full plugin.
I think I'm going to implement a Dungeon-Gatchapon sort of system instead, Player inputs "currency" and is given a "Dungeon Map" item that when used will roll and check a variable, and take them to a different dungeon depending on the outcome of the roll.

I'm going to do elemental dungeons to start with...

I picture it like this: a player collects *currency of choice* (in my case mana shards), they then use an ability or a "crafting table" to fuse the shards into mana crystals, the mana crystals then can be taken to a machine that lets the user select which mana crystal to use (I have many 8 different kinds to choose from)... it does a quick event to award the player a map based on a variable, so if they give is a Ruby mana crystal (fire element), it spits back a Fire Dungeon Map, I can have like 5-10 different maps for it to possibly give back to the player per element, ranging in difficulty and rarity of rewards.
Player inputs "currency" and is given a "Dungeon Map"
ok... so it's a full selection that is shortened every time, not an empty progress that is filled from the bottom up.
that selection, needs to be held stored somewhere, and that set needs to be randomized.
*shortening*, *storing*, *randomizing*... those are all operations to consider.
that's my view.

Original thread: https://forums.rpgmakerweb.com/threads/random-teleportation.162928/