Thread Tools Display Modes
07/10/15, 03:19 PM   #1
dharbert
Join Date: Jul 2015
Posts: 7
Need help with creating add-on. Is this one even possible?

I'm new at this, but I am wanting to create an add-on that lets you know when you reflect or absorb a ranged or magical attack, and keep track of what those attacks were, and how many times you've reflected or absorbed them.

Let's simplify it to just reflected ranged attacks. Basically, every time I reflect a bow or other ranged attack (with reflective scales, etc..) I want it to detect what the attack was that I reflected and keep a tally of how many times I have reflected that particular attack. Something like this:

You have reflected Light Attack 10 times
You have reflected Heavy Attack 10 times
You have reflected Poison Arrow 20 times
You have reflected Stonefist 20 times

Is this possible?
  Reply With Quote
07/10/15, 04:32 PM   #2
Kraeius
 
Kraeius's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 25
Tinker with Combat Cloud
  Reply With Quote
07/12/15, 07:33 PM   #3
dharbert
Join Date: Jul 2015
Posts: 7
Originally Posted by Kraeius View Post
Tinker with Combat Cloud
Ok, so I found the constant that applies to reflecting attack, ACTION_RESULT_REFLECTED, so now for the next part. Can we know the name of the attack that was reflected, or does the API still not allow that?
  Reply With Quote
07/13/15, 01:06 AM   #4
Rhalyf
AddOn Author - Click to view addons
Join Date: Jul 2015
Posts: 12
I would look into EVENT_COMBAT_EVENT

The event returns a result integer that could correspond to the constant you found. If so, you have all the information you're looking for. All that's left is storing the data and displaying it.

I can help you look into it later when I'm not on my phone.
  Reply With Quote
07/13/15, 02:49 AM   #5
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,579
Incoming combat events currently do not give us the name of the attacker.
This will change in Update 7 though.
  Reply With Quote
07/13/15, 07:54 PM   #6
dharbert
Join Date: Jul 2015
Posts: 7
Originally Posted by sirinsidiator View Post
Incoming combat events currently do not give us the name of the attacker.
This will change in Update 7 though.
Thanks for the link. I read the changes that are coming to the API and they are much needed.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Need help with creating add-on. Is this one even possible?


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