40. Call the function with named fields
Figure 28. Call Script Function shows the chosen function’s named parameters and optional Result Variable.
1. In a separate caller graph, add On Interact with Use.
2. Add Call Script Function. Choose Award Workshop Points from Reusable Visual Tools.
3. Leave Expression off for amount and enter 7.
4. Enter result_value in Result Variable, then leave the field to commit it.
5. Connect On Interact to the function call, then to If Compare.
6. Compare {"$var":"result_value"} == 7 and show a success response on TRUE.
The selected function’s friendly name becomes the call node’s title. You still add the generic Call Script Function action from the palette; exposure does not create a separate permanent palette button for every project function.
The call runs its body, waits for it to finish, stores the returned value when requested, then follows NEXT. This example adds seven to score and stores 7 in result_value.
The function picker distinguishes script records and their language tables. Similar display names do not mean the functions are interchangeable. Check the script as well as the function name.
