43. Keep several visual functions in one record
Figure 30. A utility graph can contain separate function bodies with separate entry definitions.
One Visual Script record can contain several disconnected bodies. Each exposed function chooses its own first node. That lets a small utility record hold related operations without making every call start at the same entry.
1. Build the Award body as in lesson 38.
2. Build another body, such as a caller visibility operation using a Boolean enabled parameter.
3. Add a second definition with a different Function Name and the correct entry node.
4. Use {"$param":"enabled"} in a JSON-capable value field in that body.
5. End each body with its intended Return or End.
6. Test each function from a separate Call Script Function node.
Place each function body in its own area of the canvas. Keep the entry and return close enough to follow. A disconnected action in this situation is intentional because a function definition can start there.
A default run chooses the first On-prefixed node, or the first node if none exists. It does not run every disconnected body. For On Event helpers, use an exposed function: a generic default call can inherit the original event entry ID in this build.
