Can you omit any unused campaign units to save room for your units?
Development > Data
Interesting Shield problem
- 3 posts
-
SkeletalHammer Author
- Battle.net
- Hammer
- #160 NA
- Join date
- Jul 10, 2010
- Location
- United States
- Reputation
- 2
- Posts
- 79
- Projects
- 1
- Last login
- Apr 25, 2013
-
NicheJ Regular Shmoe
- Join date
- Nov 02, 2012
- Location
- Canada
- Reputation
- 0
- Posts
- 7
- Last login
- Mar 07, 2013
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
- 3 posts
NicheJ Regular ShmoeI'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?