Hello everyone!
Does anyone know if it's possible to override the name of an interaction in a certain hotspot?
I'll explain with a simple scenario: Let's say you have a generic "Use" interaction set up under the Cursors tab in AC Game Editor and you have set the "Prefix cursor labels?" option
When you select use as your Interaction (I have my game set to "Select hotspot then interaction" but I reckon it would be similar with the other modes) your cursor will say "Use hotspot" when you hover a hotspot interaction
It would be cool if there was a way to specify that a certain hotspot-interaction combo should have a different label, so for example if you're selecting "Use" on an NPC the label will say "Push NPC" instead of "Use NPC", similar to how Curse of Monkey Island used to associate different verbs to it's 3 icons
The only way I can think of doing this is cloning the "use" action and assign it to that hotspot, but it's a bit clunky because it would require updating the interaction menu to include every single variant (and also clutter the interactions in the game) while simply overriding the verb in a specific interaction would be much simpler
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Verbs and interactions are tied together. If you wanted to associate the Interaction with a different Verb, it would need to be set in the Hotspot's Inspector.
It is, however, possible to override the Hotspot's label through custom script when over a given Menu element, by way of hooking into the OnRequestMenuElementHotspotLabel event hook.
Are you referring to the Interaction menu? This script, attached to the Hotspot and its Inspector filled it, ought to do it:
@ChrisIceBox yeah the script does exactly what I was looking for!
I think it could be useful if that was done natively in AC, like for example adding an option "Override interaction verb" right under "Enabled" here in the inspector
https://d.pr/i/SB2Lby
But the script works fine! I'll probably try to fine tune it so it can obtain the hotspot automatically but it was a HUGE help!