random_select - ryzom/ryzomcore GitHub Wiki


title: Random Select description: published: true date: 2023-03-12T01:14:21.858Z tags: editor: markdown dateCreated: 2023-03-11T20:58:15.592Z

random_select

The random_select action executes one of its child actions at random.

At the moment, the weight values of the child actions are not applied, and all actions have the same weight for the randomizer. The weight parameter is currently only used for ordering the child actions in multi-action sets.

This action takes no parameters.

See also

  • Multi Actions: An action that executes all child actions in sequence. This action can be useful when you want to perform a series of actions in a specific order.
  • Null Action: An action that does nothing. This action can be useful in combination with random_select to create actions that are not always executed.
  • Code: An action that executes a block of AI script code. This action can be used for more advanced random selection logic and branching that cannot be achieved with random_select.
⚠️ **GitHub.com Fallback** ⚠️