Symbol Frequency Tracker
This node analyzes the reels to count symbol occurrences.
The Symbol Frequency Tracker node calculates how often each symbol appears on the screen.
The Symbol Frequency Tracker node scans the current state of the reels and counts the number of times each symbol ID appears. It outputs both raw counts and percentage frequencies. This is useful for debugging, analytics, or game mechanics that depend on symbol collection (e.g., "Collect 50 Star symbols").
Parameters
| Data | Description |
|---|
| Reels | The 2D array of symbols. |
| Number of Symbols | The total number of unique symbols to track. |
Actions
| Signal | Description |
|---|
| Do | Triggers the analysis. |
| Reset | Clears the accumulated counts. |
Outputs
Results
| Data | Description |
|---|
| Symbol Count Results | Object mapping Symbol ID to Count. |
| Symbol Frequency Results (%) | Object mapping Symbol ID to Percentage of total visible symbols. |
Events
| Signal | Description |
|---|
| Done | Triggered when complete. |
Usage
Collection Feature
- Game requires collecting "Gold Coins" (Symbol ID 5).
- After every spin, trigger Do.
- Read
Symbol Count Results["5"].
- Add this to a "Collection Progress" variable.
Debugging
- Connect to Slot Simulation.
- Run 1000 spins.
- Check Symbol Frequency Results.
- Verify that high-value symbols appear less frequently than low-value ones (according to your weights).
Detailed Behavior
- Accumulation: The node accumulates counts over multiple calls until Reset is triggered. This allows you to track frequency over a session.
Troubleshooting
- Missing Symbols: Ensure Number of Symbols covers the range of IDs used in your reels.