Skip to main content

Spin Result

This node aggregates all data from a spin into a final result object.

The Spin Result node packages the outcome of a spin for analysis or display.

The Spin Result node takes all the individual pieces of data generated during a spin (reels, winnings, stats, free spins info) and bundles them into a standardized Final Result object. It also calculates derived metrics like RTP and Hit Frequency for the current session.

Inputs

Inputs

DataDescription
ReelsThe final reel state.
Stop Positions ListWhere the reels stopped.
Spin WinningsAmount won.
Bet AmountBet size.
Total Bets/WinningsSession totals.
Free Spins DataCount, won, lines, etc.
Jackpot DataWinnings, positions.

Actions

SignalDescription
DoTriggers the aggregation.

Outputs

Results

DataDescription
Final ResultThe complete object containing all input data plus calculated stats.
Is Big WinBoolean. True if winnings > 1000x bet.
RTPCalculated Return to Player %.
Hit FrequencyCalculated Hit Frequency %.

Events

SignalDescription
DoneTriggered when complete.

Usage

End of Spin

  1. After all logic (Check Wins, Calculate Winnings, etc.) is done.
  2. Pass all data to Spin Result.
  3. Trigger Do.
  4. Use the Final Result object to log the spin to a database or send to an analytics server.
  5. Use Is Big Win to trigger special effects.

Detailed Behavior

  • Calculations:
    • RTP = (Total Winnings / Total Bets) * 100.
    • Hit Frequency = (Hits / Spin Count) * 100.
  • Big Win: Hardcoded threshold of 1000x bet.

Troubleshooting

  • NaN Stats: If Total Bets or Spin Count is 0, RTP and Hit Frequency will be 0 (safe default) or NaN depending on inputs.