HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Hide upgraded unit before Berserker-type upgrade.

07-12-2006, 09:29 PM#1
Moss
I have an upgrade based on Berserker upgrade and I have jumped through all the hoops I can see and connected everything with everything and it all works great EXCEPT the upgraded version of the unit (Archwizard) is trainable at it's barracks right from the start along with the original version (Wizard). So how do I make the Archwizard initially unavailable like the upgrade is supposed to work?

EDIT: Without resorting to triggers I mean.
07-13-2006, 10:44 AM#2
Naakaloh
Unless I'm mistaken, you do need to disable it at startup with triggers, or you can give it a tech-tree requirement of the Archwizard upgrade, so that it is unbuildable until you've upgraded it.
07-13-2006, 06:41 PM#3
Moss
Alright. Ya I gave it the tech requirement of that upgrade but it just made it dimmed out in the barracks. I did end up making a trigger but I think I will end up simplifying the upgrade to a regular caster type upgrade, just adding abilities and mana. I guess Berserkers and Seige Engines with Barrage are somehow hardcoded into not showing up to begin with?
07-14-2006, 05:02 AM#4
Gerk
Try making an ability that upgrades not the unit, but the Barracks/Facility itself.

For instance! We'll use the Orc Barracks as a template.

Barracks I allows you to train Grunts, Demolishers, and the Grunt Strength+Burning Oil upgrades. The "Troll Berserker" upgrade, while appearing to be for the trolls, in fact isn't doing anything to them. In its stead, you get...(dun dun dunnnn) Barracks II: Electric Boogaloo, which includes the Grunts, Demos, rabbits, wahtevers...but ALSO includes the Berserkers now (which are Zerks to start with, and were never really upgraded at all) and maybe the Regen upgrade.

How bout THAT?
07-15-2006, 08:33 PM#5
Zypherion
Only problem with that is that it doesn't upgrade units that has already been trained, only new ones.
07-15-2006, 08:39 PM#6
Rising_Dusk
You can do it gerks way and then just GroupEnumUnitsInRect(...) of GetWorldBounds() and replace all units of type (before upgrade) with units of type (after upgrade).

Only problem with that idea is that they'll forget any orders they were given before.
Which may or may not be a problem for you.
07-16-2006, 10:44 AM#7
Gerk
Wasn't the whole point of this to make the Stage-1 unit untrainable/invisible to begin with? @_@

...oh, wow. Wait, I completely misread that first post.
07-16-2006, 11:42 AM#8
Pheonix-IV
Just use Chaos, don't add the Archwizard to the barracks, give the Wizard the ability "Chaos" modified to change into the Archwizard and requiring the Archwizard upgrade. That should work.