PCA Script: the same item and save actions
PCA Script uses readable statements for common inventory work and snake-case shared action functions for detailed operations. This record gives one oil and opens the inventory:
language 1.0give oil to player
show gui inventory_labUse the current game’s IDs. A second record can dispatch the same Save selected command used by the Button:
language 1.0let options = {"guiId": "save_lab", "elementId": "save_slots", "command": "save-selected"}
save_game_widget_command(options)Shared action functions wait through the action system. They use the same property names as the GDScript dictionaries. This command still obeys the widget’s mode, range and prompt rules; the language does not bypass them.
The small command example has no mandatory-selection guard. Add your own selection check or use the guarded GDScript version when that is part of your menu’s design.
