Another ignorant worldedit user here looking for a little jass help.
The custom script:
call SelectHeroSkill( GetLastCreatedUnit(), udg_SaveLoad_Abilities[ udg_Save[ udg_SaveCount ] ] )
seems to learn an ability for a hero. I am looking for a way to transform this script as a means to ADD an ability, any ability to a hero. I believe I have found the correct function to do so:
Function: native UnitAddAbility takes unit whichUnit, integer abilityId returns boolean
The custom script I have made for it looks like this:
call UnitAddAbility( GetLastCreatedUnit(), udg_SaveLoad_Abilities[ udg_Save[ udg_SaveCount ] ] )
but I am missing the boolean. I don't know what True or False would do for me here - what the boolean is. Maybe someone can help me write the correct version of the UnitAddAbility custom script. Let me know if more info is needed.
The custom script:
call SelectHeroSkill( GetLastCreatedUnit(), udg_SaveLoad_Abilities[ udg_Save[ udg_SaveCount ] ] )
seems to learn an ability for a hero. I am looking for a way to transform this script as a means to ADD an ability, any ability to a hero. I believe I have found the correct function to do so:
Function: native UnitAddAbility takes unit whichUnit, integer abilityId returns boolean
The custom script I have made for it looks like this:
call UnitAddAbility( GetLastCreatedUnit(), udg_SaveLoad_Abilities[ udg_Save[ udg_SaveCount ] ] )
but I am missing the boolean. I don't know what True or False would do for me here - what the boolean is. Maybe someone can help me write the correct version of the UnitAddAbility custom script. Let me know if more info is needed.