Skip to content

Random Actions

Random actions let you add unpredictability and variety to your FSMs. They provide ways to pick random numbers, choose between events, or select from a list of items at runtime. Use them to create more dynamic gameplay - whether you’re spawning enemies at random positions, picking a random sound effect, or rolling dice for a chance-based mechanic.

These actions are most useful for:

  • Procedural gameplay (e.g., random loot, level layouts).
  • Variation (e.g., random animations, effects, or audio clips).
  • Chance-based logic (e.g., probability checks, dice rolls, random branching).

Randomness helps keep repeated playthroughs feeling fresh, and makes it easy to add a touch of unpredictability to otherwise deterministic systems.

Weighted Lists

Some random actions use weighted lists, where each item in the list is given a relative weight.

For example, Get Random XXX actions get a random item from a weighted list of items:

image

In this example, red is twice as likely as green to be picked, and four times more likely than blue to be picked.

Scene Tools

Some random actions include Scene Tools so you can edit their parameters in the Scene View.

For example Get Point In Rect Ring lets you interactively edit the inner and outer rects:

SceneTools

Falloff Curves

Some random actions use falloff curves to control distribution.

For example, Get Point In Circle uses a falloff curve:

Biased to center:

NormalCurve

Biased to outer edge:

NormalCurveInverted

Action Reference