View Single Post
10/13/21, 10:15 AM   #3
Razor1980
AddOn Author - Click to view addons
Join Date: Nov 2016
Posts: 12
Originally Posted by Baertram View Post
Afaik there are not API functions or events to support this so far.
We requested them already as you can see here:
https://www.esoui.com/forums/showthr...ighlight=block

But there is nothing implemented to be used so far, I think.

You could check the combat events if there is anything about incoming damage types = "block" or similar.
https://wiki.esoui.com/EVENT_COMBAT_EVENT
There is a abilityActionSlotType == ACTION_SLOT_TYPE_BLOCK

And in addition try something like the usage of EVENT_POWER_UPDATE (number eventCode, string unitTag, number powerIndex, CombatMechanicType powerType, number powerValue, number powerMax, number powerEffectiveMax) to check for stamina loss (CombatMechanicType == POWERTYPE_STAMINA) as the block happens.
Thanks. What I managed to find in the meanwhile in the EVENT_COMBAT_EVENT
sourceType=COMBAT_UNIT_TYPE_NONE
abilityActionSlotType= ACTION_TYPE_NOTHING
targetType=COMBAT_UNIT_TYPE_PLAYER

Doesn't make any sense, but it seems kinda working.
  Reply With Quote