HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Multiple Upgrades Linked To One Upgrade, How?

11-17-2002, 08:20 AM#1
Guest
Is there anyway to assign multiple upgrades to one upgrade? Exmaple say I research Steel Melee for Orc and it applies all the different tier 1 upgrades to each race? I am almost positive this must be achievable through triggers. Your thoughts?
11-17-2002, 11:57 AM#2
wiebbe
Eh, you dont have to do it with triggers?
cant you just go to the unit editor,
and do Upgrades used, for all the units you want to use the upgrade for, and choose the upgrade you want to..
11-17-2002, 06:08 PM#3
Guest
That hardly does what I need though. Seeing as I would have to research each and every upgrade a particular unit used. I'd much rather have only two upgrades that are researched, armor and weapon, and then have that one upgrade upgrade all the different types of upgrades within its tier.
11-18-2002, 08:07 PM#4
CrazyGamer
Make a dummy unit with the icon, name, tooltip and price you want. Then make a trigger like this:
Events: A unit finishes training.
Conditions: Unit-type of triggering unit equal to [dummy unit].
Actions: Kill triggering unit.
Player - Set current research level of [tech you want researched] to (current tech level of [tech you want researched] + 1).

Just copy the last action for any tech you want researched and you should have it (notice that you cant upgrade past lvl 3 this way so you should either notify the player of that or make him unable to build any more dummy units). You might wanna add a message or a sound to notify the player that the upgrade has finished.
11-18-2002, 08:25 PM#5
Guest
That seems a bit much for achieving what I desire. Wouldn't it be much easier to just bind a trigger to, upon end of research

Player - Set current research level of [tech you want researched] to (current tech level of [tech you want researched] + 1).

Trigger - Run [trigger containing action to research another trigger]
Trigger - Run [trigger containing action to research another trigger]
Trigger - Run [trigger containing action to research another trigger]

Until all the things you want researched are done. So everytime that one upgrade is researched everything else can be updated to effect all races and tier's necessary. Or is there a flaw in this?