A plea for assistance!

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

A plea for assistance!

Post by Hiriako » Tue Mar 15, 2016 2:25 am

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#2283

Re: A plea for assistance!

Post by Belgarath » Tue Mar 15, 2016 5:56 am

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

Who is online

Users browsing this forum: No registered users and 3 guests