Question on Globals
I've recently begun work on a mod that focuses on customising the appearance of your droid party members in TSL and have been trying to think of a way that will allow me to keep track of which line in appearance.2da they are currently using.
I've decided that using globals would probably be the easiest solution, but have been wondering whether there might be a more efficient way to accomplish my objective.
My main concern is that i've read that adding too many new globals can slow the game down. I doubt that adding just two new globals would probably be fine, but I just want to get some input from someone more experienced as to whether what i'm thinking is correct.
If anyone can think of a better way for me to do this, please feel free to post your opinion. :D
I'm not sure you can even check what the current appearance.2da line of someone is, though there are definitely ways around that.
As for the globals, they are probably your best bet. I've added WAY more than 2 globals to the game for one of my mods and it doesn't slow down the game at all, so whatever said that they would slow it down was mistaken.
If you're still concerned, the addition of one global number should be all you really need anyway.
The appearance file has about 700 entries (with TSLRCM and M4-78).
Globals maximum number is 127.
I... don't think your method will work :/
EDIT: Unless of course you don't want to store the appearance number itself but rather like "1 for skin 1, 2 for skin 2 etc."
I could use the GetAppearanceType() function to track the appearances, but for the amount i'm going to be using, it seems a little clunky.
My original plan was to do as Hassat Hunter said above, so I won't be tracking the appearances per se, but the global values.
I just wanted to know whether anyone knew of an alternative way, but it seems like I may have been right to begin with.
Thank you both for your help. :D
|All times are GMT -4. The time now is 06:04 PM.|
Powered by vBulletin®
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.
LFNetwork, LLC ©2002-2015 - All rights reserved.