Now, I have a ton of comments in my scripts--some of it is old unused code that I had decided to leave in for reference sakes. I ended up removing most of that to gain the room I needed, so it's not that big of a deal. However, the fact that I am very close to the "cap" is very much still true, and I wonder about what I should do next. The obvious first thought is to reduce the size of my script in any way possible. I can probably work out a few tweaks here and there, but I believe the script is already as efficient as it can get, from both length and functional perspectives. The real problem, is that I am not done adding to the script.
The script in question is a Quest script. This script is running on a control quest that is always running if the Player is that specific type of Lich. This quest has several aliases with scripts attached that I also am using frequently. (I only use events in these scripts currently.) My first thought was to move some of the code to the aliases, but I have a feeling that overloading those with code might not be a good idea--not to mention it will require me to state the same properties multiple times across multiple scripts in order to properly function.
Before proceeding I'd like to first mention a few things.
- I do use OnUpdateGameTime in this script, but the time set is every 6 game hours, and is unaffected in any way if it runs later than that. I stop it on occasion, but not often.
- All properties within my script are static unchanging values such as Spells, Races, MagicEffects, and ReferenceAliases (Though I do change the object reference that is contained within the reference aliases on a regular basis.)
- The script is also conditional, but to be perfectly honest that's still one of the things I don't fully understand the implications of.
- Is it bad to overload an alias' script with code?
- Does stating the same properties (such as a spell or race) in multiple scripts cause any performance hits?
- Does stating a single script as a property across multiple scripts cause any performance hits?
- Just how big of a performance hit is there if your script is excessively lengthy?
- Would it be viable to simply create 1-2 more scripts within the quest, with each one containing the same properties, and have them reference each other on a regular basis?
- Have any of you done this yet or am I the first?


)