A plea for assistance!

Post Reply
Hiriako
Posts: 19
Joined: Thu Aug 11, 2011 5:14 pm

A plea for assistance!

Post 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

User avatar
Belgarath
Posts: 232
Joined: Fri Jul 26, 2013 7:19 am
Discord: macjabeth#7149

Re: A plea for assistance!

Post 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

Post Reply