Names, IDs and the example’s vocabulary
A name is what you want a person to read. An ID is the stable reference actions and scripts use. A dropdown may show Player Inventory(inventory_lab). The reference you type into a script is inventory_lab.
| Example | Name | ID or number |
|---|---|---|
| Inventory GUI | Player Inventory | inventory_lab |
| Inventory element | Bag Grid | bag_grid |
| Save GUI | Save and Load | save_lab |
| Save element | Save Slots | save_slots |
| Player character | Builder | tester |
| Second character | Assistant | assistant |
| Inventory item | Brass key | brass_key |
| Stackable item | Bearing oil | oil |
| Manual save | Before the repair | Slot 1 |
| Reserved autosave | Workshop checkpoint | Slot 0 in this example |
Keep element IDs unique across your project. Several operations can address an element by ID, and reusing bag_grid for a different menu makes the intended target harder to identify.
The example inventory starts with eight different item IDs. It displays six at a time. That gives us a second page immediately, which is much easier to test than an inventory with only one item.
Numbers are not item IDs. Save slot 4 means the game’s fourth manual slot; it does not mean the fourth row currently on screen. A sorted save list can put slot 4 at the top.
