Skip to reading
PCA Script Programming

save_game_widget_command()

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

Save Game Widget: Command | Action ID: SaveGameWidgetCommand

Control a save widget's navigation, selection or selected/explicit-slot operations.

Source table from save_game_widget_command(), page 181
Option key / fieldMeaning and accepted inputDefault
GUI guiIdChoose an authored GUI ID.Blank
Save Game Widget elementIdChoose an element inside the selected GUI.Blank
Command commandChoose: previous, next, up, down, refresh, select-first, select-previous, select-next, load-selected, save-selected, rename-selected, delete-selected, select-slot, load-slot, save-slot, rename-slot, delete-slot."previous"
Explicit Slot (-1 = Selected) slotExplicit save slot number. Selected-slot widget commands use widget selection instead.-1

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
save_game_widget_command({"guiId": "hud", "elementId": "topline", "command": "previous"})

In use. Use select-slot with a slot number, or save-selected after the player picks a row. Commands ending in -selected use widget selection; commands ending in -slot use Slot. Test overwrite, rename and delete behavior on disposable saves.

Page 181 of 357Permalink
Go to page