/run b=GetBlockChance() d=GetDodgeChance() p=GetParryChance() m=5 if UnitRace("player")=="Night Elf" then m=m+2 end a=m+d+p+b DEFAULT_CHAT_FRAME:AddMessage(a.."% Is my current Avoidance")
Which helps for own personal awareness... but I want this macro to also /say what that avoidance amount is.
Where would I modify this macro to announce my current avoidance in /say ?
NOpe i was wrong
my best guess. No idea if its right tho.
New:
/run b=GetBlockChance() d=GetDodgeChance() p=GetParryChance() m=5 if UnitRace("player")=="Night Elf" then m=m+2 end a=m+d+p+b SendChatMessage(a.."% Is my current Avoidance",SAY)
I believe you should also make your variables locals so they don't clutter up the global table
/run local a,b,d,m,p b=GetBlockChance() d=GetDodgeChance() p=GetParryChance() m=5 if UnitRace("player")=="Night Elf" then m=m+2 end a=m+d+p+b SendChatMessage(a.."% Is my current Avoidance",SAY)