I'm trying to find an Action that will allow me to level up an ability stored in a variable. If there is no such Action, any ideas to create a similar effect are appreciated. I can't add 1 Unspent Skill Points because the Hero has other abilities that I don't want them able to level up.
You were almost there. Use the add an unspent skill point, then use hero learn skill. It will spend the skill point on the skill you want to level right away so the user cant pick something else
oh cool! Thanks tons! Buuuut... it won't let me make a hero Learn an ability that's stored in a variable :X... any way around that? otherwise ill just JASS it up....
Well, if you have only a few skills to level in this way, then you can just do an if-then-else statement to determine which skill is to be learned depending on the variable... but this is out of the question if you can have a lot of skills level in this way.
heh... i have like 60 skills :P (hence the variable) EDIT: well i decided to just use a custom line of code to call the SetHeroSkill function with the variable as an argument. Thanks for the help though guys :D
you could use a Hero Ability type (its just an integer) found in the GUI window.
Then just before it go custom script : set My_Hero_abil= (The ability your setting it to) But then again thats just the same thing with more steps.