Jump to content

using "unpack" to get color data for text


Recommended Posts

For some reason I can't something simple like "unpack(GLOBAL.WET_TEXT_COLOUR)" to work, it only complains about "unpack" being a nil value. It's used everywhere in the game's code to set text colour, but the second I try to throw it anywhere in my mod files, it spits back errors. I don't really understand how I'm using it any differently than the way it's used in the game's code, and a google search on the topic returns results for all the wrong kind of "unpacking"

Anyone know what I'm doing wrong?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...