HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Looking for an Action that....

07-08-2004, 09:55 PM#1
Browser_12
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.
07-09-2004, 01:10 AM#2
CynicalYouth
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
07-09-2004, 01:23 AM#3
Aelita Lyoko
Yeah.

What he said :)
07-09-2004, 01:54 AM#4
Browser_12
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....
07-09-2004, 10:18 AM#5
Miningjrk
I think you have to convert the variable first, then you add it. But I am unsure since i have not tried using a variable before to do that. :\
07-09-2004, 01:44 PM#6
Browser_12
Erm... there's no option at ALL to use ANY variable...
07-09-2004, 03:44 PM#7
Anitarf
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.
07-09-2004, 07:54 PM#8
Browser_12
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
07-09-2004, 09:07 PM#9
weaaddar
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.