Is randomizing scenes/events possible?

wilsonthegreen

Veteran
Veteran
Joined
Jan 3, 2019
Messages
47
Reaction score
3
First Language
English
Primarily Uses
VNM
Wanted to ask if there's a way to have a random chance of choosing between several choice branches.

Example: I wanted to have a thing where the player can walk into a location and have a random chance of finding different characters there. So, would it be possible to have something like an automatic scene transition but have a random chance between the choices instead of something like a variable deciding it?
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,087
Reaction score
2,679
First Language
Greek
Primarily Uses
RMMZ
Event Command: Control Variables
Operator: Set
Operand value: Choose a random number between two numbers.

According to the variable, you Check with a Conditional Branch and do different things for different values. Variable decides it, but it gets a random value. Boom.
 

wilsonthegreen

Veteran
Veteran
Joined
Jan 3, 2019
Messages
47
Reaction score
3
First Language
English
Primarily Uses
VNM
Yes was talking about vnmaker specifically. Sorry if that was unclear
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,226
Reaction score
1,633
First Language
EN
Primarily Uses
RMMZ
I did a little hunting around and found this over on the Steam boards~
Kentou said:
Hi, you can use Number Variable command and for Source you can select "Random" and then you can set a From-To Range to generate a random number. You can also use that random number to pick a value from a list if you use it as Index. (Get from List command)
Link to source.
 

wilsonthegreen

Veteran
Veteran
Joined
Jan 3, 2019
Messages
47
Reaction score
3
First Language
English
Primarily Uses
VNM
Sounds very helpful, I'll give it a try when I get the chance and edit this post with the results.
 

wilsonthegreen

Veteran
Veteran
Joined
Jan 3, 2019
Messages
47
Reaction score
3
First Language
English
Primarily Uses
VNM
Update: Caethyril's solution does in fact work. I've attached a screenshot of a test I made that was successful. Thank you very much for the help.
 

Attachments

  • It works.png
    It works.png
    41.9 KB · Views: 14

Latest Threads

Latest Posts

Latest Profile Posts

Holy cow... work is demanding and I'm back in college. I'm kind of scared of my dad right now after the incident, but at least I don't live with him all the time. Anyway, working on Fandom Scouts and my FNAF character set. The FNAF sprites are actually going to be used in the game... unfortunately the enemy sprites are FNAF World traces, so no sharing those.
The honeymoon period is over with Cyberpunk 2077, It sadly doesnt live up to the hype, pretty graphics arent everything (especially when I cant even do something as simple as changing the radio station over!). Replaying Breath of the wild has reminded me what a good game really looks like, plus that one has good glitches!....
Ami


Maybe...a Drinkable Water Plant or something?
Who would have thought making interesting birds would be so difficult/fun?

Randomly spawning anywhere on map (sometimes even flying), having a chance of landing on a different spot on map when flying. Also chance of flying off screen if spooked/sees the player

I think I got it!

Forum statistics

Threads
107,680
Messages
1,031,393
Members
139,801
Latest member
IsaacRPG
Top