# Catalog Field Value Modify
Grammar — Modify value of catalog entry fieldPath for player player using operation and value
Flags —Native
|Action
Modifies 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 ] — Catalogstring
[ catalogentry ] — Entrystring
[ catalogfieldpath ] — Field Pathint
— Playerstring
— Valueint
[ preset::UpgradeOperation ] — Operation
Returns — bool
native bool CatalogFieldValueModify(
int catalog,
string entry,
string fieldPath,
int player,
string value,
int operation,
);
# Related
Category: Catalog / Support
- [P] — Upgrade Operation
- [P] — No Game Link
- [P] — No Alert
- [P] — Cost Type
- [P] — Catalog Type
- [P] — Any Game Link
- [P] — Field Type Category
- [F] —
bool
— Catalog Field Value Set — ( CatalogFieldValueSet ) - [F] —
bool
— Catalog Field Value Set As Real — ( libNtve_gf_CatalogFieldValueSetAsReal ) - [F] —
bool
— Catalog Field Value Modify — ( CatalogFieldValueModify ) - [F] —
bool
— Catalog Field Value Modify (Based On Default Value) — ( libNtve_gf_CatalogFieldValueModifyBasedOnDefaultValue ) - [F] —
bool
— Catalog Reference Set — ( CatalogReferenceSet ) - [F] —
bool
— Catalog Reference Set As Real — ( libNtve_gf_CatalogReferenceSetAsReal ) - [F] —
bool
— Catalog Reference Modify — ( CatalogReferenceModify ) - [F] —
bool
— Catalog Reference Modify (Based On Default Value) — ( libNtve_gf_CatalogReferenceModifyBasedOnDefaultValue ) - [F] —
void
— Catalog Link Replace — ( CatalogLinkReplace ) - [F] —
string
— Catalog Link Replacement — ( CatalogLinkReplacement )
# Examples
# mods/heroes.stormmod
// L1493
CatalogFieldValueModify(c_gameCatalogAbil, "UtherHolyLight", "Cost[" + IntToString(0) + "].Cooldown.TimeUse", libStEx_gv_pLAYER_02_UTHER, "4", c_upgradeOperationAdd)
// L5290
CatalogFieldValueModify(c_gameCatalogAbil, "UtherHolyLight", "Cost[" + IntToString(0) + "].Cooldown.TimeUse", libStEx_gv_pLAYER_02_UTHER, "4", c_upgradeOperationSubtract)
// L5596
CatalogFieldValueModify(c_gameCatalogAbil, "UtherHolyLight", "Cost[" + IntToString(0) + "].Cooldown.TimeUse", libStEx_gv_pLAYER_02_UTHER, "4", c_upgradeOperationAdd)
// L1493
CatalogFieldValueModify(c_gameCatalogAbil, "UtherHolyLight", "Cost[" + IntToString(0) + "].Cooldown.TimeUse", libStEx_gv_pLAYER_02_UTHER, "4", c_upgradeOperationAdd)
// L5290
CatalogFieldValueModify(c_gameCatalogAbil, "UtherHolyLight", "Cost[" + IntToString(0) + "].Cooldown.TimeUse", libStEx_gv_pLAYER_02_UTHER, "4", c_upgradeOperationSubtract)
// L5596
CatalogFieldValueModify(c_gameCatalogAbil, "UtherHolyLight", "Cost[" + IntToString(0) + "].Cooldown.TimeUse", libStEx_gv_pLAYER_02_UTHER, "4", c_upgradeOperationAdd)
# mods/heroesdata.stormmod
// L6023
CatalogFieldValueModify(c_gameCatalogActor, "AbathurSymbiote", "MinimapUnitStatusFrame", lv_abathurPlayer, "Abathur/AbathurSymbioteMinimapIconHero", c_upgradeOperationSet)
// L6026
CatalogFieldValueModify(c_gameCatalogActor, "AbathurSymbiote", "MinimapUnitStatusFrame", lv_abathurPlayer, "Abathur/AbathurSymbioteMinimapIconTownHall", c_upgradeOperationSet)
// L6029
CatalogFieldValueModify(c_gameCatalogActor, "AbathurSymbiote", "MinimapUnitStatusFrame", lv_abathurPlayer, "Abathur/AbathurSymbioteMinimapIconCore", c_upgradeOperationSet)
// L6032
CatalogFieldValueModify(c_gameCatalogActor, "AbathurSymbiote", "MinimapUnitStatusFrame", lv_abathurPlayer, "Abathur/AbathurSymbioteMinimapIconStructure", c_upgradeOperationSet)
// L6035
CatalogFieldValueModify(c_gameCatalogActor, "AbathurSymbiote", "MinimapUnitStatusFrame", lv_abathurPlayer, "Abathur/AbathurSymbioteMinimapIconMonstrosity", c_upgradeOperationSet)
// L6038
CatalogFieldValueModify(c_gameCatalogActor, "AbathurSymbiote", "MinimapUnitStatusFrame", lv_abathurPlayer, "Abathur/AbathurSymbioteMinimapIconMerc", c_upgradeOperationSet)
// L6041
CatalogFieldValueModify(c_gameCatalogActor, "AbathurSymbiote", "MinimapUnitStatusFrame", lv_abathurPlayer, "Abathur/AbathurSymbioteMinimapIconMinion", c_upgradeOperationSet)
// L6045
CatalogFieldValueModify(c_gameCatalogActor, "AbathurSymbiote", "MinimapUnitStatusFrame", lv_abathurPlayer, "", c_upgradeOperationSet)
# mods/heroesmapmods/battlegroundmapmods/warheadjunction.stormmod
// L1725
CatalogFieldValueModify(c_gameCatalogEffect, "NukeOuterImpactDamage", "Amount", lv_playerIndex, "70", c_upgradeOperationAdd)
# mods/novastoryassets.sc2mod
// L1507
CatalogFieldValueModify(c_gameCatalogAbil, "BarracksTrain", "InfoArray[" + IntToString(lv_i) + "].Time", PlayerGroupLoopCurrent(), "25", c_upgradeOperationSet)
// L1508
CatalogFieldValueModify(c_gameCatalogAbil, "FactoryTrain", "InfoArray[" + IntToString(lv_i) + "].Time", PlayerGroupLoopCurrent(), "25", c_upgradeOperationSet)
// L1509
CatalogFieldValueModify(c_gameCatalogAbil, "StarportTrain", "InfoArray[" + IntToString(lv_i) + "].Time", PlayerGroupLoopCurrent(), "30", c_upgradeOperationSet)
// L1507
CatalogFieldValueModify(c_gameCatalogAbil, "BarracksTrain", "InfoArray[" + IntToString(lv_i) + "].Time", PlayerGroupLoopCurrent(), "25", c_upgradeOperationSet)
// L1508
CatalogFieldValueModify(c_gameCatalogAbil, "FactoryTrain", "InfoArray[" + IntToString(lv_i) + "].Time", PlayerGroupLoopCurrent(), "25", c_upgradeOperationSet)
// L1509
CatalogFieldValueModify(c_gameCatalogAbil, "StarportTrain", "InfoArray[" + IntToString(lv_i) + "].Time", PlayerGroupLoopCurrent(), "30", c_upgradeOperationSet)
# mods/starcoop/starcoop.sc2mod
// L3512
CatalogFieldValueModify(lp_catalog, lp_entry, lp_fieldPath, lp_player, FixedToString(lv_changed, c_fixedPrecisionAny), c_upgradeOperationAdd)
// L4898
CatalogFieldValueModify(c_gameCatalogBehavior, libCOMI_gv_cM_Fenix_ChampionAvengingProtocolBehaviors[lp_group], "Modification.MoveSpeedMultiplier", lp_player, FixedToString((1.0 + (libCOMI_gv_cM_Fenix_ChampionAvengingProtocolBuffStacks[lp_group] * lv_moveSpeedHastePerStack)), c_fixedPrecisionAny), c_upgradeOperationSet)
// L4899
CatalogFieldValueModify(c_gameCatalogBehavior, libCOMI_gv_cM_Fenix_ChampionAvengingProtocolBehaviors[lp_group], "Modification.AttackSpeedMultiplier", lp_player, FixedToString((1.0 + (libCOMI_gv_cM_Fenix_ChampionAvengingProtocolBuffStacks[lp_group] * lv_attackSpeedHastePerStack)), c_fixedPrecisionAny), c_upgradeOperationSet)
// L5054
CatalogFieldValueModify(c_gameCatalogEffect, "HornerMSOHealthDisplayDummy", "Amount", lp_player, FixedToString(lv_factionBonusLifeMulti, 2), c_upgradeOperationSet)
// L5066
CatalogFieldValueModify(c_gameCatalogEffect, "HornerMSOAttackSpeedDisplayDummy", "Amount", lp_player, FixedToString(lv_factionBonusAtkSpeedMulti, c_fixedPrecisionAny), c_upgradeOperationSet)
// L5195
CatalogFieldValueModify(c_gameCatalogUnit, lv_entry, "LifeRegenRateCreep", lv_itPlayer, FixedToString(lv_liferegenrate, c_fixedPrecisionAny), c_upgradeOperationAdd)
// L5196
CatalogFieldValueModify(c_gameCatalogUnit, lv_entry, "AttackSpeedMultiplierCreep", lv_itPlayer, FixedToString(lv_attackspeedmultiplier, c_fixedPrecisionAny), c_upgradeOperationAdd)
// L15161
CatalogFieldValueModify(c_gameCatalogEffect, "BrutalizeDamage", "Amount", libCOOC_gf_CC_PlayerOfCommanderInGroupFirst("ZergAbathur", libCOOC_gf_CC_PlayersOfCommander("ZergAbathur")), "3", c_upgradeOperationAdd)
// L15162
CatalogFieldValueModify(c_gameCatalogWeapon, "Brutalize", "Level", libCOOC_gf_CC_PlayerOfCommanderInGroupFirst("ZergAbathur", libCOOC_gf_CC_PlayersOfCommander("ZergAbathur")), "1", c_upgradeOperationAdd)
// L16957
CatalogFieldValueModify(c_gameCatalogBehavior, "DehakaConsumeEffectAir", "Duration", EventPlayer(), FixedToString(lv_durationModifier, 2), c_upgradeOperationMultiply)