Use a visual node, action list or small helper
Figure 31. The same Change Variable action can be a visual node. Its parameters still identify the score variable, operation and amount.
1. Create a visual script with an On Interact entry.
2. Add Change Variable, choose score, Operation add and Value 1.
3. Connect the entry's NEXT output to the action's FLOW input.
4. Call that visual script from the button, then test the live score.
For a longer button command, put the same shared actions in Additional Event Actions and reorder the steps. For reading free text, call the tested Save Name or Check Answer GDScript helper, then continue with actions that use its variables.
| Direct GDScript helper | Use |
|---|---|
| GetGUIElementProperty(gui, element, "text", "") | Read the live text of these text boxes. |
| SetGUIElementProperty(gui, element, "value", text) | Refill a text box from a String. |
| Runtime.variables.get("visitor_name", "") | Read the accepted game value directly. |
Other elements can return stored definition properties rather than the final painted child-label text. Use the variable itself for game decisions. This guide uses explicit IDs; script caller references such as this are a separate feature, not another text wildcard.
