#Random Message on eating food/feast

2 messages · Page 1 of 1 (latest)

stark mortar
#

Hello, I'm running into an issue where if I put this code under the On Show Actions(With eating food as the trigger) I get the Interface action failed because of an AddOn error.

local messages = {
"Message 1",
"Message 2",
"Message 3",
}
local index = math.random(1, #messages)
SendChatMessage(messages[index], "SAY")

Is it something on the blizzard side not liking the code or am i messing up somewhere.

(Note: I accidentally had it "On Init" and it would spit out one of the messages until i noticed my mistake and moved it to on show)

orchid raft