11. Assign a graph to a verb interaction
Figure 11. The key’s Pick Up verb calls Take the Brass Key through Run Visual Script.
1. Open the room in Scene Designer. Select the actual key object.
2. Open its Verb Actions tab. Find Pick Up / Take.
3. For the first step, choose Run Visual Script.
4. Choose Take the Brass Key(take_key) in Script. Apply Changes and save.
5. In the graph’s On Interact node, choose Pick up(take).
6. Start Test Scene, choose Pick Up and click the key.
For a Use switch, make the same assignment under Use and choose use on the entry. You can also call a graph from a general click or trigger event. Choose the event you want the player to perform, rather than assigning the same work everywhere.
An action list can run work before or after the graph call. For example, a short sound can precede the call. Keep one clear owner of the reward logic so it is not awarded once in the list and again in the graph.
Use Preposition is a separate interaction setting. A simple switch can use a plain Use action; a “Use key with door” puzzle also needs its inventory/preposition response configured.
