# Catalog Field Value Set

Grammar — Set value of catalog entry fieldPath for player player to value
FlagsNative | Action

Sets the value of a field for an entry. To find the name of a field path, open the data editor and turn on View Raw Data. For example, if you wanted to set 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
  • string — Value

Returns — bool

native bool CatalogFieldValueSet(
	int catalog,
	string entry,
	string fieldPath,
	int player,
	string value,
);

Category: Catalog / Support

# Examples

# campaigns/swarm.sc2campaign

MapScript.galaxy

// L631
CatalogFieldValueSet(c_gameCatalogUnit, "HotSHunterBurrowed", "Sight", gv_pLAYER_04_ZERG, "3")
// L3594
CatalogFieldValueSet(c_gameCatalogBehavior, "QueenSpawnLarvaTimer", "Duration", gv_pLAYER_05_ZERG_ALLIES, "25")
// L718
CatalogFieldValueSet(c_gameCatalogUnit, "BroodLord", "Speed", gv_pLAYER_04_FERALZERG, "1")
// L724
CatalogFieldValueSet(c_gameCatalogUnit, "Mutalisk", "Speed", gv_pLAYER_04_FERALZERG, "1")
// L1057
CatalogFieldValueSet(c_gameCatalogUnit, "Mutalisk", "Speed", gv_pLAYER_04_FERALZERG, CatalogFieldValueGet(c_gameCatalogUnit, "Mutalisk", "Speed", gv_pLAYER_01_USER))
// L523
CatalogFieldValueSet(c_gameCatalogUnit, "UmojanLabGenerator", "Sight", gv_pLAYER_02_DOMINION, "0")
// L1484
CatalogFieldValueSet(c_gameCatalogBehavior, "SpawnLarva", "InfoArray[" + IntToString(0) + "].Delay", gv_pLAYER_01_USER, "12")
// L3244
CatalogFieldValueSet(c_gameCatalogBehavior, "SpawnLarva", "InfoArray[" + IntToString(0) + "].Delay", gv_pLAYER_01_USER, "6")
// L2993
CatalogFieldValueSet(c_gameCatalogEffect, "PsiDecimatorSearch", "AreaArray[0].Radius", gv_pLAYER_02_DOMINION, FixedToString(gv_psifieldradius, c_fixedPrecisionAny))
// L2998
CatalogFieldValueSet(c_gameCatalogEffect, "PsiDecimatorSearch", "AreaArray[0].Radius", gv_pLAYER_02_DOMINION, FixedToString(0.0, c_fixedPrecisionAny))
// L3282
CatalogFieldValueSet(c_gameCatalogEffect, "PsiDecimatorSearch", "AreaArray[0].Radius", gv_pLAYER_02_DOMINION, FixedToString(gv_psifieldradius, c_fixedPrecisionAny))
// L646
CatalogFieldValueSet(c_gameCatalogButton, lp_button, "Tooltip", gv_pLAYER_01_USER, lp_tooltipPath)
// L652
CatalogFieldValueSet(c_gameCatalogButton, lp_button, "Tooltip", gv_pLAYER_01_USER, gv_selectLarva_OriginalTooltip)
// L557
CatalogFieldValueSet(c_gameCatalogButton, lv_button, "Tooltip", gv_pLAYER_01_USER, lp_tooltipPath)
// L573
CatalogFieldValueSet(c_gameCatalogButton, lv_button, "Tooltip", gv_pLAYER_01_USER, gv_crushingGrip_OriginalTooltip)
// L577
CatalogFieldValueSet(c_gameCatalogButton, lv_button, "Tooltip", gv_pLAYER_01_USER, gv_kineticBlast_OriginalTooltip)
// L701
CatalogFieldValueSet(c_gameCatalogButton, lp_button, "Tooltip", gv_pLAYER_01_USER, lp_tooltipPath)
// L727
CatalogFieldValueSet(c_gameCatalogButton, lp_button, "Tooltip", gv_pLAYER_01_USER, lv_originalText)
// L1568
CatalogFieldValueSet(c_gameCatalogEffect, "SJPirateCapitalShipLeftDamage", "Amount", gv_pLAYER_01_USER, "3")
// L1569
CatalogFieldValueSet(c_gameCatalogEffect, "SJPirateCapitalShipRightDamage", "Amount", gv_pLAYER_01_USER, "3")
// L1570
CatalogFieldValueSet(c_gameCatalogEffect, "SJPirateYamatoADamage", "Amount", gv_pLAYER_01_USER, "200")
// L1571
CatalogFieldValueSet(c_gameCatalogEffect, "SJPirateYamatoBDamage", "Amount", gv_pLAYER_01_USER, "200")
// L1574
CatalogFieldValueSet(c_gameCatalogEffect, "SJPirateCapitalShipLeftDamage", "Amount", gv_pLAYER_01_USER, "5")
// L1575
CatalogFieldValueSet(c_gameCatalogEffect, "SJPirateCapitalShipRightDamage", "Amount", gv_pLAYER_01_USER, "5")
// L1576
CatalogFieldValueSet(c_gameCatalogEffect, "SJPirateYamatoADamage", "Amount", gv_pLAYER_01_USER, "300")
// L1577
CatalogFieldValueSet(c_gameCatalogEffect, "SJPirateYamatoBDamage", "Amount", gv_pLAYER_01_USER, "300")
// L6829
CatalogFieldValueSet(c_gameCatalogAbil, "DroneCarcassHarvest", "CastIntroTime[" + IntToString(0) + "]", gv_pLAYER_01_USER, "3")
// L7051
CatalogFieldValueSet(c_gameCatalogAbil, "DroneCarcassHarvest", "CastIntroTime[" + IntToString(0) + "]", gv_pLAYER_01_USER, "60")
// L1086
CatalogFieldValueSet(c_gameCatalogUnit, "Viper", "EnergyStart", 1, FixedToString(libHots_gf_DifficultyValueFixed2(25.0, 25.0, 50.0), c_fixedPrecisionAny))
// L5805
CatalogFieldValueSet(c_gameCatalogUnit, "VoidSeeker", "TurningRate", 0, "30")
// L631
CatalogFieldValueSet(c_gameCatalogUnit, "HotSHunterBurrowed", "Sight", gv_pLAYER_04_ZERG, "3")
// L3594
CatalogFieldValueSet(c_gameCatalogBehavior, "QueenSpawnLarvaTimer", "Duration", gv_pLAYER_05_ZERG_ALLIES, "25")
// L718
CatalogFieldValueSet(c_gameCatalogUnit, "BroodLord", "Speed", gv_pLAYER_04_FERALZERG, "1")
// L724
CatalogFieldValueSet(c_gameCatalogUnit, "Mutalisk", "Speed", gv_pLAYER_04_FERALZERG, "1")
// L1057
CatalogFieldValueSet(c_gameCatalogUnit, "Mutalisk", "Speed", gv_pLAYER_04_FERALZERG, CatalogFieldValueGet(c_gameCatalogUnit, "Mutalisk", "Speed", gv_pLAYER_01_USER))
// L523
CatalogFieldValueSet(c_gameCatalogUnit, "UmojanLabGenerator", "Sight", gv_pLAYER_02_DOMINION, "0")
// L1484
CatalogFieldValueSet(c_gameCatalogBehavior, "SpawnLarva", "InfoArray[" + IntToString(0) + "].Delay", gv_pLAYER_01_USER, "12")
// L3244
CatalogFieldValueSet(c_gameCatalogBehavior, "SpawnLarva", "InfoArray[" + IntToString(0) + "].Delay", gv_pLAYER_01_USER, "6")
// L2993
CatalogFieldValueSet(c_gameCatalogEffect, "PsiDecimatorSearch", "AreaArray[0].Radius", gv_pLAYER_02_DOMINION, FixedToString(gv_psifieldradius, c_fixedPrecisionAny))
// L2998
CatalogFieldValueSet(c_gameCatalogEffect, "PsiDecimatorSearch", "AreaArray[0].Radius", gv_pLAYER_02_DOMINION, FixedToString(0.0, c_fixedPrecisionAny))
// L3282
CatalogFieldValueSet(c_gameCatalogEffect, "PsiDecimatorSearch", "AreaArray[0].Radius", gv_pLAYER_02_DOMINION, FixedToString(gv_psifieldradius, c_fixedPrecisionAny))
// L646
CatalogFieldValueSet(c_gameCatalogButton, lp_button, "Tooltip", gv_pLAYER_01_USER, lp_tooltipPath)
// L652
CatalogFieldValueSet(c_gameCatalogButton, lp_button, "Tooltip", gv_pLAYER_01_USER, gv_selectLarva_OriginalTooltip)
// L557
CatalogFieldValueSet(c_gameCatalogButton, lv_button, "Tooltip", gv_pLAYER_01_USER, lp_tooltipPath)
// L573
CatalogFieldValueSet(c_gameCatalogButton, lv_button, "Tooltip", gv_pLAYER_01_USER, gv_crushingGrip_OriginalTooltip)
// L577
CatalogFieldValueSet(c_gameCatalogButton, lv_button, "Tooltip", gv_pLAYER_01_USER, gv_kineticBlast_OriginalTooltip)
// L701
CatalogFieldValueSet(c_gameCatalogButton, lp_button, "Tooltip", gv_pLAYER_01_USER, lp_tooltipPath)
// L727
CatalogFieldValueSet(c_gameCatalogButton, lp_button, "Tooltip", gv_pLAYER_01_USER, lv_originalText)
// L1568
CatalogFieldValueSet(c_gameCatalogEffect, "SJPirateCapitalShipLeftDamage", "Amount", gv_pLAYER_01_USER, "3")
// L1569
CatalogFieldValueSet(c_gameCatalogEffect, "SJPirateCapitalShipRightDamage", "Amount", gv_pLAYER_01_USER, "3")
// L1570
CatalogFieldValueSet(c_gameCatalogEffect, "SJPirateYamatoADamage", "Amount", gv_pLAYER_01_USER, "200")
// L1571
CatalogFieldValueSet(c_gameCatalogEffect, "SJPirateYamatoBDamage", "Amount", gv_pLAYER_01_USER, "200")
// L1574
CatalogFieldValueSet(c_gameCatalogEffect, "SJPirateCapitalShipLeftDamage", "Amount", gv_pLAYER_01_USER, "5")
// L1575
CatalogFieldValueSet(c_gameCatalogEffect, "SJPirateCapitalShipRightDamage", "Amount", gv_pLAYER_01_USER, "5")
// L1576
CatalogFieldValueSet(c_gameCatalogEffect, "SJPirateYamatoADamage", "Amount", gv_pLAYER_01_USER, "300")
// L1577
CatalogFieldValueSet(c_gameCatalogEffect, "SJPirateYamatoBDamage", "Amount", gv_pLAYER_01_USER, "300")
// L6829
CatalogFieldValueSet(c_gameCatalogAbil, "DroneCarcassHarvest", "CastIntroTime[" + IntToString(0) + "]", gv_pLAYER_01_USER, "3")
// L7051
CatalogFieldValueSet(c_gameCatalogAbil, "DroneCarcassHarvest", "CastIntroTime[" + IntToString(0) + "]", gv_pLAYER_01_USER, "60")
// L1086
CatalogFieldValueSet(c_gameCatalogUnit, "Viper", "EnergyStart", 1, FixedToString(libHots_gf_DifficultyValueFixed2(25.0, 25.0, 50.0), c_fixedPrecisionAny))
// L5805
CatalogFieldValueSet(c_gameCatalogUnit, "VoidSeeker", "TurningRate", 0, "30")

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L651
CatalogFieldValueSet(c_gameCatalogAbil, "RallyHatchery", "SmartPriority", 1, IntToString(0))
// L1709
CatalogFieldValueSet(c_gameCatalogButton, "Overlord", "Tooltip", 1, "Button/Tooltip/Overlord")
// L16511
CatalogFieldValueSet(c_gameCatalogButton, "Overlord", "Tooltip", 1, "Param/Value/lib_SwaC_F5BAFC76")
// L16522
CatalogFieldValueSet(c_gameCatalogButton, "Overlord", "Tooltip", 1, "Button/Tooltip/Overlord")

# campaigns/void.sc2campaign

MapScript.galaxy

// L7075
CatalogFieldValueSet(c_gameCatalogUnit, "Phoenix", "Acceleration", gv_pLAYER_01_USER, "1000")
// L7076
CatalogFieldValueSet(c_gameCatalogUnit, "CarrierAiur", "Acceleration", gv_pLAYER_01_USER, "1000")
// L4671
CatalogFieldValueSet(c_gameCatalogBehavior, "ConsumeSearchTimedKill", "Duration", autoFB4D4A28_var, "6")
// L1337
CatalogFieldValueSet(c_gameCatalogAbil, "ChampionWarpTrain", "InfoArray[" + IntToString(1) + "].Cooldown.TimeUse", gv_pLAYER_08_NERAZIM, "10")
// L1338
CatalogFieldValueSet(c_gameCatalogAbil, "ChampionWarpTrain", "InfoArray[" + IntToString(3) + "].Cooldown.TimeUse", gv_pLAYER_07_TALDARIM, "10")
// L1339
CatalogFieldValueSet(c_gameCatalogAbil, "ChampionWarpTrain", "InfoArray[" + IntToString(5) + "].Cooldown.TimeUse", gv_pLAYER_09_PURIFIER, "10")
// L1113
CatalogFieldValueSet(c_gameCatalogUnit, "KerriganVoid", "Speed", gv_pLAYER_02_DOMINION5, "2.75")
// L1114
CatalogFieldValueSet(c_gameCatalogAbil, "Apocalypse", "Cost[" + IntToString(0) + "].Cooldown.TimeStart", gv_pLAYER_02_DOMINION5, "0")
// L1115
CatalogFieldValueSet(c_gameCatalogAbil, "Apocalypse", "Cost[" + IntToString(0) + "].Cooldown.TimeUse", gv_pLAYER_02_DOMINION5, "0")
// L7075
CatalogFieldValueSet(c_gameCatalogUnit, "Phoenix", "Acceleration", gv_pLAYER_01_USER, "1000")
// L7076
CatalogFieldValueSet(c_gameCatalogUnit, "CarrierAiur", "Acceleration", gv_pLAYER_01_USER, "1000")
// L4671
CatalogFieldValueSet(c_gameCatalogBehavior, "ConsumeSearchTimedKill", "Duration", autoFB4D4A28_var, "6")
// L1337
CatalogFieldValueSet(c_gameCatalogAbil, "ChampionWarpTrain", "InfoArray[" + IntToString(1) + "].Cooldown.TimeUse", gv_pLAYER_08_NERAZIM, "10")
// L1338
CatalogFieldValueSet(c_gameCatalogAbil, "ChampionWarpTrain", "InfoArray[" + IntToString(3) + "].Cooldown.TimeUse", gv_pLAYER_07_TALDARIM, "10")
// L1339
CatalogFieldValueSet(c_gameCatalogAbil, "ChampionWarpTrain", "InfoArray[" + IntToString(5) + "].Cooldown.TimeUse", gv_pLAYER_09_PURIFIER, "10")
// L1113
CatalogFieldValueSet(c_gameCatalogUnit, "KerriganVoid", "Speed", gv_pLAYER_02_DOMINION5, "2.75")
// L1114
CatalogFieldValueSet(c_gameCatalogAbil, "Apocalypse", "Cost[" + IntToString(0) + "].Cooldown.TimeStart", gv_pLAYER_02_DOMINION5, "0")
// L1115
CatalogFieldValueSet(c_gameCatalogAbil, "Apocalypse", "Cost[" + IntToString(0) + "].Cooldown.TimeUse", gv_pLAYER_02_DOMINION5, "0")

