• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

Patch 1.31 : how to convert "ability" type to its raw code ?

Status
Not open for further replies.
Hello,

Patch 1.31 gives new natives that return "ability" type. For ex:
JASS:
native BlzGetItemAbilityByIndex takes item whichItem, integer index returns ability

However, most of old natives only use integer type (for ability id/raw code) instead.

Is there a way to convert get the raw code from a variable of type "ability" ?
For example for ability variable "Corrosive Breath", get 'Acor'.

PS : it is not from a trigger action, GetSpellAbilityId() is not sufficient for my need :(
 
Status
Not open for further replies.
Top