JumpRandom


Makes a scenario jump at random (random branching).
By writing multiple JumpRandom commands consecutively, you can branch randomly to one of the set destination branches.
You can also set the degree of probability, which is used when you want to randomly represent things like “popular patterns, rare patterns” or “changes in reaction based on favorability ratings.”

Sample

Reference

Command Description Arg1 Arg2 Arg3
JumpRandom Jumps randomly (automatic branching). Scenario label to jump to Conditional expression for triggering the jump.
If false, it does not jump.
Degree of probability.
If empty, it is set to 1.

How to Write JumpRandom Commands

Multiple JumpRandom commands need to be written consecutively.
The execution then randomly jumps to one of the consecutive JumpRandom commands you have written.

Command Arg1 Arg2 Arg3
JumpRandom *Jump destination 1
JumpRandom *Jump destination 2
JumpRandom *Jump destination 3

In this example, the execution jumps to jump destinations 1, 2, or 3 with an equal probability (1/3).

Conditional Expression for Triggering a Jump

Similar to the Jump command, you can set a conditional expression in Arg2. This allows you to stop a jump point from being a jump destination if a particular condition is met.
If the result of Arg2 is false, the execution jumps randomly to one of the other jump destinations.
If all are false, it does not jump anywhere.

Degree of Probability

In Arg3 you can set the degree of probability. If empty, it is set to 1.
Please note that this setting is not set in percentages, but it is set as the ratio of probability of being selected.
This is close to the magnitude of a roulette.

Command Arg1 Arg2 Arg3
JumpRandom *Jump destination 1 5
JumpRandom *Jump destination 2 3
JumpRandom *Jump destination 3

In this example, the ratio of probability of doing a jump is 5:3:1.
So the probability of jumping to destination 1 is 5/9, to destination 2 is 3/9, and to destination 3 is 1/9.