Skip to reading
Save Games & Inventory

29. Action and script reference

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 29. Action and script reference, page 87
You need to…Use
Give or consume an itemGiveInventory / AddInventory / RemoveInventory.
Change an amountChangeInventoryQuantity.
Pass an item between charactersTransferInventory.
Check ownershipHasInventory(item_id, character_id, amount).
Read a quantityInventoryCount(item_id, character_id).
Open / close a menuShowGUI / HideGUI.
Enable / disable a controlEnableGUIElement / DisableGUIElement.
Read a live GUI valueGetGUIElementProperty(gui, element, property, fallback).
Operate through widget rulesSaveGameWidgetCommand.
Write / restore a fixed saveSaveGameSlot / LoadGameSlot.
Open system Save / Load flowSaveGame / LoadGame.
Choose authored picture for savesSetSaveSlotImage.

These are API names. Action-list labels use readable names and can add spaces. Use the action’s displayed form to fill character, GUI, element and slot references; do not paste a whole script into a single ID field.

GDScript records in this book extend script_base.gd. Create a normal script record, apply it and assign that record to the intended event. Do not paste the run function into the raw JSON for a GUI element.

Page 87 of 96Permalink
Go to page