Skip to main content

Paytable Modifier

Rewrites a paytable for a bet mode, bonus round, chapter or variant, scaling every multiplier or replacing whole rows. Maths node that also compiles to the RGS.

Wire Paytable from Get Paytable paytable and fire Do. The table is { symbol: { count: multiplier } }, as an object or as JSON text. In mode scale every multiplier is multiplied by Scale, then by the per-symbol factor in Symbol Overrides: { "7": 2 } doubles symbol 7 only. In mode absolute, Symbol Overrides holds whole rows, { "7": { "3": 50, "5": 500 } }, whose counts replace the originals outright.

In absolute mode a count the override does not list is still multiplied by Scale, a count that exists only in the override is added to the row, and a bare number acts as a factor. In scale mode an override written as a row object is ignored. Overrides for symbols the paytable lacks are dropped, and a row that is not an object passes through untouched.

Every result is rounded to Round To (decimals) places. Changed is true when any multiplier differs from the input and Scale echoes the factor applied. Wire the Paytable output into Calculate Winnings paytable, and into Paytable Rows paytable so the rows the player sees are the rows that pay.

Stateless and seedless: the same inputs always give the same table, in the editor preview and on the RGS alike. Fire Do whenever the bet mode, chapter or feature changes; a Chapter Branch chapter or a Variant Selector variant can carry the scale to apply. An empty or unreadable Paytable yields an empty table with Changed false.

Inputs​

Parameters​

DataDescription
Paytable (object)Source table, { symbol: { count: multiplier } } as an object or JSON text; wire from Get Paytable paytable. Default {}.
Scale (number)Factor applied to every multiplier, and to unlisted counts in absolute mode. Default 1.
Symbol Overrides (object)Per-symbol factors in scale mode ({ "7": 2 }) or whole replacement rows in absolute mode; object or JSON text. Default {}.
Mode (enum)Whether Symbol Overrides holds per-symbol factors or rows that replace the originals. Default scale. Options: scale, absolute.
Round To (decimals) (number)Decimal places every result is rounded to; negative values count as 0. Default 4.

Actions​

SignalDescription
DoRuns the node.

Outputs​

Events​

SignalDescription
DoneFires when the node has finished, on success and failure alike.

Results​

DataDescription
Paytable (object)The rewritten table, same { symbol: { count: multiplier } } shape; wire into Calculate Winnings and Paytable Rows.
Changed (boolean)true when at least one multiplier differs from the input.
Scale (number)The scale factor that was applied.

Usage​

  1. Wire Get Paytable paytable into Paytable.
  2. Choose Mode: scale to multiply, absolute to replace rows.
  3. Set Scale and, where needed, Symbol Overrides.
  4. Fire Do when the bet mode, chapter or feature changes.
  5. Wire the Paytable output into Calculate Winnings and Paytable Rows.
note

In scale mode an override written as a row object is ignored. Switch Mode to absolute to replace rows.