Random chance say macro

They disabled the old way to do this, so I’m having trouble figuring out the new. I want it to be a random chance to say one of these phrases, and not to say it every time the macro is used.

Old one that used to work:

/run if random(10)==1 then SendChatMessage(GetRandomArgument(“%t, I would have words with you!”,“Unweave the Heavens!”,“Father, give me a storm that would tear the sky!”))end

This one works in that it always says a phrase, but I want it to be a random chance, not every time:

/run local a={“I would have words with you!!”,“Unweave the Heavens!”,“Father, give me a storm that would tear the sky!”} SendChatMessage(a[random(#a)],“SAY”)

https://www.curseforge.com/wow/addons/macro-talk

/rndsay

1 Like

You can only use SendChatMessage(a[random(#a)],“SAY”) in an instance. Blizz disabled that to prevent people spamming

/run if random(10)==1 then local a={“I would have words with you!!”,“Unweave the Heavens!”,“Father, give me a storm that would tear the sky!”} SendChatMessage(a[random(#a)],“SAY”) end