pangloy

Veteran
Veteran
Joined
Nov 13, 2018
Messages
30
Reaction score
0
First Language
Thai
Primarily Uses
RMMV
181123031152.jpg


Good Evening :LZSsmile:

I have 4 maps.
- Map A is World map. and have "Blank area for Room".
- Map B as small as "Blank area for Room".
- Map C as small as "Blank area for Room" .
- Map D as small as "Blank area for Room".

How to random room every time I enter and leave and enter room:kaocry:
Thank you. Love you.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
16,245
Reaction score
9,013
First Language
English
Primarily Uses
RMMV
In your event that transfers you into the room, set a variable equal to random 1-3. Then use conditional branches. If variable = 1, it transfers you to the map of room B. If variable - 2, it transfers you to the map of room C.
 

CodeHunterEx

Hunter of the Perfect Code
Veteran
Joined
Nov 26, 2016
Messages
133
Reaction score
64
First Language
English
Primarily Uses
RMVXA
In your event that transfers you into the room, set a variable equal to random 1-3. Then use conditional branches. If variable = 1, it transfers you to the map of room B. If variable - 2, it transfers you to the map of room C.

That is also how I would accomplish this too.

Create a random value between 1 and the number of rooms and then depending on the value recieved go to room B, C, D .... etc.

if value == 1 transfer to room b
if value == 2 transfer to room c
if value == 3 transfer to room d
etc.
 

pangloy

Veteran
Veteran
Joined
Nov 13, 2018
Messages
30
Reaction score
0
First Language
Thai
Primarily Uses
RMMV
Thank you all. :LZSsmile:
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
6,114
Reaction score
5,851
First Language
English
Primarily Uses
RMVXA
Extra note: If "Room" as seen on World Map A is an event sprite, you can set the random variable in advance, and then you can have three different pages, one for each value of the variable (1, 2, or 3), which contain a different graphic to display, and warp you to the appropriate version of the Room (B, C, or D) when touched. :)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,295
Reaction score
8,743
First Language
German
Primarily Uses
RMMV
the pixel size of a sprite doesn't matter, it's the structure (3x4 cells of identical pixel size) that matters to a sprite.
just check the big monster sprites...
 

pangloy

Veteran
Veteran
Joined
Nov 13, 2018
Messages
30
Reaction score
0
First Language
Thai
Primarily Uses
RMMV

Latest Threads

Latest Posts

Latest Profile Posts

May I make a suggestion for what language we should use for plugins?

IMG_1177.JPG
Have you opened all the advent calendar's yet? Don't forget to leave @Starbird_Resources and @WaywardMartian some love!
1638376821276.png
LOOK AT EM GOOOOOOOOOO!
Sorry for the spam with this, I'm just real happy with how this has gone :D
Custom sleep sequence done! :kaopride:
fuY8hyg.gif
The other day I posted a merchant airship tileset and said it was overflow from my Advent Calendar. @Avery said something like "that's one way to flex!" Well, this morning I woke up and realized THAT I MISCOUNTED AND AM SHORT BY ONE DAY. My face and palm are now perfectly fused together.

Forum statistics

Threads
117,104
Messages
1,104,611
Members
153,124
Latest member
pirocudo341
Top