Random Choice Object

From Runic Games Wiki
Jump to: navigation, search

Contents

Random Choice

Description

This Level Object will randomly select a set amount of numbered choice Output events to fire from up to five possibilities.

Location

Right-click on an empty space in the Layout Scene Manager and choose Logic > Random Choice from the list.

Properties

Name Type Description Read Only
WEIGHTED
COUNT
int
The number of choices to select when using the "Weight" Type.
CHOICES
ONE
int
Negative or Zero disable the choice.
TWO
int
Negative or Zero disable the choice.
THREE
int
Negative or Zero disable the choice.
FOUR
int
Negative or Zero disable the choice.
FIVE
int
Negative or Zero disable the choice.
NETWORK
LEVEL OWNER CONTROL
bool
If True the Level Owner will tell the other Random Choice objects what the outcome of the "Roll" Output event is.
PROPERTIES
ENABLED
bool
Sets the Random Choice enabled or disabled.
TYPE
string
The type of Random Choice.
  • Random
    This will use the value of the Choice between 0-100.
  • Weight
    This will use the value of the Choice as a weight against all other Choices.
VOLATILE
bool
Note: 99% of the time this should be False. If True the Random Choice will not sync in multiplayer.

Input Events

Roll
Randomly choose the numbered choice Output event.
Enable
Enable the Random Choice object. The Random Choice will accept "Roll" Input events.
Disable
Disable the Random Choice object. The Random Choice will not accept "Roll" Input events.

Output Events

One
This event will fire if the "Roll" Input event chooses it.
Two
This event will fire if the "Roll" Input event chooses it.
Three
This event will fire if the "Roll" Input event chooses it.
Four
This event will fire if the "Roll" Input event chooses it.
Five
This event will fire if the "Roll" Input event chooses it.

Tutorials

Personal tools
Namespaces

Variants
Actions
Navigation
Runic Sites
Toolbox