• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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

Status
Not open for further replies.
Level 12
Joined
Feb 27, 2019
Messages
399
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