# Cost Of Ability
Grammar — costType|Cost Type cost of ability
Flags —Function
Returns one of the costs of an ability. Use catalog lookup functions to retrieve a data value or other information from the game data.
# Arguments
string
[ gamelink::Abil ] — Abilitystring
[ preset::CostType ] — CostType
Returns — fixed
fixed libNtve_gf_CostOfAbility(
string lp_ability,
string lp_costType,
);
# 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
# campaigns/swarmstory.sc2campaign
— SwarmCampaignDataHelperLib.galaxy
// L23
libNtve_gf_CostOfAbility("PsiStrikeBlink", "Energy")
# campaigns/void.sc2campaign
// L577
libNtve_gf_CostOfAbility("Transfusion", "Energy")
// L577
libNtve_gf_CostOfAbility("Transfusion", "Energy")
# campaigns/voidstory.sc2campaign
— VoidCampaignMissionLib.galaxy
// L41
libNtve_gf_CostOfAbility("FenixCharge", "Energy")
// L42
libNtve_gf_CostOfAbility("PsiStrikeBlink", "Energy")
// L43
libNtve_gf_CostOfAbility("KerriganEpilogue03LineDashAttack", "Energy")
// L101
libNtve_gf_CostOfAbility("DarkArchonMindControl", "Energy")
// L132
libNtve_gf_CostOfAbility("DarkArchonConfusion", "Energy")
// L170
libNtve_gf_CostOfAbility("VoidHighTemplarMindBlast", "Energy")
// L197
libNtve_gf_CostOfAbility("VoidHighTemplarPsiOrb", "Energy")
// L4800
libNtve_gf_CostOfAbility(libVCMI_gv_pM_SoATargetingActivateAbility, "Energy")
# mods/missionpacks/novacampaign.sc2mod
// L50
libNtve_gf_CostOfAbility("NovaPsiStrike", "Energy")
// L1369
libNtve_gf_CostOfAbility("Snipe", "Energy")
# mods/novastoryassets.sc2mod
// L4537
libNtve_gf_CostOfAbility("NovaPsiStrike", "Energy")
// L4538
libNtve_gf_CostOfAbility("NovaPsiStrike", "Energy")
// L4537
libNtve_gf_CostOfAbility("NovaPsiStrike", "Energy")
// L4538
libNtve_gf_CostOfAbility("NovaPsiStrike", "Energy")
# mods/starcoop/starcoop.sc2mod
// L171
libNtve_gf_CostOfAbility("PsiStrikeBlink", "Energy")
// L194
libNtve_gf_CostOfAbility("NovaPsiStrike", "Energy")
// L6158
libNtve_gf_CostOfAbility(UserDataGetGameLink("CoopAbilityTychusRageEffects", lp_rageEffect, "Rage Ability", 1), "Energy")