Page 1 of 1

A plea for assistance!

Posted: Tue Mar 15, 2016 2:25 am
by Hiriako
Alright, I have this function working 99%, but am stuck in trying to figure out exactly how to get the triggers within to fire. I'm open to suggestions and ideas. I know this is done, as it's something that's been built into m&m before. I'm on Imperian these days however, and am looking for something there! Basically: it highlights people according to a circle affiliation I manually (or will have triggers) set.

Click on the full image. There's a lot more there.

Image

Re: A plea for assistance!

Posted: Tue Mar 15, 2016 5:56 am
by Belgarath
You had the tempTrigger set up wrong. This should work:
Code: [show] | [select all] lua
function highlightAffUpdate ()
  highlight = {}
  for k, v in pairs(affiliation) do
    highlight[k] = tempTrigger(k, [[
      selectString("]]..k..[[", 1)
      fg(AffiliationColorTable[]]..v..[[])
      deselect()
      resetFormat()
    ]])
  end
end