Thread Tools Display Modes
05/28/16, 04:01 PM   #1
dorrino
AddOn Author - Click to view addons
Join Date: Mar 2015
Posts: 50
ACTION_RESULT_ROOTED not firing and SCT events registration.

Taking these questions out of my previous thread for greater visibility.

I wasn't able to find any information about the subject, so here it is.

1. It seems that EVENT_COMBAT_EVENT nevers fires for ACTION_RESULT_ROOTED. I observed that ACTION_RESULT_SNARED fires for both roots and snares, though. Is there a way to determine if your character is rooted and rooted only?

2. How do you register for SCT events? ESO API references a bunch of SCT constants and SCT functions, but nowhere i could find SCT events themselves nor ways to register for them. If ZOS just didn't provide those, then what's the point of providing the constants related to the events?

Thanks
  Reply With Quote
05/29/16, 01:48 AM   #2
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,602
Originally Posted by dorrino View Post
Taking these questions out of my previous thread for greater visibility.

I wasn't able to find any information about the subject, so here it is.

1. It seems that EVENT_COMBAT_EVENT nevers fires for ACTION_RESULT_ROOTED. I observed that ACTION_RESULT_SNARED fires for both roots and snares, though. Is there a way to determine if your character is rooted and rooted only?

2. How do you register for SCT events? ESO API references a bunch of SCT constants and SCT functions, but nowhere i could find SCT events themselves nor ways to register for them. If ZOS just didn't provide those, then what's the point of providing the constants related to the events?

Thanks
1. Just a wild guess, but maybe they changed roots internally to be snares at 100% for some reason?
2. SCTEventType is used in some of the API functions for the SCT (GetSCTEventVisualInfoId, SetSCTEventVisualInfo, IsSCTSlotEventTypeShown, SetSCTSlotEventTypeShown, GetSCTSlotEventVisualInfo, SetSCTSlotEventVisualInfo) which are not used in the UI itself, but available for addons.
  Reply With Quote
05/30/16, 02:47 PM   #3
dorrino
AddOn Author - Click to view addons
Join Date: Mar 2015
Posts: 50
Originally Posted by sirinsidiator View Post
1. Just a wild guess, but maybe they changed roots internally to be snares at 100% for some reason?
That's interesting. It that's so, there could be a difference in a value in the event, like snares have it <1 and roots have it as 1. Will check it out. Thanks.

Originally Posted by sirinsidiator View Post
2. SCTEventType is used in some of the API functions for the SCT (GetSCTEventVisualInfoId, SetSCTEventVisualInfo, IsSCTSlotEventTypeShown, SetSCTSlotEventTypeShown, GetSCTSlotEventVisualInfo, SetSCTSlotEventVisualInfo) which are not used in the UI itself, but available for addons.
I'm still examining SCT api. There's literally no information about it, besides what ZOS provided in api patch notes.
  Reply With Quote
05/31/16, 08:03 AM   #4
ZOS_ChipHilseberg
ZOS Staff!
Premium Member
Yes this person is from ZeniMax!
Join Date: Oct 2014
Posts: 551
I believe that a snare over 100% is used to do a root. We could probably break out the action results into snare, root, and speed boost like SCT does if that helps.
  Reply With Quote
05/31/16, 03:10 PM   #5
dorrino
AddOn Author - Click to view addons
Join Date: Mar 2015
Posts: 50
Originally Posted by ZOS_ChipHilseberg View Post
I believe that a snare over 100% is used to do a root. We could probably break out the action results into snare, root, and speed boost like SCT does if that helps.
Please do. At least for consistency with SCT. ACTION_RESULT_ROOTED indeed firing for 100% snares should be enough. I'm currently building an addon similar to WoW on-screen CC announcer and haven't been able to find a way to detect if your character is rooted. While SCT reported "ROOTED" status all the time

Speaking of SCT, i'm quite new at Lua progamming, but is my current understanding correct that i can't change parameters of default SCTEventVisualInfoId's?

So if let's say i want to alter the font size just for one particular SCT event, i need to create my own SCTEventVisualInfoId, then attach it to a SCT slot, set it up and disable default output for this SCTevent through game options?

I tried to find the current SCTEventVisualInfoId and GetSCTEventVisualInfoId(SCT_EVENT...) returned 0 for a dozen SCTeventIds i tried. And while GetSCTEventVisualInfoTextFontSizes(0,...) returned some values for font sizes SetSCTEventVisualInfoTextFontSizes(0,...) had no effect on them, so i assumed SCTEventVisualInfoId - 0 is protected.

There's literally no information online about anybody making a SCT related addon, so all i have is good old trial and error and some help would be awesome.

Thank you.

Last edited by dorrino : 05/31/16 at 03:23 PM.
  Reply With Quote
10/01/24, 06:38 AM   #6
barny
AddOn Author - Click to view addons
Join Date: Jan 2024
Posts: 1
Late Pickup

Picking up this question from several years ago.
ACTION_RESULT_ROOTED (EVENT_COMBAT_EVENT) still not firing. Is there a way to determine whether the "snare" is actually a root, by getting some info about the snare percentage for example?
  Reply With Quote
10/01/24, 10:57 AM   #7
Anthonysc
AddOn Author - Click to view addons
Join Date: Jan 2022
Posts: 19
Originally Posted by barny View Post
Picking up this question from several years ago.
ACTION_RESULT_ROOTED (EVENT_COMBAT_EVENT) still not firing. Is there a way to determine whether the "snare" is actually a root, by getting some info about the snare percentage for example?
As far as I know the only even semi-reliable way is to look for the combatTipID 19 from EVENT_DISPLAY_ACTIVE_COMBAT_TIP. At least, that's the way I found that worked kind of well enough for LUI, although it definitely isn't 100% reliable, and IIRC it doesn't work unless the basegame menu option to display the combat tips is enabled. Really wish the event would get fixed.
  Reply With Quote
10/01/24, 11:52 AM   #8
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,193
and IIRC it doesn't work unless the basegame menu option to display the combat tips is enabled
Copy that, you need to have that enable or the hints do not fire and thus you do not get the possibility to react on them
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » ACTION_RESULT_ROOTED not firing and SCT events registration.

Thread Tools
Display Modes

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