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,088
Reaction score
2,681
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,620
Reaction score
1,998
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: 21

Latest Threads

Latest Posts

Latest Profile Posts

Could not for the life of me figure out how to implement the dual/triple techs in Touch the Stars in a player-friendly way. Was describing all the problems to my wife and just rubber-ducked a solution that should work brilliantly.
I think I'm going to make each equippable item in my fantasy RPG grant a skill while its worn (in addition to the character's learned skills). Equipped gear that might be weaker in stats can still be useful in certain situations if the skill they grant exploits a weakness or resists a strength in the monsters being fought. This could potentially open up lots of build strategies to play with for fun.
:kaojoy:
A lot of those cool RPGs allow players to import their own portraits.
Thus, we shall have that, too. :kaojoy:
Finally, deleted my Reddit account
I cant say I dont regret it, I honestly liked FMA subreddit, but nah, reddit succs
What was the worst (most difficult) part of developing your game?

Forum statistics

Threads
113,835
Messages
1,077,825
Members
147,899
Latest member
broglione
Top