Hey everyone,
I'm working on a Warcraft III custom map and need help figuring out if it's possible to remember which ability a hero has learned, including its level, and then learn the same ability (at the same level) to an identical hero unit type that gets sent to the battlefield. Essentially, your own hero is just chilling in the base (like in direct strike). I already figured out how to carry on the level and items of the hero to this battlefield hero version, but abilities learned by the hero in base seem to be impossible to move / save in any way.
I tried using "unit learns ability" and then checked if its possible to save the learned ability to a variable, but that seems not to be an option.
Does anyone know a good way to achieve this? Would this require Hashtable storage or JASS, or is there a more straightforward way? Any guidance or examples would be greatly appreciated!
Thanks!
Edit:
I tried to play around with hashtables and even that does not seem to be an option? I just cant seem to store the data of a learned ability (or abilitys that a unit has) in to a variable or hashtable.
Why there is almost every other trigger in the GUI but this one seems to be forgotten or thought that it's not important?
I'm working on a Warcraft III custom map and need help figuring out if it's possible to remember which ability a hero has learned, including its level, and then learn the same ability (at the same level) to an identical hero unit type that gets sent to the battlefield. Essentially, your own hero is just chilling in the base (like in direct strike). I already figured out how to carry on the level and items of the hero to this battlefield hero version, but abilities learned by the hero in base seem to be impossible to move / save in any way.
I tried using "unit learns ability" and then checked if its possible to save the learned ability to a variable, but that seems not to be an option.
Does anyone know a good way to achieve this? Would this require Hashtable storage or JASS, or is there a more straightforward way? Any guidance or examples would be greatly appreciated!
Thanks!
Edit:
I tried to play around with hashtables and even that does not seem to be an option? I just cant seem to store the data of a learned ability (or abilitys that a unit has) in to a variable or hashtable.
Why there is almost every other trigger in the GUI but this one seems to be forgotten or thought that it's not important?
Last edited: