Back to Documentation
Hold & Win Node
HnwWeightedRespin
Respin unlocked positions using weighted symbol distribution
Inputs
lockedTagstringrequiredTag identifying locked positions (e.g. 'locked:true')
distributionWeightedEntry[]requiredResolved weight table entries [{symbol, weight}]
symbolPrefixstringPrefix for symbol tags written
Default: symbol
Outputs
newLandedCountnumberNumber of new bonus/collect/multiplier symbols that landed
Overview
For each unlocked position on the grid, picks a new symbol from a weighted distribution. Locked positions are skipped. After placement, counts how many new bonus/collect symbols landed.
Algorithm
- Find all position entities (
pos_*) - For each position:
- Skip if position has
lockedTag - Pick symbol from weighted distribution using RNG
- Clear existing symbol tags
- Set new
symbolPrefix:symboltag - If bonus/collect/multiplier, auto-lock the position
- Skip if position has
- Return count of newly landed special symbols
Auto-Locking
When a special symbol (bonus, collect, multiplier) lands, the position is automatically locked by setting the lockedTag. This ensures the symbol persists for subsequent respins.