Hey everybody. I promised in my project thread I would post my upgrade system triggers in case they proved helpful to anybody. Here they are:
UpgradesBought is an integer array I'm using to keep track of how many upgrades a player has bought so I can reward them.
UpgradeSpawn is an integer array I'm using to increase the number of spawns that appear each round (my map is an AoS map).
UpgradeType is a tech-type array.
UpgradeUnits is a unit group array used to hold the queue of upgrades for each team.
UpgradeUnitType is a unit-type array I use to keep track of which units correspond to which upgrades. Since you cannot use shop sharing to sell upgrades, I sell units as pseudo-upgrades instead.
This system was made to emulate the upgrade system from Rival Nations.