8. Events, verbs and inventory rules
8. Events, verbs and inventory rules
An action is one instruction: show a message, change a variable, give an item, move a character or switch rooms. An action list runs instructions in sequence. A visual graph can run many of the same instructions with visible connections. A script can call them by name.
Figure 12. The selected power cell's Verb Actions. Its Take behavior belongs to the physical pickup in the room.
Choose the right event#
Object Events handles events such as clicks, entry or collision where supported. Verb Actions handles Look, Use, Talk and Take. Inventory Actions handles using a carried item on a target. A scene's First Enter or Enter events belong to the room, not to a random scenery object.
Avoid putting the same effect in both an object's general click event and its Use action unless you intend both to run. When a click produces two messages or awards points twice, check for duplicate wiring before changing the script.
