Hi,
I'm working on a First Person, point-and-click adventure game where the player has a magnifying glass in their inventory. I'd like to implement a specific behavior where:
When the player selects the magnifying glass from the inventory, it becomes the active cursor
The magnifying glass should stay selected even after clicking on hotspots or other objects
The only way to deselect it should be by right-clicking
Currently, Adventure Creator automatically deselects the inventory item after using it on a hotspot, which is the default behavior. However, for the magnifying glass, I want it to remain active for continuous examination of multiple objects.
Is there a way to achieve this behavior using only Adventure Creator's built-in features, without custom scripting?
AC: 1.84.4
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Never mind. I think I found the options I needed in the Settings->Inventory.
You might try just re-selecting the Inventory item if it becomes de-selected. You can do this with the Inventory / Deselect event in the Events Editor, passing in the ItemID parameter it generates into an ActionList: Check parmeter Action (to check that it's the glass), and then re-select it with Inventory: Select.
Use a Global bool as well to keep track of this behaviour, so that it doesn't do this when you actually want to de-select it.
Thanks Chris! I actually discovered that keeping inventory objects selected at all times works better for my first-person game. During playtesting, several players mentioned it was tedious having to reopen the inventory and reselect objects every time they wanted to try a new combination. This behavior seems to solve that issue nicely with the already available options. I appreciate you taking the time to offer a targeted solution though - that kind of specific help is really valuable.