Browser-side session-time, loss and wager limits that let the UI show remaining allowances and block the Spin button before a bet is sent. It runs only in the browser, never on the RGS, and is not a substitute for the platform's own checks.
Fire Start when play begins: it zeroes the wager and win counters and starts a one-second session clock. On every round set Bet and fire Bet Placed, then set Win and fire Win Paid. Each limit is off at its default of 0: Max Session Minutes caps minutes since Start, Max Loss caps bets minus wins, Max Wager caps total bets. Amounts stay in whatever unit you feed in; the platform uses integer minor units.
When a limit is hit, Limit Reached fires once, Limit Type names it (session, loss or wager, checked in that order) and Blocked turns true and stays so until Reset, which clears the block and starts a fresh session with zeroed counters. Remaining Minutes, Remaining Loss and Remaining Wager update live for the UI and read -1 while their limit is off. Loss and wager limits count without Start; the session limit needs it.
The check runs after a bet is counted, so the bet that reaches a limit goes through and Blocked stops the next one. To refuse the crossing bet as well, compare the stake with Remaining Wager and Remaining Loss before you send it. Lowering a limit below the current count blocks at once. State lives in the page, so a reload starts over; the timer is cleared when the node is deleted.
The RGS runs its own check on every bet before any money moves: the player's wager and loss limits (daily, weekly or monthly), self-exclusion and account status, all held per player on the platform and set through the operator's responsible-gambling tooling. This node never reads those values; it counts only what you wire in, so feed it the same figures if you want the UI to agree, and never rely on it alone. See the Slot Features guide.
Limits
| Data | Description |
|---|
| Max Session Minutes (0 = off) (number) | Minutes of play allowed after Start. Default 0 = off. Lowering it below the elapsed time blocks at once. |
| Max Loss (0 = off) (number) | Most the player may lose (bets minus wins), in your bet unit. Default 0 = off. Counts without Start. |
| Max Wager (0 = off) (number) | Most the player may stake in total, in your bet unit. Default 0 = off. Counts without Start. |
Actions
| Signal | Description |
|---|
| Start | Begins a session: zeroes the counters, clears Blocked and Limit Type, starts the session clock. The same operation as Reset. |
| Reset | Clears the node's state and starts again. Clears Blocked, zeroes the counters and restarts the clock; wire it to the dialog dismiss. |
Round Data
| Data | Description |
|---|
| Bet (number) | Stake of the current round, in your unit (the platform uses integer minor units). Default 0. Set it before Bet Placed. |
| Win (number) | Amount paid for the current round, same unit as Bet. Default 0. Set it before Win Paid. |
| Signal | Description |
|---|
| Bet Placed | Adds Bet to the wagered total, then recomputes the remaining outputs and checks every limit. |
| Win Paid | Adds Win to the won total, then recomputes the remaining outputs and checks every limit. |
Outputs
Signals
| Signal | Description |
|---|
| Limit Reached | Fires once when a limit is hit and not again until Reset. Show the limit dialog and stop autoplay on it. |
State
| Data | Description |
|---|
| Limit Type (string) | Which limit blocked: session, loss or wager, checked in that order. Empty while unblocked. |
| Blocked (boolean) | true from the moment a limit is hit until Reset. Gate the Spin button on it. |
Remaining
| Data | Description |
|---|
| Remaining Minutes (number) | Minutes left in the session, rounded up. -1 while Max Session Minutes is 0; the full allowance before Start. |
| Remaining Loss (number) | Max Loss minus current net loss (bets minus wins), never below 0. -1 while the loss limit is off. |
| Remaining Wager (number) | Max Wager minus total staked, never below 0. -1 while the wager limit is off. |
Usage
- Wire your game-start event to Start.
- Set Max Session Minutes, Max Loss and Max Wager (
0 = off), in the unit you use for bets.
- On each bet, set Bet and fire Bet Placed.
- On each payout, set Win and fire Win Paid.
- Disable the Spin button while Blocked is
true.
- Before each spin, compare the stake with Remaining Wager and Remaining Loss and refuse a bet that would cross either.
- On Limit Reached, show a dialog that names Limit Type and stop Autoplay.
- Wire the dialog's dismiss button to Reset.
This node is a courtesy for the UI, not the gate. Ignoring it does not let a prohibited bet through: the RGS refuses a bet that breaks the player's platform limits, self-exclusion or account status on every round. Treat a server refusal as the authoritative answer and this node as the early warning.