I'm doing the usual thing where you upgrade abilities on your hero. However, I'm having some trouble figuring out how to update the buttons for the new ranks. I'd like each rank of the ability to have its own description of its stats, and also change the cooldown/cost/behavior/effect. I did this by creating new abilities for each rank of the ability.
My problem is that when I level up the ability, the new rank does not appear in place of the old button, and I cannot figure out why. The tutorials out there that deal with this do not use multiple abilities, rather, they attach multiple effects/behaviors to one ability. The drawback is the tooltip on the buttons do not update with new stats, and you're limited to what you can change with each upgrade (I believe, I could be wrong).
My approach may be wrong, and I might be able to update tooltips without adding new abilities. Whatever the case, can anyone help?
Another question. Let's say I wanted to give the player the first rank of an ability automatically, then hide it and show it again through triggers. I have all the triggers working, but it won't show level 1 of an ability without first putting a point into it. Any ideas? Is there a setting I'm missing?
Edit: My guess is that I could duplicate an ability and give that to the player as rank 1. Then, when they upgrade the same ability, through a trigger, hide the "rank 1" of the ability and let rank 1 of another ability be rank 2. But then it'll still say rank 1 on the button... unless I can disable that?
I'm doing the usual thing where you upgrade abilities on your hero. However, I'm having some trouble figuring out how to update the buttons for the new ranks. I'd like each rank of the ability to have its own description of its stats, and also change the cooldown/cost/behavior/effect. I did this by creating new abilities for each rank of the ability.
My problem is that when I level up the ability, the new rank does not appear in place of the old button, and I cannot figure out why. The tutorials out there that deal with this do not use multiple abilities, rather, they attach multiple effects/behaviors to one ability. The drawback is the tooltip on the buttons do not update with new stats, and you're limited to what you can change with each upgrade (I believe, I could be wrong).
My approach may be wrong, and I might be able to update tooltips without adding new abilities. Whatever the case, can anyone help?
In the ability, there is fields for Level Button (Tooltip/Image/Name) in which you can specify stuff for each level.
Thank you! I got it working.
Another question. Let's say I wanted to give the player the first rank of an ability automatically, then hide it and show it again through triggers. I have all the triggers working, but it won't show level 1 of an ability without first putting a point into it. Any ideas? Is there a setting I'm missing?
Edit: My guess is that I could duplicate an ability and give that to the player as rank 1. Then, when they upgrade the same ability, through a trigger, hide the "rank 1" of the ability and let rank 1 of another ability be rank 2. But then it'll still say rank 1 on the button... unless I can disable that?
Use catalog triggers to change all the stuff instead if you are making such a complex hide/show system.
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