HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Getting hero to learn variable abilites

01-16-2006, 06:51 PM#1
Immoralis
I don't really know much of anything about jass but is this the in the right syntax for getting the last replaced hero to learn the skill "skill_Store[1]" which is an ability array? Assuming that the hero has this abilility.
Collapse JASS:
call SelectHeroSkill( GetLastReplacedUnitBJ(), udg_Skill_Store[1] )
01-16-2006, 08:03 PM#2
Earth-Fury
Code:
native SelectHeroSkill takes unit whichHero, integer abilcode returns nothing

from this, i would say it is the proper syntax. if you get JSP from WC3Search. then you can check sintax within the program (and look up natives! and BJ functions!)
01-16-2006, 08:34 PM#3
Blade.dk
Or from wc3campaigns: http://www.wc3campaigns.net/showthread.php?t=78566.
01-16-2006, 09:07 PM#4
Earth-Fury
Quote:
Originally Posted by Blade.dk

ooh, tats a better version :)
01-16-2006, 09:20 PM#5
PitzerMike
In your post you write skill-Store[1] lower case and in the JASS snippet udg_Skill_Store[1] has a capital S

That would be a syntax error (if you really defined it with a lower s in the variable editor).