# Catalog Field Value Get As Integer

Grammar — Value of catalog entry fieldPath for player player as an integer
FlagsNative | Function

Returns the value of a field for an entry as an integer. Use catalog lookup functions to retrieve a data value or other information from the game data. To find the name of a field path, open the data editor and turn on View Raw Data. For example, if you wanted to get the unit for the first index of a train ability, your field path string would be “InfoArray[0].Unit”.

# Arguments

  • int [ preset::CatalogType ] — Catalog
  • string [ catalogentry ] — Entry
  • string [ catalogfieldpath ] — Field Path
  • int — Player

Returns — int

native int CatalogFieldValueGetAsInt(
	int catalog,
	string entry,
	string fieldPath,
	int player,
);

Category: Catalog / Lookup

# Examples

# campaigns/swarm.sc2campaign

MapScript.galaxy

// L3533
CatalogFieldValueGetAsInt(c_gameCatalogUnit, UnitGetType(auto02B9333B_var), "Sight", gv_pLAYER_01_USER)
// L3533
CatalogFieldValueGetAsInt(c_gameCatalogUnit, UnitGetType(auto02B9333B_var), "Sight", gv_pLAYER_01_USER)

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L4773
CatalogFieldValueGetAsInt(c_gameCatalogMap, (lp_map), "Kind", 1)
// L6079
CatalogFieldValueGetAsInt(c_gameCatalogObjective, (lp_objective), "RequiredCount", 1)
// L6116
CatalogFieldValueGetAsInt(c_gameCatalogObjective, (lp_objective), "Type", c_playerAny)
// L6127
CatalogFieldValueGetAsInt(c_gameCatalogObjective, (lp_objective), "Type", c_playerAny)
// L11368
CatalogFieldValueGetAsInt(c_gameCatalogUnit, "K5Kerrigan", "LifeMax", 1)
// L11369
CatalogFieldValueGetAsInt(c_gameCatalogUnit, "K5Kerrigan", "EnergyMax", 1)
// L11370
CatalogFieldValueGetAsInt(c_gameCatalogEffect, "ChainReaction1Damage", "Amount", 1)
// L11371
CatalogFieldValueGetAsInt(c_gameCatalogUnit, "K5Kerrigan", "LifeArmor", 1)
// L11703
CatalogFieldValueGetAsInt(c_gameCatalogUnit, "K5Kerrigan", "LifeMax", 1)
// L11704
CatalogFieldValueGetAsInt(c_gameCatalogUnit, "K5Kerrigan", "EnergyMax", 1)

# campaigns/void.sc2campaign

MapScript.galaxy

// L1633
CatalogFieldValueGetAsInt(c_gameCatalogBehavior, "SOATimeFreeze", "Duration", c_playerAny)
// L2833
CatalogFieldValueGetAsInt(c_gameCatalogBehavior, "SOATimeFreeze", "Duration", c_playerAny)
// L1633
CatalogFieldValueGetAsInt(c_gameCatalogBehavior, "SOATimeFreeze", "Duration", c_playerAny)
// L2833
CatalogFieldValueGetAsInt(c_gameCatalogBehavior, "SOATimeFreeze", "Duration", c_playerAny)

# campaigns/voidstory.sc2campaign

VoidCampaignLib.galaxy

// L2220
CatalogFieldValueGetAsInt(c_gameCatalogMap, (lp_map), "Kind", 1)
// L3723
CatalogFieldValueGetAsInt(c_gameCatalogObjective, (lp_objective), "RequiredCount", 1)
// L3847
CatalogFieldValueGetAsInt(c_gameCatalogObjective, (lp_objective), "Type", c_playerAny)
// L3858
CatalogFieldValueGetAsInt(c_gameCatalogObjective, (lp_objective), "Type", c_playerAny)
// L6886
CatalogFieldValueGetAsInt(c_gameCatalogMap, (lp_nextMap), "LoadingTextWidth", c_playerAny)
// L6886
CatalogFieldValueGetAsInt(c_gameCatalogMap, (lp_nextMap), "LoadingTextHeight", c_playerAny)

# campaigns/voidstory.sc2campaign

VoidCampaignMissionLib.galaxy

// L4960
CatalogFieldValueGetAsInt(c_gameCatalogBehavior, "SOATimeFreeze", "Duration", c_playerAny)

# mods/heroes.stormmod

MapScript.galaxy

