# Class Of Ability
Grammar — Class of ability
Flags —Native
|Function
Returns the ability type of an ability. This is the non raw data version of an ability’s scope. Use catalog lookup functions to retrieve a data value or other information from the game data.
# Arguments
string
[ gamelink::Abil ] — Ability
Returns — int
[ preset::AbilityClass ]
native int AbilityClass(string ability);
# Related
Category: Catalog / Lookup
- [F] —
bool
— Catalog Entry Is Default — ( CatalogEntryIsDefault ) - [F] —
bool
— Catalog Entry Is Valid — ( CatalogEntryIsValid ) - [F] —
int
— Catalog Entry Class — ( CatalogEntryClass ) - [F] —
int
— Catalog Entry Count — ( CatalogEntryCount ) - [F] —
string
[ catalogentry ] — Catalog Entry Get — ( CatalogEntryGet ) - [F] —
string
[ catalogentry ] — Catalog Entry Parent — ( CatalogEntryParent ) - [F] —
string
[ catalogscope ] — Catalog Entry Scope — ( CatalogEntryScope ) - [F] —
int
— Catalog Field Count — ( CatalogFieldCount ) - [F] —
string
[ catalogfieldname ] — Catalog Field Get — ( CatalogFieldGet ) - [F] —
bool
— Catalog Field Exists — ( CatalogFieldExists ) - [F] —
bool
— Catalog Field Is Array — ( CatalogFieldIsArray ) - [F] —
bool
— Catalog Field Is Scope — ( CatalogFieldIsScope ) - [F] —
string
— Catalog Field Type — ( CatalogFieldType ) - [F] —
int
[ preset::FieldTypeCategory ] — Catalog Field Type Category — ( CatalogFieldTypeCategory ) - [F] —
string
— Catalog Field Value Get — ( CatalogFieldValueGet ) - [F] —
int
— Catalog Field Value Get As Integer — ( CatalogFieldValueGetAsInt ) - [F] —
int
— Catalog Field Value Get Flags As Integer — ( CatalogFieldValueGetFlagsAsInt ) - [F] —
fixed
— Catalog Field Value Get As Real — ( libNtve_gf_CatalogFieldValueGetAsReal ) - [F] —
int
— Catalog Field Value Count — ( CatalogFieldValueCount ) - [F] —
string
— Catalog Reference Get — ( CatalogReferenceGet ) - [F] —
int
— Catalog Reference Get As Integer — ( CatalogReferenceGetAsInt ) - [F] —
fixed
— Catalog Reference Get As Real — ( libNtve_gf_CatalogReferenceGetAsReal ) - [F] —
int
— Catalog Reference Count — ( CatalogReferenceCount ) - [F] —
int
[ preset::AbilityClass ] — Class Of Ability — ( AbilityClass ) - [F] —
fixed
— Cost Of Ability — ( libNtve_gf_CostOfAbility )
# Examples
# mods/core.sc2mod
// L165
AbilityClass(lv_abil)
// L193
AbilityClass(lp_ability)
// L194
AbilityClass(lp_ability)
# mods/heroesdata.stormmod
// L8039
AbilityClass(lp_abilityLink)
// L8039
AbilityClass(lp_abilityLink)
// L8039
AbilityClass(lp_abilityLink)
// L8039
AbilityClass(lp_abilityLink)
// L8039
AbilityClass(lp_abilityLink)
// L8039
AbilityClass(lp_abilityLink)
// L8039
AbilityClass(lp_abilityLink)
# mods/heroesdata.stormmod
// L1649
AbilityClass(lv_abilLink)
// L1649
AbilityClass(lv_abilLink)
// L1649
AbilityClass(lv_abilLink)
// L1649
AbilityClass(lv_abilLink)
// L1649
AbilityClass(lv_abilLink)
# mods/starcoop/starcoop.sc2mod
// L4212
AbilityClass(lv_ability)
# mods/starcoop/starcoop.sc2mod
// L1175
AbilityClass(lv_abil)
// L1175
AbilityClass(lv_abil)
// L1175
AbilityClass(lv_abil)
// L1175
AbilityClass(lv_abil)
// L1175
AbilityClass(lv_abil)
// L1175
AbilityClass(lv_abil)
// L13313
AbilityClass(lv_structureAbility)
# mods/warcoop/warclassicsystem.sc2mod
// L635
AbilityClass(lv_itAbilLink)