I've watched 3 tutorials on how to give heroes upgradable abilities. Directly following any of them has failed to produce the end result of the tutorial. But they did give me a good starting point.
I've been able to create a hero where the user can click on an upgrade button which takes the users to a new command card (cc) with some abilities to teach their hero. The user can then click on the ability and the hero learns it. Sounds like I'm done, right? Wrong. For some reason every ability has its own stat point. So even though I only have 1 point, I can learn all 4 abilities I've created. Also, after I've learned the ability, when I go back to the learn an ability cc, the ones I learned are still there, grayed out with a 1 still in the corner of each.
To get this far I did the following (let's say I was added force field as a learnable ability).
1) Copy a unit, rename to Hero, set type to hero
2) Create Hero model
3) Create Hero actor
4) Copy Force Field button. Rename copy to Learn Force Field.
5) Create new ability called Learn Force Field.
a) Set Info Button Default Button Learn 01 to Learn Force Field (button)
b) Set Into Ability Learn 01 to Force Field
c) Set Points and Points per level to 1
6) In Hero unit
a) Add abilities Force Field and Learn Force Field
b) On cc 1 add a button for Force Field, set command type to ability, set ability to force field, ability command is force field
c) *On cc 1 add a button called upgrade abilities, set command type to submenu, tell it to jump to cc 4, learn ability is none
d) On cc 4 add button Learn Force Field, set command type to ability command, set ability to Learn Force Field, ability command is Learn Force Field
I repeat 4-6 for all abilities, replacing "Force Field" with whatever ability I want to learn. What did I miss?
umm.... levelable abilities are complicated in sc2... they can be done in a couple different ways.
The "Hero Training" abiltiy ... should prolly have charges that you reward the player with at lvl 1 and each time the unit levels.....
Training an ability should consume that charge.
but yeah sc2 really wasnt designed for lvlable skills...... the whole way button requirements work ... deter me from explaining it just because it requires so many little steps.... ah
Rollback Post to RevisionRollBack
Skype
KageNinpo = SN
My Libraries
DialogLeaderboard & TeamSort
My Projects
SPACEWAR Tribute
Infinite TD
but yeah sc2 really wasnt designed for lvlable skills...... the whole way button requirements work ... deter me from explaining it just because it requires so many little steps.... ah
The requirements for abilities are quite easy, actually. If you want wc3-like leveling requirements, just add an expression similar to this:
Edit: Also, on another note, does anyone know how the indices in the "Info - *" sections for abilities of type learn work? How does the engine determine which index to use when that ability is called?
Ok, well..... I got it working. I think I figured out how the indices work. Tried something think I tried before and it worked this time /boggle. But I'm 95% of the way to a beta now!
I've watched 3 tutorials on how to give heroes upgradable abilities. Directly following any of them has failed to produce the end result of the tutorial. But they did give me a good starting point.
I've been able to create a hero where the user can click on an upgrade button which takes the users to a new command card (cc) with some abilities to teach their hero. The user can then click on the ability and the hero learns it. Sounds like I'm done, right? Wrong. For some reason every ability has its own stat point. So even though I only have 1 point, I can learn all 4 abilities I've created. Also, after I've learned the ability, when I go back to the learn an ability cc, the ones I learned are still there, grayed out with a 1 still in the corner of each.
To get this far I did the following (let's say I was added force field as a learnable ability).
1) Copy a unit, rename to Hero, set type to hero 2) Create Hero model 3) Create Hero actor 4) Copy Force Field button. Rename copy to Learn Force Field. 5) Create new ability called Learn Force Field. a) Set Info Button Default Button Learn 01 to Learn Force Field (button) b) Set Into Ability Learn 01 to Force Field c) Set Points and Points per level to 1 6) In Hero unit a) Add abilities Force Field and Learn Force Field b) On cc 1 add a button for Force Field, set command type to ability, set ability to force field, ability command is force field c) *On cc 1 add a button called upgrade abilities, set command type to submenu, tell it to jump to cc 4, learn ability is none d) On cc 4 add button Learn Force Field, set command type to ability command, set ability to Learn Force Field, ability command is Learn Force Field
I repeat 4-6 for all abilities, replacing "Force Field" with whatever ability I want to learn. What did I miss?
edit: my formatting was igonered :(
umm.... levelable abilities are complicated in sc2... they can be done in a couple different ways.
The "Hero Training" abiltiy ... should prolly have charges that you reward the player with at lvl 1 and each time the unit levels.....
Training an ability should consume that charge.
but yeah sc2 really wasnt designed for lvlable skills...... the whole way button requirements work ... deter me from explaining it just because it requires so many little steps.... ah
Could you upload an example on how you make your abilities? My abilities all work fine so far.
The requirements for abilities are quite easy, actually. If you want wc3-like leveling requirements, just add an expression similar to this:
and add the requirement to the learn ability.
€ uploaded a small example how it works for me, i hope this will help you a little.
@Kueken531: Go
I'm looking at Lvlup - Learn, but can't seem to find where you set that CountBehavior requirement.
Here is the link to my map http://static.sc2mapster.com/content/files/499/185/Escape_the_Tower.SC2Map
The hero unit is called prisoner.
Edit: Also, on another note, does anyone know how the indices in the "Info - *" sections for abilities of type learn work? How does the engine determine which index to use when that ability is called?
@homer_3: Go
Ok, well..... I got it working. I think I figured out how the indices work. Tried something think I tried before and it worked this time /boggle. But I'm 95% of the way to a beta now!