SOLVED
I'm learning JASS
I want the ASCII integer value of the current casting ability. I'm not sure what JASS code I need for getting it. Do I need something between the ( to get the current casting ability )?
Does this work or?
Edit: No it doesn't only fetch the name
EDIT:
I want to avoid looping 200+ abilities. I want only the integer value of casting ability which removes loop like I've done with unit-type system.
GetAbilityName is from blizzard.j, I don't know of any other function doing the same.
But I want to fetch the ability rawcode, not the name rawcode which is my problem.
set udg_IDSpell = GetSpellAbilityId(???GetCastingAbility???GetObjectName???GetAbilityName???)
I'm learning JASS
I want the ASCII integer value of the current casting ability. I'm not sure what JASS code I need for getting it. Do I need something between the ( to get the current casting ability )?
Does this work or?
set udg_IDSpell = S2I(GetAbilityName(GetSpellAbilityId()))
Edit: No it doesn't only fetch the name
EDIT:
I want to avoid looping 200+ abilities. I want only the integer value of casting ability which removes loop like I've done with unit-type system.
GetAbilityName is from blizzard.j, I don't know of any other function doing the same.
But I want to fetch the ability rawcode, not the name rawcode which is my problem.
Last edited: