Find a helper for a common job
DESK REFERENCE
A helper answers a question or performs a small operation. A gameplay action changes what the game does. You can use both in the same function.
| Text | Lower, Upper and Trim prepare an answer. Replace edits a piece of text. Split and Join move between strings and lists. |
|---|---|
| Numbers and positions | Clamp keeps a value in bounds. RandomInt picks a whole number in an inclusive range. Distance and Vector3 are useful for positions. |
| GUI | GetGUIElementProperty(gui, element, property, fallback) reads one control. SetGUIElementProperty(gui, element, property, value) updates it. SetGUIProperty can change the whole GUI. |
| Stored game data | ReadTextFile and ReadJSONFile accept a fallback. WriteTextFile and WriteJSONFile report whether the write succeeded. FileExists tests a path. |
| Story progress | InventoryCount(item, character) counts a character’s items. HasVisited(room, character) checks room history. The character argument is optional for both. |
| Communicate | CallScript passes an argument list to a named function. EMIT EVENT sends a dictionary to a listener. RETURN sends one result to the caller. |
