Skip to reading
Save Games & Inventory

Widget commands and direct saves differ

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page
Source table from Widget commands and direct saves differ, page 59
Operation routeUses widget mode and range?Uses widget name/overwrite prompts?
Save Game Widget: CommandYesYes, according to its settings.
Save Game Slot / Load Game SlotNo; uses the valid game-wide slot.No. These are direct operations.
Runtime.save_game / load_gameNo; direct runtime calls.No. Your script owns the surrounding player flow.

Use widget commands for player-facing menu buttons. Use direct slots for a deliberate checkpoint, quick-save feature or scripted save operation where your game has already chosen the destination.

A load-mode widget can refuse a save-selected command while a direct Save Game Slot action still writes to a valid slot. That is expected: the widget’s mode is not a global prohibition on all saving.

Keep the target GUI and element explicit when several save widgets exist. A command with an empty target can affect more than one matching widget; that is rarely useful for a Save selected button.

A command being dispatched does not prove an operation succeeded. A forbidden slot, an empty load slot or a canceled prompt can leave the saved state unchanged. Inspect the actual slot information when later logic needs to know the result.

Page 59 of 96Permalink
Go to page