a bit of explanation:
The idea behind my GDI'ish side of my mod is that several of their units can become extremely powerfull by the lategame through the upgrade system aswell as the veterancy system. My GDI'ish side > any other side in a one-one comparrison in unit strength. I am thinking of balancing this through cost of upgrades + existing units dont auto get those upgrades but have to be manually upgraded near the warfactory/servicedepot, but new units get the upgrade on create tho.
So the idea is:
1. upgrades cost cash when researched (normal upgrade system basicly)
2. Existing units can be upgraded/updated but will cost extra cash ontop of the previous research cost, but they keep their veterancy without becoming obsolete.
3. New units build from the warfactory(or airdropped specialpower or such) will come with the new upgrades without the extra cost from 2. but they ofc start of as rookie lvl.
For point 2 i was thinking of letting existing units upgrade when they are near a sevicedepot/warfactory through a aura or broadcastevent coding that enables a modelcodition that triggers a commandsetupgrade wich holds the respective upgrades + extra bit of costs.
But the actuall question:
Lets say i have a rocketpod upgrade for my tank. Upgrade_Global_LaserGuided_Rockets
I want that after the upgrade research is done that the following happens:
Any new tank build now gets build with the rocket pods. Existing tanks dont (remember they need to be manualy updated near a service depot - using a normal upgrade will update existing units aswell automaticly..i dont want that)
If i use the grantupgradecreate i can have a unit spawn with a upgrade: Upgrade_NewBorn_LaserGuided_Rockets
But i cant have it trigger without the Global upgrade being done first.
Would the following work?
<UpgradeTemplate
id="Upgrade_NewBorn_LaserGuided_Rockets"
Type="OBJECT"
>
<GameDependency
NeededUpgrade="Upgrade_Global_LaserGuided_Rockets"/> /** would this work as a trigger or delay for my needs? **/
</UpgradeTemplate>
<GrantUpgradeCreate
id="ModuleTag_GrantUpgradeCreate_Upgrade_NewBorn_LaserGuided_Rockets"
UpgradeToGrant="Upgrade_NewBorn_LaserGuided_Rockets"
/>
Or are there better/easier ways to achieve this?