Skip to main content

Weighted Reels

This node generates reel positions based on weighted probability.

The Weighted Reels node determines where the reels stop spinning.

The Weighted Reels node selects a stop position for each reel. It uses the reel strips and a random seed (or input list) to pick a position. In "Dynamic" mode, it can generate the reel content on the fly based on weights, rather than just picking a position on a static strip.

Inputs

Parameters

DataDescription
Reel StripsThe source strips.
SeedsArray of random seeds.
Row SizeNumber of visible rows.
Is DynamicBoolean. If true, generates reels dynamically. Default: false.

Actions

SignalDescription
DoTriggers generation.
Free Spin TriggerTriggers generation with specific logic to ensure/allow free spin symbols (Dynamic mode).

Outputs

Results

DataDescription
ReelsThe resulting 2D array of visible symbols.
Stop Positions ListThe indices where the reels stopped.

Events

SignalDescription
DoneTriggered when complete.

Usage

Static Spin

  1. Is Dynamic: False.
  2. Provide Reel Strips.
  3. Trigger Do.
  4. The node picks a random index for each reel and extracts the visible window of symbols.

Dynamic Spin

  1. Is Dynamic: True.
  2. Provide Symbol Weights.
  3. Trigger Do.
  4. The node constructs a new reel window from scratch based on the weights, effectively simulating an infinitely long reel strip where every spin is unique.

Detailed Behavior

  • Static Mode: Simulates a physical machine where the strip is a fixed loop of paper.
  • Dynamic Mode: Simulates a digital machine where every symbol is picked independently (or semi-independently) based on probability.

Troubleshooting

  • Reels Empty: Ensure Reel Strips (Static) or Symbol Weights (Dynamic) are provided.