01/22/15, 04:52 PM | #1 | |
Join Date: Jan 2015
Posts: 6
|
CC Break & CC Immunity
I'm looking for functions or events that will fire if the player needs to cc break or when the player has cc immunity. I'd like to add some UI elements to make these two states a little more visible.
|
|
01/22/15, 11:35 PM | #2 | |
|
EVENT_COMBAT_EVENT returns all kinds of information: Lua Code:
As an example I see one that says: ACTION_RESULT_STUNNED Which is probably one of the results your looking for. So my guess is you could do something like: Lua Code:
Hope that helps. |
|
01/23/15, 12:00 PM | #3 |
I would sugges to use Active Combat Tips system for this task
After you set to 'Always Show' in-game active combat tips, you can utilize fully the event Code:
EVENT_DISPLAY_ACTIVE_COMBAT_TIP (integer eventCode, integer activeCombatTipId) |
|
02/08/16, 04:23 PM | #4 | |
Join Date: Jan 2015
Posts: 6
|
Late thank you for the replies guys. I am using OnCombatEvent and ACTION_RESULT_STUNNED.
1) Is there a way to determine if you are currently CC immune? Is there a way to check for the swirly animation under your feet? 2) I'm looking for a way to tell if the reticleover currently has reflective scales or defensive stance up. Is there any way to pull the visual effects from your target? GetUnitBuffInfo('reticleover', x) isn't returning anything useful in this context. Last edited by XEVENEX : 02/08/16 at 06:12 PM. |
|
02/08/16, 11:07 PM | #5 | ||
|
I have no idea if all effect/buffs for immunities are displayed as buffs/effects, but I would start by trying something like this:
Warning: Spoiler
Lua Code:
Warning: Spoiler
Lua Code:
To find the abilityId for reflective scales put it on your action bar, place the mouse cursor over it and type /zgoo mouse in chat (zgoo addon must be installed). The abilityId will be listed as ["actionId"] = xxxxxx Do note that each rank/morph has a different abilityId...so if you want it to work for all versions of reflective scales you'll have to find all of their abilityId's. Here is an example of how to do that:
Warning: Spoiler
Lua Code:
Then create a table with all of those abilityId's and use it as a lookup to see if any given abilityId represents one of the reflective scales ranks/morphs:
Warning: Spoiler
Lua Code:
Last edited by circonian : 02/08/16 at 11:33 PM. |
||
02/09/16, 06:09 AM | #6 | |
Some skills that have multiple effects with different length simply apply multiple abilities to the target, so just looking for it in the action bar won't necessarily give you the correct id. P.S. There are also cases where the API reports the wrong effect, but still applies the correct ability (e.g. Phase). |
||
02/09/16, 01:50 PM | #7 | |
|
|
|
02/10/16, 09:40 AM | #8 | |
Join Date: Jan 2015
Posts: 6
|
I will try looking at IDs later tonight.
I have tried iterating through the target buffs already, printing to chat effectName. It only ever gave me stuff like food, mundus, and vapirism. With that limited testing I assumed that the api would not tell you about active buffs like reflect. I suppose some things have a null effectName and my test was missing all of those buffs? Thanks again. Last edited by XEVENEX : 02/10/16 at 09:45 AM. |
|
02/10/16, 08:43 PM | #9 | |
|
You could still do it by monitoring the event (which would be better anyhow): Lua Code:
Lua Code:
Or you could just monitor for all targets that receive the desired effect and display them with their name so you can tell which target is which. |
|
ESOUI » Developer Discussions » General Authoring Discussion » CC Break & CC Immunity |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|