Random Choice Object
From Runic Games Wiki
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 | |
The number of choices to select when using the "Weight" Type. | |
CHOICES | |||
ONE | |
Negative or Zero disable the choice. | |
TWO | |
Negative or Zero disable the choice. | |
THREE | |
Negative or Zero disable the choice. | |
FOUR | |
Negative or Zero disable the choice. | |
FIVE | |
Negative or Zero disable the choice. | |
NETWORK | |||
LEVEL OWNER CONTROL | |
If True the Level Owner will tell the other Random Choice objects what the outcome of the "Roll" Output event is. | |
PROPERTIES | |||
ENABLED | |
Sets the Random Choice enabled or disabled. | |
TYPE | |
The type of Random Choice.
|
|
VOLATILE | |
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.