Majestic Hivemind!
Humble me are here before your majestic presence to take a bite of your wisdom.
I am currently working on a custom map, where similar to custom hero survival, I get to build my hero by buying abilities.
I figured out, that if I make the buy-able abilities actual items, which have the replacement ability (which converts the placeholder to the actual ability, engineering upgrade, I know that sort of stuff).
I can get it with the get item ability by id function (so its the first ability the item has, by the index of 0).
But when I have to add the ability to the actual unit, I have the problem, that the function (sorry, action) waits for rawcode while the get ability actually gets the ability (I suppose the reference or pointer).
My question is, that How can I get the RAWCODE of an ability, by knowing only the 'ability'?
I learn programming it's not a problem for me to learn JASS, I searched for a documentation, but I haven't found anything particularly useful.
Thank you,
Sarungard
Humble me are here before your majestic presence to take a bite of your wisdom.
I am currently working on a custom map, where similar to custom hero survival, I get to build my hero by buying abilities.
I figured out, that if I make the buy-able abilities actual items, which have the replacement ability (which converts the placeholder to the actual ability, engineering upgrade, I know that sort of stuff).
I can get it with the get item ability by id function (so its the first ability the item has, by the index of 0).
But when I have to add the ability to the actual unit, I have the problem, that the function (sorry, action) waits for rawcode while the get ability actually gets the ability (I suppose the reference or pointer).
-
SkillPicking
-
Events
-
Unit - A unit Sells an item (from shop)
-
-
Conditions
-
(Unit-type of (Selling unit)) Equal to Skill Shop (Normal)
-
-
Actions
-
Set VariableSet AbilityToBuy = (Item: (Last created item)'s Ability at index: 0)
-
Set VariableSet AbilityString = ???
-
Set VariableSet AbilityIntegerID = (Integer(AbilityString))
-
-
My question is, that How can I get the RAWCODE of an ability, by knowing only the 'ability'?
I learn programming it's not a problem for me to learn JASS, I searched for a documentation, but I haven't found anything particularly useful.
Thank you,
Sarungard