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.
| Data | Description |
|---|
| Reels | The final reel state. |
| Stop Positions List | Where the reels stopped. |
| Spin Winnings | Amount won. |
| Bet Amount | Bet size. |
| Total Bets/Winnings | Session totals. |
| Free Spins Data | Count, won, lines, etc. |
| Jackpot Data | Winnings, positions. |
Actions
| Signal | Description |
|---|
| Do | Triggers the aggregation. |
Outputs
Results
| Data | Description |
|---|
| Final Result | The complete object containing all input data plus calculated stats. |
| Is Big Win | Boolean. True if winnings > 1000x bet. |
| RTP | Calculated Return to Player %. |
| Hit Frequency | Calculated Hit Frequency %. |
Events
| Signal | Description |
|---|
| Done | Triggered when complete. |
Usage
End of Spin
- After all logic (Check Wins, Calculate Winnings, etc.) is done.
- Pass all data to Spin Result.
- Trigger Do.
- Use the Final Result object to log the spin to a database or send to an analytics server.
- 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.