I've hit a stumbling block in my attempts to create a mod for a series of maps I'm planning. I've created a number of new units, mostly Protoss, and so all of them need to have the shield upgrade apply to them. However, I've noticed that, after adding the units properly to the Upgrade: Effects array, they simply vanish when I look at the array again.
My current theory is that the Upgrade: Effects array can't hold any more elements, and so drops the elements I'm trying to add. My evidence is that the array currently has 128 elements in it. If I'm right, that means that, at most, an upgrade that requires 3 changes per unit (as does Protoss Shields) can only affect 42 units (and change). Which is a problem when the shields upgrade applies to all Protoss units and buildings. (32 plus heroes in Wings of Liberty alone.)
So, my question is: any ideas? I thought perhaps I could make an Upgrade object that then triggered two separate Upgrades, and just stick my new units in one of those, but upgrades can't upgrade other upgrades. The only way I can see of doing it is with triggers on the individual maps. Not the cleanest of solutions.
Am I missing anything?
Can you omit any unused campaign units to save room for your units?
If I have no other options, that's what I'm going to have to do. I'm just not sure if I'll be able to free up enough elements for my purposes. Plus that solution seems inelegant and offends my sense of programming aesthetics. :P
You must login to post a comment. Don't have an account? Register to get one!