Hi Guys,
Quick Question - Is there a way I can set which cursor the game starts with?
I've only just discovered that Use and the Default cursor aren't they same thing - But the default cursor serves no purpose in game - And so the only want I can activate the use script is by using Single Use Interaction - but considering I have several cursors each with their own use interaction this wouldn't work well.
Also I notice even mousing over an interaction with this option selected resets the mouse to the default cursor too. But If I can fix the issue and get the game to start on the Use icon or eliminate the useless default cursor, that will be easy to fix.
Thanks.
Comments
Things as you've described are how they should be. The default cursor in "Choose Interaction Then Hotspot" mode is not a "use" cursor, so if 'single-use interactions' is disabled for a Hotspot then the correct icon needs to be selected.
When 'Single-use Interactions' is checked, the game basically switches back to "Context Sensitive" interaction mode for that one Hotspot, allowing for a single-click interface. It is just a convenience tool, however - you can find that the behaviour is the same if you disable it but instead change the Interaction method manually in the Settings Manager at runtime.
I expect what you'd be looking for is a way to change this option dynamically, so that you have more control over when this mode is used. You can get an API reference, to modify it through script, to any Manager field by right-clicking the field's label:
AC.KickStarter.settingsManager.interactionMethod = AC_InteractionMethod.ContextSensitive;
It may be that you'd want this to change when the side Menu is turned on, or when an interaction is run, or something else - see if you can work out the best time by changing the field manually, and I can advise on how best to change it through script.
Also know that the "Choose Hotspot Then Interaction" mode can also be used to change the cursor dynamically, rather than choosing an icon from a Menu. When using that mode, try setting the "See interactions with" to "Cycling Cursor And Clicking Hotspot" - perhaps it's a good use for this game.
Could I possibly set it to context sensitive but instead of right click for look - Can I set it up to run a verb coin? So Left click will work as use and right will bring up a verb coin menu to select the interaction?
I think that might be an easier solution that changing the interaction mode all the time.
That should go in your Run() function, but it looks like something else has been removed, perhaps a closing brace.
A tutorial on writing custom Actions can be found here.