(I had to remove the underscores in UIObject_Input_ActionTargetScript in the title to have the topic created).
Some actions while riding a horse require the rider to select a target (like “Charge”). It works when I use a spell-like ability, but unfortunately a spell can only have 5 subspells, and I need more than that (the “Ride” feat is the main spell, and “mount”, “dismount”, “charge” and others are subspells. That way, the feat only requires a slot in the hotbar). I’d like not to have two or more sets of actions for the riding feat, so I tried using the context menu and the UIObject_Input_ActionTargetScript call.
But since right-clicking on a character to display the context menu also sets the target object, it seems UIObject_Input_ActionTargetScript runs the script without letting the player choose a different target.
I know how to select a target from a GUI launched in a conversation, but from the context menu, the same GUI/script skips the “select a target with the mouse” part, probably because right-clicking on the player targets him at the same time. Is there a way to “untarget” (like right-clicking on the ground) after contextmenu.xml is shown but before UIObject_Input_ActionTargetScript is called?