// L772
CatalogFieldValueGetAsInt(c_gameCatalogHero, (lv_heroStringIDs), "Flags[ShowInStore]", c_playerAny)
// L772
CatalogFieldValueGetAsInt(c_gameCatalogHero, (lv_heroStringIDs), "Flags[PreventTryMeLaunch]", c_playerAny)
// L772
CatalogFieldValueGetAsInt(c_gameCatalogHero, (lv_heroStringIDs), "Flags[AllowAIRandomSelection]", c_playerAny)
// L772
CatalogFieldValueGetAsInt(c_gameCatalogHero, (lv_heroStringIDs), "Flags[AllowHumanRandomSelection]", c_playerAny)
// L814
CatalogFieldValueGetAsInt(c_gameCatalogHero, (lv_heroStringIDs), "Flags[ShowInStore]", c_playerAny)
// L814
CatalogFieldValueGetAsInt(c_gameCatalogHero, (lv_heroStringIDs), "Flags[PreventTryMeLaunch]", c_playerAny)
// L814
CatalogFieldValueGetAsInt(c_gameCatalogHero, (lv_heroStringIDs), "Flags[AllowAIRandomSelection]", c_playerAny)
// L814
CatalogFieldValueGetAsInt(c_gameCatalogHero, (lv_heroStringIDs), "Flags[AllowHumanRandomSelection]", c_playerAny)
// L772
CatalogFieldValueGetAsInt(c_gameCatalogHero, (lv_heroStringIDs), "Flags[ShowInStore]", c_playerAny)
// L772
CatalogFieldValueGetAsInt(c_gameCatalogHero, (lv_heroStringIDs), "Flags[PreventTryMeLaunch]", c_playerAny)
// L772
CatalogFieldValueGetAsInt(c_gameCatalogHero, (lv_heroStringIDs), "Flags[AllowAIRandomSelection]", c_playerAny)
// L772
CatalogFieldValueGetAsInt(c_gameCatalogHero, (lv_heroStringIDs), "Flags[AllowHumanRandomSelection]", c_playerAny)
// L814
CatalogFieldValueGetAsInt(c_gameCatalogHero, (lv_heroStringIDs), "Flags[ShowInStore]", c_playerAny)
// L814
CatalogFieldValueGetAsInt(c_gameCatalogHero, (lv_heroStringIDs), "Flags[PreventTryMeLaunch]", c_playerAny)
// L814
CatalogFieldValueGetAsInt(c_gameCatalogHero, (lv_heroStringIDs), "Flags[AllowAIRandomSelection]", c_playerAny)
// L814
CatalogFieldValueGetAsInt(c_gameCatalogHero, (lv_heroStringIDs), "Flags[AllowHumanRandomSelection]", c_playerAny)

# mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod

LibPVEB.galaxy

// L2691
CatalogFieldValueGetAsInt(c_gameCatalogBehavior, "TychusOdin", "Duration", lv_enemyPlayerIndex)
// L2692
CatalogFieldValueGetAsInt(c_gameCatalogBehavior, "MurkySafetyBubble", "Duration", lv_enemyPlayerIndex)
// L2693
CatalogFieldValueGetAsInt(c_gameCatalogAbil, "MurkyOctoGrab", "Cost.Cooldown.TimeUse", lv_enemyPlayerIndex)
// L2694
CatalogFieldValueGetAsInt(c_gameCatalogAbil, "MurkySafetyBubble", "Cost.Cooldown.TimeUse", lv_enemyPlayerIndex)

# mods/heroesbrawlmods/heroselectionmods/ingameheroselection.stormmod

LibIGHS.galaxy

// L1252
CatalogFieldValueGetAsInt(c_gameCatalogHero, libIGHS_gv_shuffleSettings.lv_players[lv_updatedPlayer].lv_heroPickOptions[lv_pick], "ExpandedRole", c_playerAny)

# mods/heroesdata.stormmod

AILib.galaxy

// L1462
CatalogFieldValueGetAsInt(c_gameCatalogHero, lv_heroName, "TalentAIBuildsArray[" + IntToString((lv_talentBuildIndex - 1)) + "].AIOnly", lp_trigPlayer)
// L1467
CatalogFieldValueGetAsInt(c_gameCatalogHero, lv_heroName, "TalentAIBuildsArray[" + IntToString((lv_talentBuildIndex - 1)) + "].MinDifficulty", lp_trigPlayer)
// L1472
CatalogFieldValueGetAsInt(c_gameCatalogHero, lv_heroName, "TalentAIBuildsArray[" + IntToString((lv_talentBuildIndex - 1)) + "].MaxDifficulty", lp_trigPlayer)
// L2048
CatalogFieldValueGetAsInt(c_gameCatalogHero, libCore_gf_GetHeroFromIndex(lp_heroIndex), "AIComplexityTier", lp_player)
// L2053
CatalogFieldValueGetAsInt(c_gameCatalogGame, "Dflt", "AIDifficultySettings[" + IntToString((libAIAI_gv_aIHeroes[lp_player].lv_difficulty)) + "].HeroComplexityTier", lp_player)

# mods/heroesdata.stormmod

GameDataHelperLib.galaxy

