Hello and firstly, I am brand new to ESO's API.
Most of my "coding" experience was back in the days when Morrowind modding was going gangbusters, and since then in AutoHotkey; just to give you some vague idea of 'where I'm coming from'.
My goal is to find a means of converting the Crouch "toggle on/off" action into two separate "one-way toggle" actions.
But, before I bother altering-a/creating-a-new Keybind in a .lua, I thought I'd just ask real-quick if this .xml is viable. IE: am I doing it wrong?
I did poke around ESOUI's Addon Wiki but got pretty lost. Thanks,
.xml
Code:
<Bindings>
<Layer name="SI_KEYBINDINGS_LAYER_GENERAL">
<Category name="SI_KEYBINDINGS_CATEGORY_COMBAT">
<Action name="SPECIAL_MOVE_CROUCH">
<Down>
if not GetUnitStealth(player) >= 2 then
OnSpecialMoveKeyPressed(SPECIAL_MOVE_INDEX_CROUCH)
end
</Down>
</Action>
<Action name="SPECIAL_MOVE_STAND">
<Down>
if GetUnitStealth(player) >= 2 then
OnSpecialMoveKeyPressed(SPECIAL_MOVE_INDEX_CROUCH)
end
</Down>
</Action>
</Category>
</Layer>
</Bindings>
I would also settle, should the above prove impossible, for the Crouch-key to be a one-way (
into) Stealth action; as there are already many ways in this game to exit Stealth, without specifically "uncrouching".
Thank you very much for taking the time to read this.