30. A compact reference for scripts
| What you need | Read this | Set or change this |
|---|---|---|
| Current Check Box / Radio Button state | GetGUIElementProperty(..., "button_pressed", false) | ChangeGUIElementProperty, property "checked", Boolean value. |
| Current Slider value | GetGUIElementProperty(..., "value", 75.0) | ChangeGUIElementProperty, property "value", numeric value. |
| Carousel current entry | Read "entries" and "selected_index"; check bounds. | Browse with CarouselPrevious / CarouselNext. |
| Normal Image foreground | Asset identity belongs to the element. | property "assetId", value = image asset ID. |
| Image background | Separate from the foreground. | property "backgroundImageAssetId". |
| Game variable | Runtime.variables.get("id", default) | SetVariable with name and value. |
The identifiers used in this guide#
| GUI | Important element IDs |
|---|---|
| image_lab | inspect_image, framed_image, animated_image |
| gallery_lab | reference_carousel |
| inventory_lab | carried_carousel |
| settings_lab | subtitles_check, hints_check, opacity_slider, settings_art |
| settings_lab radio groups | prefs_difficulty; prefs_hint_style |
Keep element IDs distinct across these examples. Supply the owning GUI ID as well as the element ID when using GUI actions and property helpers.
Screenshots and runtime checks: PCA 3D Adventure Studio 0.86.3.4. Artwork shown is from existing engine project assets. No practice files are included.