// L62
CatalogFieldValueGetAsInt(c_gameCatalogBehavior, "ButcherFreshMeatTokenCounter", "ConditionalEvents[" + IntToString(0) + "].CompareValue", c_playerAny)
// L85
CatalogFieldValueGetAsInt(c_gameCatalogBehavior, "JainaFrostbiteTokenCounter", "Max", 0)
// L237
CatalogFieldValueGetAsInt(c_gameCatalogUnit, UnitGetType(lp_unit), "Height", c_playerAny)
// L5304
CatalogFieldValueGetAsInt(c_gameCatalogAbil, lv_abilLink, "Cost[" + IntToString(0) + "].Cooldown.TimeUse", auto6824BDCC_var)
// L7795
CatalogFieldValueGetAsInt(c_gameCatalogAbil, "ButcherRuthlessOnslaught", "Range[" + IntToString(0) + "]", c_playerAny)
// L8764
CatalogFieldValueGetAsInt(c_gameCatalogEffect, "RegenGlobePickupSearch", "AreaArray[" + IntToString(0) + "].Radius", 0)
// L11369
CatalogFieldValueGetAsInt(c_gameCatalogBehavior, "ETCProgRockTokenCounter", "Max", 0)
// L15508
CatalogFieldValueGetAsInt(c_gameCatalogBehavior, EventUnitBehavior(), "BehaviorCategories[Restorable]", c_playerAny)
// L25828
CatalogFieldValueGetAsInt(c_gameCatalogBehavior, "ZeratulGrimTaskQuestToken", "Max", c_playerAny)

# mods/heroesdata.stormmod

GameLib.galaxy

// L7504
CatalogFieldValueGetAsInt(c_gameCatalogHero, DataTableGetString(true, ("HeroIndex_" + IntToString(lv_itHeroIndex))), "ExpandedRole", c_playerAny)
// L8113
CatalogFieldValueGetAsInt(c_gameCatalogAbil, lv_abilLink, "Cost[" + IntToString(0) + "].Charge.CountMax", UnitGetOwner(lv_itUnit))
// L11558
CatalogFieldValueGetAsInt(c_gameCatalogHero, lv_heroID, "TalentTreeArray[" + IntToString((lv_itTalent - 1)) + "].Tier", c_playerAny)
// L11567
CatalogFieldValueGetAsInt(c_gameCatalogHero, lv_heroID, "TalentTreeArray[" + IntToString((lv_itTalent - 1)) + "].Column", c_playerAny)
// L11643
CatalogFieldValueGetAsInt(c_gameCatalogTalent, lv_talentID, "AbilityModificationArray[" + IntToString((lv_itAbilityMod - 1)) + "].Modifications[" + IntToString((lv_itAbilityModChange - 1)) + "].Type", c_playerAny)
// L11645
CatalogFieldValueGetAsInt(c_gameCatalogTalent, lv_talentID, "AbilityModificationArray[" + IntToString((lv_itAbilityMod - 1)) + "].Modifications[" + IntToString((lv_itAbilityModChange - 1)) + "].Catalog", c_playerAny)
// L11648
CatalogFieldValueGetAsInt(c_gameCatalogTalent, lv_talentID, "AbilityModificationArray[" + IntToString((lv_itAbilityMod - 1)) + "].Modifications[" + IntToString((lv_itAbilityModChange - 1)) + "].FieldIsInteger", c_playerAny)
// L11905
CatalogFieldValueGetAsInt(c_gameCatalogBehavior, lp_tokenCounterBehavior, "Min", libCore_gv_cOMPUTER_Neutral)
// L20493
CatalogFieldValueGetAsInt(c_gameCatalogUnit, UnitGetType(EventPlayerEffectUsedUnit(c_effectUnitCaster)), "KillXP", c_playerAny)

# mods/heroesdata.stormmod

HeroesLib.galaxy

// L103
CatalogFieldValueGetAsInt(c_gameCatalogConfig, "Config", "FreeToPlayHeroBaseCount", c_playerAny)
// L791
CatalogFieldValueGetAsInt(c_gameCatalogHero, lv_heroID, "Role", c_playerAny)
// L792
CatalogFieldValueGetAsInt(c_gameCatalogHero, lv_heroID, "ExpandedRole", c_playerAny)
// L793
CatalogFieldValueGetAsInt(c_gameCatalogHero, lv_heroID, "Universe", c_playerAny)
// L794
CatalogFieldValueGetAsInt(c_gameCatalogHero, lv_heroID, "Gender", c_playerAny)
// L799
CatalogFieldValueGetAsInt(c_gameCatalogHero, lv_heroID, "Melee", c_playerAny)
// L806
CatalogFieldValueGetAsInt(c_gameCatalogHero, lv_heroID, "IntroCutsceneSize", c_playerAny)
// L808
CatalogFieldValueGetAsInt(c_gameCatalogHero, lv_heroID, "Flags[Flyer]", c_playerAny)
// L809
CatalogFieldValueGetAsInt(c_gameCatalogHero, lv_heroID, "Flags[AllowAIRandomSelection]", c_playerAny)
// L810
CatalogFieldValueGetAsInt(c_gameCatalogHero, lv_heroID, "Flags[AllowHumanRandomSelection]", c_playerAny)

