I'm planning to use a verb-interface known from old LucasArts games, e.g. Indiana Jones 4 or Monkey Island 1-2. I've set it up in Adventure Creator so that each of the verbs (open, close, give, use, look at, push, ...) maps to an interaction cursor. So far, so good.
The issue I'm facing now is that not all objects/hotspots in the game will implement every interaction. For example, a door hotspot will implement "open" and "close", but probably not "give" or "pick up". For these cases I'd like to globally define default interactions that run when interactions are not specifically defined on the hotspot.
Is there a way to define default fallback interactions that run when no other interactions are defined?
Thanks!
Comments
I'll have a look into this - I take it you've set your game's Intertaction method to Choose Interaction Then Hotspot?
This will be set to the Hotspot when run, allowing you to display its name with the [paramlabel:X] token.
Once you've defined a GameObject parameter, you can insert it into any GameObject Action field (such as the "Object: Add or remove" above), or just use it in a token text.
The "X" is the parameter's ID value. This will need to be "0" in your case, since the GameObject parameter will have to be the first one listed.
I'm new to AC and I'm following the tutorial.
At https://youtu.be/podNefNl958?t=2078, I think I'd prefer my users to only use the left mouse button, so I set up Hostpot then Interaction +clicking menu + click on hotspot.
But unhandled action is NOT present anymore in Cursors!
I'd like a LookAt action to TurnToFace (or else) without having to set it up for each hotspot (and we can't copy an interaction).
Is there a way to add unhandled actions with prefabs like with the 'Interaction then HotSpot' setting?
This way, if there is unhandled action, it's shown up in the menu and if it's empty (both interactions and unhandled) it doesn't show up(?).
The "Choose Hotspot Then Interaction" mode normally only shows icons for which interactions are defined on the Hotspot - so unhandled interactions are not necessary.
However, if "Auto-hide Interaction icons based on Hotspot?" is unchecked, then all icons will show - and unhandled interactions do indeed become appropriate. I shall remedy this in the next release - thank you for pointing it out.