Thread Tools Display Modes
05-14-08, 09:34 PM   #1
Lique
A Defias Bandit
Join Date: Dec 2006
Posts: 3
Debuff mechanics

I'm trying to locate a way to find out what type of mechanic a debuff has. For example: Mage improved counterspell has a silence mechanic. Rogue cheap shot has a stun mechanic. Is there a way to find out what the name of the mechanic is in Blizz's UI? I know blizzard does it, because when you try to cast something, it will give you a message saying "You cannot do that while silenced", etc.
  Reply With Quote
05-15-08, 07:31 AM   #2
Layrajha
A Frostmaul Preserver
 
Layrajha's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 275
I think that what Blizzard does there is under the layer of the API available to addons. Blizzard pops error events when you can't cast a spell and transmits them to the API only when they already decided if you were stunned, silenced or whatever.

I guess that the choices that you have are either to parse tooltips and check if you can see keywords in them (wide but not sure approach) or to use a big table to relate spells and their effects.
  Reply With Quote
05-15-08, 05:42 PM   #3
Lique
A Defias Bandit
Join Date: Dec 2006
Posts: 3
How would you go about parsing the tooltips? I kind of looked at that as an option last night, but I also couldn't find an API function that would allow me to pull the tooltip. I found out how to get the name and a bunch of other things, but the tooltip wasn't in there.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Debuff mechanics


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