21. Track selection and slot events
Figure 46. Selection and status variables can drive separate labels or authored checks.
1. In the Variable Designer, create Number selected_save with default -1.
2. Create String selected_save_status with default none.
3. Set the widget’s Selection Variable to selected_save and Status Variable to selected_save_status.
4. Add a Label with Selected: $$selected_save Status: $$selected_save_status.
5. Run the game and click an empty manual slot, an occupied manual slot and the autosave. Compare the displayed values.
The status variable uses empty, saved or autosave. The slot number is the actual saved-game number. A Number variable can display 1.0 in an ordinary Label; that still represents slot 1.
These variables update on explicit selection. In this build, saving, renaming or deleting does not necessarily rewrite them to the new file status. Re-select or query current save information before a later decision.