# mods/heroesdata.stormmod

MapMechanicsLib.galaxy

// L5527
CatalogFieldValueGetAsInt(c_gameCatalogBehavior, "MercLanerOgreBuff", "DamageResponse.ModifyLimit", c_playerAny)
// L5554
CatalogFieldValueGetAsInt(c_gameCatalogBehavior, "MercLanerOgreBuff", "DamageResponse.ModifyLimit", c_playerAny)

# mods/heroesdata.stormmod

SoundLib.galaxy

// L1478
CatalogFieldValueGetAsInt(c_gameCatalogEffect, EventPlayerEffectUsed(), "Flags[TriggerVoiceResponse]", c_playerAny)

# mods/heroesdata.stormmod

SupportLib.galaxy

// L1715
CatalogFieldValueGetAsInt(c_gameCatalogBehavior, lv_tokenBehavior, "Max", lp_player)
// L1727
CatalogFieldValueGetAsInt(c_gameCatalogBehavior, lv_tokenBehavior, "ConditionalEvents[" + IntToString(lv_itConditionalIndex) + "].CompareValue", c_playerAny)

# mods/heroesdata.stormmod

UILib.galaxy

// L4276
CatalogFieldValueGetAsInt(c_gameCatalogBehavior, lp_behavior, "DisplayPriority", c_playerAny)
// L4276
CatalogFieldValueGetAsInt(c_gameCatalogBehavior, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayer[lp_player], "DisplayPriority", c_playerAny)
// L4277
CatalogFieldValueGetAsInt(c_gameCatalogBehavior, lp_behavior, "DisplayPriority", c_playerAny)
// L4277
CatalogFieldValueGetAsInt(c_gameCatalogBehavior, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayer[lp_player], "DisplayPriority", c_playerAny)
// L4298
CatalogFieldValueGetAsInt(c_gameCatalogBehavior, lp_behavior, "DisplayPriority", c_playerAny)
// L4298
CatalogFieldValueGetAsInt(c_gameCatalogBehavior, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayerRight[lp_player], "DisplayPriority", c_playerAny)
// L4299
CatalogFieldValueGetAsInt(c_gameCatalogBehavior, lp_behavior, "DisplayPriority", c_playerAny)
// L4299
CatalogFieldValueGetAsInt(c_gameCatalogBehavior, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayerRight[lp_player], "DisplayPriority", c_playerAny)
// L6703
CatalogFieldValueGetAsInt(c_gameCatalogAbil, lv_heroicAbilityLink, "Cost.Charge.CountMax", lv_playerIndex)
// L6848
CatalogFieldValueGetAsInt(c_gameCatalogAbil, lp_ability, "Cost.Charge.CountMax", lp_player)

# mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmod

LibMHtM.galaxy

// L1611
CatalogFieldValueGetAsInt(c_gameCatalogEffect, "CaptureMacGuffin", "PeriodCount", UnitGetOwner(EventUnit()))

# mods/heroesmapmods/battlegroundmapmods/infernalshrines.stormmod

LibMSHE.galaxy

// L2022
CatalogFieldValueGetAsInt(c_gameCatalogEffect, "DiabloMoltenDamage", "Amount", libCore_gv_cOMPUTER_TeamOrder)
// L2023
CatalogFieldValueGetAsInt(c_gameCatalogEffect, "DiabloMortarDamage", "Amount", libCore_gv_cOMPUTER_TeamOrder)
// L2024
CatalogFieldValueGetAsInt(c_gameCatalogEffect, "DiabloThunderstormDamage", "Amount", libCore_gv_cOMPUTER_TeamOrder)
// L2025
CatalogFieldValueGetAsInt(c_gameCatalogEffect, "DiabloFrozenDamage", "Amount", libCore_gv_cOMPUTER_TeamOrder)
// L2026
CatalogFieldValueGetAsInt(c_gameCatalogEffect, "DiabloArcaneDamage", "Amount", libCore_gv_cOMPUTER_TeamOrder)
// L2027
CatalogFieldValueGetAsInt(c_gameCatalogEffect, "DiabloMoltenDamage", "Amount", libCore_gv_cOMPUTER_TeamChaos)
// L2028
CatalogFieldValueGetAsInt(c_gameCatalogEffect, "DiabloMortarDamage", "Amount", libCore_gv_cOMPUTER_TeamChaos)