Once you've got all of that done, I find this to be a bit cleaner...
consider_messages = {
consider_annihilated = {"#FF0000","50+ levels higher than"},
consider_begone = {"#FF4000","41 to 50 levels higher than"},
consider_dance = {"#FF8000","32 to 41 levels higher than"},
consider_crush = {"#FFC000","21 to 32 levels higher than"},
consider_bravestupid = {"#FFFF00","16 to 21 levels higher than"},
consider_runaway = {"#80FF00","8 to 16 levels higher than"},
consider_chuckles = {"#00FF00","3 to 8 levels higher than"},
consider_snickers = {"#00FFC0","2 to 3 levels higher than"},
consider_fair = {"#00FF80","within 2 levels of"},
consider_worried = {"#00C0FF","2 to 6 levels lower than"},
consider_weak = {"#0080FF","6 to 9 levels lower than"},
consider_workout = {"#0040FF","9 to 19 levels lower than"},
consider_stomp = {"#0000FF","more than 19 levels lower than"},
consider_walkallover = {"#0000FF", "more than 19 levels lower than"}
}
function consider_capture(name, line, wildcards)
mob={}
mob.name = wildcards.mob
mob.auras = wildcards.auras
if string.find(mob.auras, "%(R%)") or string.find(mob.auras, "%(Red Aura%)") then
ColourTell("red", "", mob.name)
elseif string.find(mob.auras, "%(G%)") or string.find(mob.auras, "%(Golden Aura%)") then
ColourTell("yellow", "", mob.name)
else
ColourTell("white", "", mob.name)
end
ColourTell("white", "", " is ")
ColourTell(consider_messages[name][1], "", consider_messages[name][2])
ColourNote("white", "", " you.")
end
|