7. Add visible and audible feedback
Build the lever's response in an order that makes sense even if the player uses it more than once. Set a final state first; then present the feedback.
| Step | Action | Fields |
|---|---|---|
| 1 | Change Variable | powered; Set; true. |
| 2 | Change Object Description | lamp; The blue signal is powered. |
| 3 | Play Sound | chime; channel puzzle. |
| 4 | Show Message | The signal is on.; 2.2 seconds. |
Figure 5. A later Use step starts a sound effect on the named puzzle channel.
The sound starts and the list continues to the message. The list does not wait for a sound effect to finish just because it appears earlier. If the timing needs a precisely placed pause, call a graph with Wait or use a cutscene timeline.
The lamp's new description is useful when its Look behavior uses the stored description. If you write a fixed Look message saying "The lamp is off," that fixed message will keep saying it until you change its logic too.
0.86.4.3 / Cutscene hooks and camera events > Page 188
