For the map I am making, you control a group of units of the same type.
I want to give these units a "Learn" ability where they can upgrade different things such as:
Life, Attack Damage, Movement Speed, Attack Speed etc.
When the ability is used, it should give this stat bonus to ALL THE UNITS, not just the unit that used the ability.
I also need to find a way to make a requirement where you need to use points to learn new abilities (Which are not earned with kills, I have these points stored in variables).
I am having trouble finding a tutorial and I have no idea where to start (I tried making a "Learn" type ability, but it only displays fields for learning other abilities, nothing for stat increases).
I found a lot of tutorials which require you to earn points through levels earned from experience earned from kills. But I can't use those.
Is this something I have to use triggers for? Data seems awfully limited.
EDIT 1: I found a way to make all my units benefit, instead of using a "Learn" ability I am using a "Research" ability, now I just need to figure out how to give it a cost based on the information stored in my variables.
I cannot suggest a complete solution, only partly...
When the ability is used, it should give this stat bonus to ALL THE UNITS, not just the unit that used the ability.
Maybe it will not completely suit your idea, but don't you want to try creating just multi-level upgrades?
As for learn points... You can detect learning upgrade with triggers and subtract a learn point. When they equal zero, disable/disallow upgrade abilities.
I cannot suggest a complete solution, only partly...
When the ability is used, it should give this stat bonus to ALL THE UNITS, not just the unit that used the ability.
Maybe it will not completely suit your idea, but don't you want to try creating just multi-level upgrades?
As for learn points... You can detect learning upgrade with triggers and subtract a learn point. When they equal zero, disable/disallow upgrade abilities.
I found out how to add multi-level upgrades. My bad.
Next question which I can't solve, is there a way to DISPLAY upgrade costs (Which are not Minerals / Gas) through triggers / data?
For the map I am making, you control a group of units of the same type.
I want to give these units a "Learn" ability where they can upgrade different things such as:
Life, Attack Damage, Movement Speed, Attack Speed etc.
When the ability is used, it should give this stat bonus to ALL THE UNITS, not just the unit that used the ability.
I also need to find a way to make a requirement where you need to use points to learn new abilities (Which are not earned with kills, I have these points stored in variables).
I am having trouble finding a tutorial and I have no idea where to start (I tried making a "Learn" type ability, but it only displays fields for learning other abilities, nothing for stat increases).
I found a lot of tutorials which require you to earn points through levels earned from experience earned from kills. But I can't use those.
Is this something I have to use triggers for? Data seems awfully limited.
EDIT 1: I found a way to make all my units benefit, instead of using a "Learn" ability I am using a "Research" ability, now I just need to figure out how to give it a cost based on the information stored in my variables.
I cannot suggest a complete solution, only partly...
When the ability is used, it should give this stat bonus to ALL THE UNITS, not just the unit that used the ability.
Maybe it will not completely suit your idea, but don't you want to try creating just multi-level upgrades?
As for learn points... You can detect learning upgrade with triggers and subtract a learn point. When they equal zero, disable/disallow upgrade abilities.
I found out how to add multi-level upgrades. My bad.
Next question which I can't solve, is there a way to DISPLAY upgrade costs (Which are not Minerals / Gas) through triggers / data?
So not the 4 standard resources. That is triggers using a dialog box or something.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg