# Catalog Field Value Get

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

Returns the value of a field for an entry. 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 — string

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

Category: Catalog / Lookup

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L2299
CatalogFieldValueGet(c_gameCatalogEffect, "SS_TerraTronBeamAttackPersistent", "PeriodCount", 1)
// L2299
CatalogFieldValueGet(c_gameCatalogEffect, "SS_TerraTronBeamAttackPersistent", "PeriodicPeriodArray[0]", 1)
// L2300
CatalogFieldValueGet(c_gameCatalogUnit, "SS_TerraTronBeamTarget", "Speed", 1)
// L2326
CatalogFieldValueGet(c_gameCatalogEffect, "SS_TerraTronBeamAttackPersistent", "PeriodCount", 1)
// L2326
CatalogFieldValueGet(c_gameCatalogEffect, "SS_TerraTronBeamAttackPersistent", "PeriodicPeriodArray[0]", 1)
// L2327
CatalogFieldValueGet(c_gameCatalogUnit, "SS_TerraTronBeamTarget", "Speed", 1)
// L3384
CatalogFieldValueGet(c_gameCatalogUnit, (lp_unitType), "ScoreKill", c_playerAny)
// L5661
CatalogFieldValueGet(c_gameCatalogModel, "SS_TerraTron", "ScaleMin", 1)
// L466
CatalogFieldValueGet(c_gameCatalogAbil, "Snipe", "TargetFilters[" + IntToString(0) + "]", lp_owner)
// L467
CatalogFieldValueGet(c_gameCatalogAbil, "Snipe", "Range[" + IntToString(0) + "]", lp_owner)
// L468
CatalogFieldValueGet(c_gameCatalogEffect, "SnipeDamage", "Amount", lp_owner)
// L2299
CatalogFieldValueGet(c_gameCatalogEffect, "SS_TerraTronBeamAttackPersistent", "PeriodCount", 1)
// L2299
CatalogFieldValueGet(c_gameCatalogEffect, "SS_TerraTronBeamAttackPersistent", "PeriodicPeriodArray[0]", 1)
// L2300
CatalogFieldValueGet(c_gameCatalogUnit, "SS_TerraTronBeamTarget", "Speed", 1)
// L2326
CatalogFieldValueGet(c_gameCatalogEffect, "SS_TerraTronBeamAttackPersistent", "PeriodCount", 1)
// L2326
CatalogFieldValueGet(c_gameCatalogEffect, "SS_TerraTronBeamAttackPersistent", "PeriodicPeriodArray[0]", 1)
// L2327
CatalogFieldValueGet(c_gameCatalogUnit, "SS_TerraTronBeamTarget", "Speed", 1)
// L3384
CatalogFieldValueGet(c_gameCatalogUnit, (lp_unitType), "ScoreKill", c_playerAny)
// L5661
CatalogFieldValueGet(c_gameCatalogModel, "SS_TerraTron", "ScaleMin", 1)
// L466
CatalogFieldValueGet(c_gameCatalogAbil, "Snipe", "TargetFilters[" + IntToString(0) + "]", lp_owner)
// L467
CatalogFieldValueGet(c_gameCatalogAbil, "Snipe", "Range[" + IntToString(0) + "]", lp_owner)
// L468
CatalogFieldValueGet(c_gameCatalogEffect, "SnipeDamage", "Amount", lp_owner)

# campaigns/libertystory.sc2campaign

CampaignLib.galaxy

// L1200
CatalogFieldValueGet(c_gameCatalogSound, lv_sndGameLink, ("AssetArray[" + IntToString(lv_sndAssetID) + "].Subtitle"), 1)

# campaigns/swarm.sc2campaign

MapScript.galaxy

// L1057
CatalogFieldValueGet(c_gameCatalogUnit, "Mutalisk", "Speed", gv_pLAYER_01_USER)
// L1347
CatalogFieldValueGet(c_gameCatalogButton, "Larva", "Tooltip", gv_pLAYER_01_USER)
// L1244
CatalogFieldValueGet(c_gameCatalogButton, "PsionicLift", "Tooltip", gv_pLAYER_01_USER)
// L1245
CatalogFieldValueGet(c_gameCatalogButton, "MindBolt", "Tooltip", gv_pLAYER_01_USER)
// L10368
CatalogFieldValueGet(c_gameCatalogAbil, "MindBolt", "Name", gv_pLAYER_01_USER)
// L10371
CatalogFieldValueGet(c_gameCatalogAbil, "PsionicLift", "Name", gv_pLAYER_01_USER)
// L1440
CatalogFieldValueGet(c_gameCatalogButton, "Larva", "Tooltip", gv_pLAYER_01_USER)
// L1441
CatalogFieldValueGet(c_gameCatalogButton, "Overlord", "Tooltip", gv_pLAYER_01_USER)
// L1442
CatalogFieldValueGet(c_gameCatalogButton, "Drone", "Tooltip", gv_pLAYER_01_USER)
// L649
CatalogFieldValueGet(c_gameCatalogUnit, (UnitGetType(lp_unitKilled)), "CostResource[Minerals]", gv_pLAYER_01_USER)
// L151
CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1)
// L1057
CatalogFieldValueGet(c_gameCatalogUnit, "Mutalisk", "Speed", gv_pLAYER_01_USER)
// L1347
CatalogFieldValueGet(c_gameCatalogButton, "Larva", "Tooltip", gv_pLAYER_01_USER)
// L1244
CatalogFieldValueGet(c_gameCatalogButton, "PsionicLift", "Tooltip", gv_pLAYER_01_USER)
// L1245
CatalogFieldValueGet(c_gameCatalogButton, "MindBolt", "Tooltip", gv_pLAYER_01_USER)
// L10368
CatalogFieldValueGet(c_gameCatalogAbil, "MindBolt", "Name", gv_pLAYER_01_USER)
// L10371
CatalogFieldValueGet(c_gameCatalogAbil, "PsionicLift", "Name", gv_pLAYER_01_USER)
// L1440
CatalogFieldValueGet(c_gameCatalogButton, "Larva", "Tooltip", gv_pLAYER_01_USER)
// L1441
CatalogFieldValueGet(c_gameCatalogButton, "Overlord", "Tooltip", gv_pLAYER_01_USER)
// L1442
CatalogFieldValueGet(c_gameCatalogButton, "Drone", "Tooltip", gv_pLAYER_01_USER)
// L649
CatalogFieldValueGet(c_gameCatalogUnit, (UnitGetType(lp_unitKilled)), "CostResource[Minerals]", gv_pLAYER_01_USER)
// L151
CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1)

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L526
CatalogFieldValueGet(lp_catalog, lp_entry, lv_fieldPath, lp_player)
// L816
CatalogFieldValueGet(c_gameCatalogSound, ConversationDataGetSound(lp_conversationLine, true), "AssetArray[" + IntToString(0) + "].PortraitActor", c_playerAny)
// L1350
CatalogFieldValueGet(c_gameCatalogMap, libSwaC_gf_CurrentMap(), "ObjectiveArray["+IntToString(auto42E19D8A_ai-1)+"]", 1)
// L4416
CatalogFieldValueGet(c_gameCatalogAchievement, lp_achievement, "Name", c_playerAny)
// L4418
CatalogFieldValueGet(c_gameCatalogAchievement, lp_achievement, "Description", c_playerAny)
// L4429
CatalogFieldValueGet(c_gameCatalogAchievement, lp_achievement, "Name", 1)
// L4431
CatalogFieldValueGet(c_gameCatalogAchievement, lp_achievement, "Description", 1)
// L4435
CatalogFieldValueGet(c_gameCatalogAchievement, lp_achievement, "Points", 1)
// L4732
CatalogFieldValueGet(c_gameCatalogMap, (lp_map), "LoadingImage", c_playerAny)
// L4783
CatalogFieldValueGet(c_gameCatalogMap, (lp_map), "File", 1)

# campaigns/swarmstoryutil.sc2mod

Lib281DEC45.galaxy

// L1110
CatalogFieldValueGet(c_gameCatalogLocation, (lib281DEC45_gv_zSS_UITravelLocationLinks[lp_planetIndex]), lp_field, c_playerAny)
// L1180
CatalogFieldValueGet(c_gameCatalogLocation, (libSwaC_gf_StoryMapPlanet(lib281DEC45_gv_zSS_UITravelMaps[lp_planetIndex])), "AmbientSound", c_playerAny)
// L1344
CatalogFieldValueGet(c_gameCatalogLocation, lp_location, "UserReference", 1)
// L1468
CatalogFieldValueGet(c_gameCatalogArmyCategory, libSwaC_gf_MissionArmyCategoryUnlocked(lv_indexMap), "Unit", c_playerAny)
// L1529
CatalogFieldValueGet(c_gameCatalogArmyCategory, libSwaC_gf_MissionArmyCategoryUnlocked(lv_indexMap), "Unit", 1)
// L1642
CatalogFieldValueGet(c_gameCatalogArmyCategory, libSwaC_gf_MissionArmyCategoryUnlocked(lib281DEC45_gv_zSS_NextMission), "Unit", c_playerAny)
// L1692
CatalogFieldValueGet(c_gameCatalogArmyCategory, libSwaC_gf_MissionArmyCategoryUnlocked(lib281DEC45_gv_zSS_NextMission), "Unit", c_playerAny)
// L1700
CatalogFieldValueGet(c_gameCatalogMap, (lib281DEC45_gv_zSS_NextMission), lp_field, c_playerAny)
// L1705
CatalogFieldValueGet(c_gameCatalogMap, lp_mission, "MissionBackgroundImage", 1)
// L1715
CatalogFieldValueGet(c_gameCatalogMap, (lp_map), "UserReference", 1)

# campaigns/void.sc2campaign

MapScript.galaxy

// L1685
CatalogFieldValueGet(c_gameCatalogUnit, UnitGetType(lp_unit), (("FlagArray[" + "ArmySelect" + "]")), c_playerAny)
// L377
CatalogFieldValueGet(c_gameCatalogUnit, UnitGetType(lp_unit), (("FlagArray[" + "ArmySelect" + "]")), c_playerAny)
// L1685
CatalogFieldValueGet(c_gameCatalogUnit, UnitGetType(lp_unit), (("FlagArray[" + "ArmySelect" + "]")), c_playerAny)
// L377
CatalogFieldValueGet(c_gameCatalogUnit, UnitGetType(lp_unit), (("FlagArray[" + "ArmySelect" + "]")), c_playerAny)

# campaigns/voidstory.sc2campaign

VoidCampaignLib.galaxy

// L153
CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1)
// L181
CatalogFieldValueGet(c_gameCatalogArmyCategory, lv_indexArmyCategory, "ArmyUnitArray["+IntToString(autoAC56682B_ai-1)+"]", 1)
// L611
CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1)
// L767
CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1)
// L800
CatalogFieldValueGet(c_gameCatalogArmyCategory, lv_indexArmyCategory, "ArmyUnitArray["+IntToString(autoD1710475_ai-1)+"]", 1)
// L1087
CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1)
// L1381
CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "ObjectiveArray["+IntToString(autoE13612E9_ai-1)+"]", 1)
// L1451
CatalogFieldValueGet(c_gameCatalogMap, lv_arcMissions[lv_indexArc][lv_indexArcMission], "ObjectiveArray["+IntToString(auto01D194A4_ai-1)+"]", 1)
// L1605
CatalogFieldValueGet(c_gameCatalogAchievement, lp_achievement, "Name", c_playerAny)
// L1607
CatalogFieldValueGet(c_gameCatalogAchievement, lp_achievement, "Description", c_playerAny)

# campaigns/voidstory.sc2campaign

VoidCampaignMissionLib.galaxy

// L1191
CatalogFieldValueGet(c_gameCatalogMap, libVoiC_gf_CurrentMap(), "ObjectiveArray["+IntToString(auto29898FAE_ai-1)+"]", 1)
// L1297
CatalogFieldValueGet(c_gameCatalogMap, libVoiC_gf_CurrentMap(), "ObjectiveArray["+IntToString(autoD74C5D59_ai-1)+"]", 1)
// L1327
CatalogFieldValueGet(c_gameCatalogArmyCategory, lv_indexArmyCategory, "ArmyUnitArray["+IntToString(autoA40095C7_ai-1)+"]", 1)
// L2749
CatalogFieldValueGet(c_gameCatalogSound, ConversationDataGetSound(lp_conversationLine, true), "AssetArray[" + IntToString(0) + "].PortraitActor", c_playerAny)
// L3387
CatalogFieldValueGet(c_gameCatalogUnit, UnitGetType(lv_indexResource), "ResourceType", c_playerAny)
// L3867
CatalogFieldValueGet(c_gameCatalogUnit, UnitGetType(lv_indexResource), "ResourceType", c_playerAny)
// L3921
CatalogFieldValueGet(c_gameCatalogUnit, lp_unitType, "CardLayouts[" + IntToString(0) + "].LayoutButtons[" + IntToString(lv_buttonIndex) + "].Face", c_playerAny)
// L3922
CatalogFieldValueGet(c_gameCatalogUnit, lp_unitType, "CardLayouts[" + IntToString(0) + "].LayoutButtons[" + IntToString(lv_buttonIndex) + "].Row", c_playerAny)
// L3923
CatalogFieldValueGet(c_gameCatalogUnit, lp_unitType, "CardLayouts[" + IntToString(0) + "].LayoutButtons[" + IntToString(lv_buttonIndex) + "].Column", c_playerAny)
// L7400
CatalogFieldValueGet(c_gameCatalogUnit, "Pylon", "Food", 1)

# campaigns/voidstory.sc2campaign

VoidCampaignStoryLib.galaxy

// L216
CatalogFieldValueGet(c_gameCatalogConversation, lv_conversation, "Groups[" + IntToString(lv_indexGroup) + "].Id", c_playerAny)
// L224
CatalogFieldValueGet(c_gameCatalogConversation, lv_conversation, "Groups[" + IntToString(lv_indexParentGroup) + "].Children[" + IntToString(lv_indexChild) + "]", c_playerAny)
// L362
CatalogFieldValueGet(c_gameCatalogConversation, lp_conversationLink, "Groups[" + IntToString(lv_indexGroup) + "].Id", c_playerAny)
// L366
CatalogFieldValueGet(c_gameCatalogConversation, lp_conversationLink, "Groups[" + IntToString(lv_indexGroup) + "].Conditions[" + IntToString(lv_indexCondition) + "].User.Type", c_playerAny)
// L367
CatalogFieldValueGet(c_gameCatalogConversation, lp_conversationLink, "Groups[" + IntToString(lv_indexGroup) + "].Conditions[" + IntToString(lv_indexCondition) + "].User.Instance", c_playerAny)
// L368
CatalogFieldValueGet(c_gameCatalogConversation, lp_conversationLink, "Groups[" + IntToString(lv_indexGroup) + "].Conditions[" + IntToString(lv_indexCondition) + "].User.Field", c_playerAny)
// L375
CatalogFieldValueGet(c_gameCatalogConversation, lp_conversationLink, "Groups[" + IntToString(lv_indexGroup) + "].Conditions[" + IntToString(lv_indexCondition) + "].Operation", c_playerAny)
// L375
CatalogFieldValueGet(c_gameCatalogConversation, lp_conversationLink, "Groups[" + IntToString(lv_indexGroup) + "].Conditions[" + IntToString(lv_indexCondition) + "].Value", c_playerAny)
// L388
CatalogFieldValueGet(c_gameCatalogConversation, lp_conversationLink, "Groups[" + IntToString(lv_indexGroup) + "].Children[" + IntToString(lv_indexChild) + "]", c_playerAny)
// L389
CatalogFieldValueGet(c_gameCatalogConversation, lp_conversationLink, "Groups[" + IntToString(lv_indexGroup) + "].Id", c_playerAny)

# campaigns/voidstory.sc2campaign

VoidCampaignUILib.galaxy

// L728
CatalogFieldValueGet(c_gameCatalogArmyCategory, libVCUI_gv_pU_ArmyCategories[lv_categoryIndex], "ArmyUnitArray["+IntToString(auto364B23CB_ai-1)+"]", 1)