Thread Tools Display Modes
Prev Previous Post   Next Post Next
04/24/23, 05:30 AM   #1
Simon Belmont
 
Simon Belmont's Avatar
Join Date: Nov 2020
Posts: 3
Crouch / Stand (unCrouch)

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.

Last edited by Simon Belmont : 04/24/23 at 05:34 AM. Reason: syntax
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » Crouch / Stand (unCrouch)


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off