# campaigns/voidstory.sc2campaign

VoidCampaignLib.galaxy

// L6439
CatalogFieldValueSet(c_gameCatalogButton, lp_buttonLink, "Tooltip", 1, lv_fullString)
// L6440
CatalogFieldValueSet(c_gameCatalogUnit, lp_unitLink, "Description", 1, lv_fullString)
// L6473
CatalogFieldValueSet(c_gameCatalogButton, lp_buttonLink, "Tooltip", 1, lv_fullString)
// L6474
CatalogFieldValueSet(c_gameCatalogUnit, lp_unitLink, "Description", 1, lv_fullString)

# campaigns/voidstory.sc2campaign

VoidCampaignMissionLib.galaxy

// L2129
CatalogFieldValueSet(c_gameCatalogButton, "Pylon", "Tooltip", 1, "Button/Tooltip/Pylon")
// L7414
CatalogFieldValueSet(c_gameCatalogButton, "Pylon", "Tooltip", 1, "Param/Value/lib_VoiC_F569C4E3")
// L7427
CatalogFieldValueSet(c_gameCatalogButton, "Pylon", "Tooltip", 1, "Button/Tooltip/Pylon")

# mods/core.sc2mod

NativeLib.galaxy

// L1373
CatalogFieldValueSet(c_gameCatalogUnit, lp_unitType, "TacticalAIRange", lp_player, IntToString(lp_distance))
// L1391
CatalogFieldValueSet(c_gameCatalogUnit, lp_unitType, "TacticalAIThink", lp_player, lv_aIThinkTempStr)
// L1766
CatalogFieldValueSet(lp_catalog, lp_entry, lp_fieldPath, lp_player, FixedToString(lp_value, c_fixedPrecisionAny))
// L3502
CatalogFieldValueSet(c_gameCatalogLoot, lv_generator, "MaxLevel", lp_dropPlayer, lv_level)
// L3504
CatalogFieldValueSet(c_gameCatalogLoot, lv_generator, "MinLevel", lp_dropPlayer, lv_level)
// L1200
CatalogFieldValueSet(c_gameCatalogUnit, lp_unitType, "TacticalAIThink", lp_player, lv_aIThinkTempStr)

# mods/heroes.stormmod

MapScript.galaxy

// L1527
CatalogFieldValueSet(c_gameCatalogWeapon, "GuardTowerL2Weapon", "Cost.Vital[Energy]", libCore_gv_cOMPUTER_TeamOrder, "0")
// L1528
CatalogFieldValueSet(c_gameCatalogWeapon, "GuardTowerL3Weapon", "Cost.Vital[Energy]", libCore_gv_cOMPUTER_TeamOrder, "0")
// L1529
CatalogFieldValueSet(c_gameCatalogWeapon, "TownHallL2Weapon", "Cost.Vital[Energy]", libCore_gv_cOMPUTER_TeamOrder, "0")
// L1530
CatalogFieldValueSet(c_gameCatalogWeapon, "TownHallL3Weapon", "Cost.Vital[Energy]", libCore_gv_cOMPUTER_TeamOrder, "0")
// L735
CatalogFieldValueSet(c_gameCatalogAbil, "TyrandeLightofElune", "Cost.Vital[" + IntToString(0) + "]", gv_pLAYER_02_HEALERTANK, "30")