Basically, what I want to do is to have a door that will randomly teleport a player to one of the 3 different rooms. I have absolutely no idea how to go about it though... Is it even possible?
Different room each time you enter the same door?
RPG Maker MV SupportSet a variable to Random 1-3. Use conditional branches after that:
If 1 transport to room 1
If 2 transport to room 2
If 3 transport to room 3
If 1 transport to room 1
If 2 transport to room 2
If 3 transport to room 3
1) control variable for a random number 1-3
2) three conditional branches checking =1, =2, =3 with three different transfer commands inside their branches
edit: ninja'd
2) three conditional branches checking =1, =2, =3 with three different transfer commands inside their branches
edit: ninja'd
As those before me said: a random variable the will determine the location.
In the event, use a "control variable" command and set the value to random between 1 and 3. Insert the Sound Effect you want. Then add a conditional branch with that variable as condition.
You need to make 3 of these conditional branch, each with a different value (1, 2, and 3), and each one leads to a different location.
In the event, use a "control variable" command and set the value to random between 1 and 3. Insert the Sound Effect you want. Then add a conditional branch with that variable as condition.
You need to make 3 of these conditional branch, each with a different value (1, 2, and 3), and each one leads to a different location.
or, save the variable as the result of the random pick from an array of map IDs directly with a script call.
if you need to edit it, just change the array, no need to use any conditions.
(in JS syntax, of course)
if you need to edit it, just change the array, no need to use any conditions.
(in JS syntax, of course)
Original thread: https://forums.rpgmakerweb.com/threads/different-room-each-time-you-enter-the-same-door.99988/