Anonymous user
GUI, Inventory & Menu: Difference between revisions
→Using a specific inventory item to trigger an action
Line 42: | Line 42: | ||
''I need a specific inventory item to trigger an action when interacting it with a hotspot/object/character/other item. So far, I can only see how to set it so that any item can be used.'' | ''I need a specific inventory item to trigger an action when interacting it with a hotspot/object/character/other item. So far, I can only see how to set it so that any item can be used.'' | ||
If you're using the Interaction Editor, choose "'''Conditional - if inventory item is used'''" action under the "'''Use inventory item on | If you're using the Interaction Editor, choose "'''Conditional - if inventory item is used'''" action under the "'''Use inventory item on (whatever)'''" interaction. | ||
Otherwise, if you're using scripting only, use the following code (in AGS V2.62): | Otherwise, if you're using scripting only, use the following code (in AGS V2.62): |