I'm not positive, but try just switching lines 4 and 5.
Edit: Never mind, someone else got there first.
Questions about a macro I want to try:
Will the macro above ignore the /tar [@focus] portion if I don't have a focus set? Curious if I can use this as catch all for fights were you use the Extra Action Button to throw it to another player (as in the Anguish on Protectors) and others where you just use it (like dropping bombs Spoils). If it won't work as written, is there another way to write it to get that to work how I want to use it (does ExtraActionButton1 need to be /click – can it be /use or /cast, for example?)
Last edited by Dispersedshadow; 2013-12-13 at 10:57 PM.
Code:/stopmacro [@focus,noexists] /tar focus /click ExtraActionButton1
Awesome. Thanks to both!
Correct, might just have been me misreading what was asked.
Does "/click" work like "/use"? – could I put my conditionals after it and before "ExtraActionButton1", like this?:
Code:/click [@focus,exists] ExtraActionButton1; ExtraActionButton1
You could do this, if you want to be explicit:
But, to answer your question: /target [@focus] will always run /target focus, regardless of whether you have one; it just won't have any effect if you don't have one (just like typing /target Goo Blah Darbledum doesn't do anything). Adding exists just prevents it from even trying.
/target will target the UnitID provided by the conditional block that passes in preference to the value that is provided to the slash command. Usually. So, if you typed this...
...mouseover would be ignored.Code:/target [@focus,exists] mouseover
This behavior changes if the conditional block that passes applies implicitly or explicitly to target. In that case, the value provided to the slash command is used. So, if you typed this...
Code:/target [@focus,exists,nodead][exists,nodead][@player] pet
- If you had a focus and it was alive, pet would be ignored and focus would be targeted.
- If you had a target and it was alive, pet would be targeted.
- In all other cases, pet would be ignored and player would be targeted.
What that also means, amusingly, is that if you typed this...
...it would do one of two things which would both produce the same outcome:Code:/target [help,nodead]
Adding "target" to the end of the command will also not change the behavior as /target (with no parameters) and /target target do the same thing -- nothing.
- If you had a target and it was friendly and alive, attempt to target something named "" (empty string).
- In all other cases, don't try to target anything.
Which UnitID has special behavior varies by slash command. Wowpedia explains it nicely: [target=] or [@] versus unit parameters
Last edited by Pelf; 2013-12-15 at 11:07 AM.
Shiboomi of <Riot> on US-Sargeras
I've tried playing around with some macros, and I wanted to make a shadowstep macro where I shadowstep on my target with no modifier, shadowstep on focus with shift modifier and shadowstep on partymember with control modifier. I've gotten the focus-stepping to work, but cant seem to get it to jump to my partymember. This is what I have so far:
/cast [nomod] Shadowstep
/cast [modifier:shift, target=focus] Shadowstep
/cast [modifier:ctrl, target=namehere] Shadowstep
Can anyone please tell me where I am wrong in this? I'd very much like to avoid a mouseover macro, simply because it'd be easier having a set target as I mostly play 2s.
I used to have 13 macros that i run every time i log on. I managed to redo first 6 and created an addon. But Im having problems with these:
Managed to move the frames, but they are not scaling, pvp trinket part is too advanced. Could anyone help me to rewrite CODE so its suitable for lua? Thanks in advance!!!Code:-- Macro 7 -- /run ArenaEnemyFrame1:SetScale(1.3) /run ArenaEnemyFrame2:SetScale(1.3) /run ArenaEnemyFrame3:SetScale(1.3) /run ArenaEnemyFrame4:SetScale(1.3) /run ArenaEnemyFrame5:SetScale(1.3) /run ArenaEnemyFrame5:SetPoint("topright", -390, -25) -- Macro 8 -- /run rc=36;rfc=CooldownFrame_SetTimer;aef="ArenaEnemyFrame";hb="HealthBar";trt=GetItemIcon(37864)ctf = CreateFrame;oe="ARENA_OPPONENT_UPDATE"ve="PLAYER_ENTERING_WORLD"tr="RIGHT"LoadAddOn("Blizzard_ArenaUI") /run hooksecurefunc(UFP,function(self) if self.p -- Macro 9 -- /run function Cr(i)local f=ctf("Frame",nil,UIParent)f:SetPoint(tr,_G[aef..i..hb],tr,80,0)f:SetSize(rc,rc)f.t=f:CreateTexture(nil,"BORDER")f.t:SetAllPoints(true)f.t:SetTexture(trt)f.c=CreateFrame("Cooldown",nil,f)f.c:SetAllPoints(f)return f;end -- Macro 10 -- /run function ur(f,i)f:SetScript("OnEvent",function(_,e,u,_,_,_,s)if(u=="arena"..i)then if(s==42292 or s==59752)then rfc(f.c,GetTime(),120,1)elseif(s==7744)then rfc(f.c,GetTime(),30,1)end end end)f:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED")end -- Macro 11 -- /run for i=1,5 do _G["rf"..i]=Cr(i)local f=_G["rf"..i]ur(f,i)f:Hide()end function str(o,m)for i=1, m do local f=_G["rf"..i]if o then f:Show()else f:Hide()f.c:Hide()end end end -- Macro 12 -- /run tk=ctf("Frame")tk:SetScript("OnEvent",function(_,e)if e==oe then str(1,GetNumArenaOpponents())else str(nil,5)end end)tk:RegisterEvent(oe)tk:RegisterEvent(ve) -- Macro 13 -- /run ArenaEnemyFrame1:SetPoint("topright", -390, -25) /run ArenaEnemyFrame2:SetPoint("topright", -390, -25) /run ArenaEnemyFrame3:SetPoint("topright", -390, -25) /run ArenaEnemyFrame4:SetPoint("topright", -390, -25)
Last edited by Herpi; 2013-12-16 at 11:52 AM.
Started playing on my druid again and came across some minor issues with my engineering and NS-macro.
Currently it looks like this:
/cast [nomodifier] Nature's Swiftness; /cast [modifier:shift] Tranquility; [modifier:ctrl] Heart of the Wild(Talent)
I want it to activate my gloves and NS on nomod, Tranquility on modshift and ofc Hotw on modctrl.
That is what the macro does. The problem however is that the #showtooltip part only displays gloves
and nothing else when i use modifiers as opposed to my other macros with modifiers.
Im guessing it has something to do with /use 10 being at the top but i dont know how to make the macro work otherwise.
Thanks in advance!
Code:#showtooltip [mod:shift]Tranquility;[mod:ctrl]Heart of the Wild;Nature's Swiftness /use 10 /use [mod:shift]Tranquility;[mod:ctrl]Heart of the Wild;Nature's Swiftness
(I don't think the "(Talent)" is necessary, anyway? I'm sure you can add that back in yourself if it is. Also, in case you're curious, it is possible to do like "#showtooltip Swipe" to show the icon and tooltip for something that isn't actually used in the macro at all.)