Skip to main content

Reel Ways Calculate Winnings

This node calculates the payout for a spin based on the "Reel Ways" (or "All Ways") mechanic.

The Reel Ways Calculate Winnings node determines the total win amount for a slot game where wins are based on adjacent symbols rather than fixed paylines.

The Reel Ways Calculate Winnings node is used for slot games that use the "Ways to Win" system (e.g., 243 ways). It takes the winning lines identified by Reel Ways Check Wins and calculates the monetary payout based on the bet amount and the paytable.

Inputs​

Data​

DataDescription
Winning LinesThe array of winning lines from the Reel Ways Check Wins node.
PaytableA JSON object defining payouts. Format: { "SymbolID": { "Count": Multiplier } }.

Parameters​

DataDescription
Bet AmountThe total bet for the spin.
Wild SymbolThe ID of the wild symbol (substitutes for others).

Actions​

SignalDescription
DoTriggers the calculation.

Outputs​

Results​

DataDescription
Spin WinningsThe total monetary value won in this spin.
Winning Lines DetailsAn array of objects detailing each win: { symbols, positions, payout }.

Events​

SignalDescription
DoneTriggered when calculation is complete.

Usage​

Reel Ways Payout​

  1. After Reel Ways Check Wins, pass the Winning Lines output to this node.
  2. Pass the Paytable and Bet Amount.
  3. Trigger Do.
  4. Add Spin Winnings to the player's balance.

Detailed Behavior​

  • Payout Calculation: Payout = Bet Amount * Multiplier. Note that unlike standard lines, "Ways" games usually apply the multiplier to the total bet (or a "coin size" derived from it, depending on game rules. This node assumes direct multiplication).
  • Wilds: Uses the wild symbol ID to correctly identify the paying symbol in a mixed line.

Troubleshooting​

  • Zero Winnings: Ensure your Paytable has entries for the symbol counts you are hitting (e.g., if you hit 3 symbols, ensure key "3" exists).