My ability targets an entire team with an effect instant. It is a research breakthrough ability meaning it will give +1 to every upgrade for every hero on the team. A given team will only have at most 4 heros on its team, but the only way I know how to add an upgrade for a player (or team) is with the add upgrade function.
There are 7 total heros available to choose from. If each hero has about 14 upgrades available, thats 14X7= 98 upgrades!
I would rather not create 98 entries of "Add Upgrade Level for player".
Any idea how to do this without doing this ridiculous amount of grunt work? If not, I better get started because its going to take a long time. lol...
If the upgrades are located on a research ability on a unit you could use catalog natives to dynamically detect all (or 1, not sure what you want) the upgrades and increment their research level by 1. You can probably dynamically detect the upgrade ability as well given a standard type of upgrade unit.
My ability targets an entire team with an effect instant. It is a research breakthrough ability meaning it will give +1 to every upgrade for every hero on the team. A given team will only have at most 4 heros on its team, but the only way I know how to add an upgrade for a player (or team) is with the add upgrade function.
There are 7 total heros available to choose from. If each hero has about 14 upgrades available, thats 14X7= 98 upgrades!
I would rather not create 98 entries of "Add Upgrade Level for player".
Any idea how to do this without doing this ridiculous amount of grunt work? If not, I better get started because its going to take a long time. lol...
Do any of the upgrades overlap? Might be easier to give some overlap in upgrades per player (since they only control one hero anyways).
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
If the upgrades are located on a research ability on a unit you could use catalog natives to dynamically detect all (or 1, not sure what you want) the upgrades and increment their research level by 1. You can probably dynamically detect the upgrade ability as well given a standard type of upgrade unit.
Could this old tutorial be helpfull? (It's data though)
https://www.sc2mapster.com/forums/resources/tutorials/179803-data-accumulative-and-multiple-upgrade-with-queue
Working on projects: