Help using :SetAttribute()

by Woops | 27/12/2007 22:02:18

Woops

I'm making a few buttons to ease a few things, and one issue I'm running into is getting one button to cast Unending Breath on my target with left click, and when ALT-clicked to cast it on the player. I've tried a few things from the WoW Wikki, but I cannot seem to figure this bugger out.

So far, what I have working is looking like:

button:SetAttribute("type1, "spell")
button:SetAttribute("spell", "Unending Breath")


But that does not have the right-click to target = player. Any tips?
Mercy!? You want mercy!? I'm CHAOTIC NEUTRAL!!!

by Slouken | 28/12/2007 02:50:54

Slouken


Q u o t e:
I read this like 6 times, and I'm still confused. =P
 MissButton2:SetAttribute("type", "spell")
MissButton2:SetAttribute("modifiers", "SELFCAST:self")
MissButton2:SetAttribute("self-unit", "player")
MissButton2:SetAttribute("spell", "Unending Breath")
returns an error when left or right clicked:
Interface\FrameXML\SecureTemplates.lua:65: attempt to call global 'ParseModifierString' (a nil value)


Forwarded to Q/A, thanks!

Blizzard Announcement Recent Blizzard Announcements

 



Loaded in 0.05494 seconds