WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   SetAttribute("spell",... (https://www.wowinterface.com/forums/showthread.php?t=35939)

BDelacroix 10-18-10 07:47 PM

SetAttribute("spell",...
 
Is there a way to set an attribute on a secure button with a target of a spell.

That is to set a button with the attribute "spell" "blabla" where blabla is a spell that expects you to then select another spell.

I keep looking around but haven't seen an example that did this.

Phanx 10-18-10 07:58 PM

You could just use macrotext instead of spell:
Code:

button:SetAttribute("type1", "macro")
button:SetAttribute("macrotext1", "/cast [@mouseover] Spell Name")


BDelacroix 10-19-10 09:06 AM

I have thought of this and will try it out but in my case it isn't a spell that requires an external target like something you can mouse over.

I'm using the trap launcher which gives a buff but while its up you have to select one of your traps which you then use the green target circle to place.

Still, though, I'll see what happens.

Duugu 10-19-10 09:37 AM

So, if your goal is to activate Trap Launcher and to cast the Trap with a single button/click/keypress - I think that's impossible.

BDelacroix 10-19-10 12:00 PM

You may be right and, in that case or in the interim if I find out otherwise, I may just have to make 2 buttons for each.

If I could make it work similar to blizzard's action buttons and just have the 5 that change spell state when that buff is on that would be nice but I am thinking that's a special deal only blizzard gets to do.

Thanks for the help everyone.


All times are GMT -6. The time now is 11:45 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI