# Catalog Reference Set
Grammar — Set value of reference for player player to value
Flags —Native
|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
string
<reference> — Referenceint
— Playerstring
— Value
Returns — bool
native bool CatalogReferenceSet(
string reference,
int player,
string value,
);
# Related
Category: Catalog / Support
- Upgrade Operation — preset —
int
- No Game Link — preset —
gamelink
- No Alert — preset —
string
- Cost Type — preset —
string
- Catalog Type — preset —
int
- Any Game Link — preset —
gamelink
- Field Type Category — preset —
int
- Catalog Field Value Set —
bool
— CatalogFieldValueSet - Catalog Field Value Set As Real —
bool
— libNtve_gf_CatalogFieldValueSetAsReal - Catalog Field Value Modify —
bool
— CatalogFieldValueModify - Catalog Field Value Modify (Based On Default Value) —
bool
— libNtve_gf_CatalogFieldValueModifyBasedOnDefaultValue - Catalog Reference Set —
bool
— CatalogReferenceSet - Catalog Reference Set As Real —
bool
— libNtve_gf_CatalogReferenceSetAsReal - Catalog Reference Modify —
bool
— CatalogReferenceModify - Catalog Reference Modify (Based On Default Value) —
bool
— libNtve_gf_CatalogReferenceModifyBasedOnDefaultValue - Catalog Link Replace —
void
— CatalogLinkReplace - Catalog Link Replacement —
string
— CatalogLinkReplacement
# Examples
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:2159
lv_hatcheryBuildTime *= GameGetSpeed();
lv_hatcheryBuildTime += 4.0;
CatalogReferenceSet("Abil,ZergBuild,InfoArray[Build1].Time[0]", gv_pLAYER_01_USER, FixedToString(lv_hatcheryBuildTime, c_fixedPrecisionAny));
if ((libHots_gf_DifficultyValueSwarmBoolean(true, true, false) == true)) {
UISetButtonHighlighted(PlayerGroupAll(), AbilityCommand("ZergBuild", 0), true);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2map — MapScript.galaxy:2159
lv_hatcheryBuildTime *= GameGetSpeed();
lv_hatcheryBuildTime += 4.0;
CatalogReferenceSet("Abil,ZergBuild,InfoArray[Build1].Time[0]", gv_pLAYER_01_USER, FixedToString(lv_hatcheryBuildTime, c_fixedPrecisionAny));
if ((libHots_gf_DifficultyValueSwarmBoolean(true, true, false) == true)) {
UISetButtonHighlighted(PlayerGroupAll(), AbilityCommand("ZergBuild", 0), true);
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:1804
// Automatic Variable Declarations
// Implementation
return CatalogReferenceSet(lp_reference, lp_player, FixedToString(lp_value, c_fixedPrecisionAny));
}
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:3499
if ((lp_class != "")) {
lv_generator = "TriggerRandomItemGenerator";
CatalogReferenceSet("Loot,TriggerRandomItemGenerator,ClassArray[0]", lp_dropPlayer, (lp_class));
}
else {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:11639
CatalogFieldValueSet(c_gameCatalogEffect, "LiLiCloudSerpentLightningSerpentCreateHealer", "RechargeVitalRate", lv_owningPlayer, CatalogFieldValueGet(c_gameCatalogEffect, "LiLiCloudSerpentLightningSerpentCreateHealer", "RechargeVitalRate", lv_liLiPlayer));
CatalogFieldValueSet(c_gameCatalogEffect, "LiLiCloudSerpentCreateHealer", "RechargeVitalRate", lv_owningPlayer, CatalogFieldValueGet(c_gameCatalogEffect, "LiLiCloudSerpentCreateHealer", "RechargeVitalRate", lv_liLiPlayer));
CatalogReferenceSet("Effect,LiLiCloudSerpentBlessingsOfYulonTalentCreateHealer,FlatModifierArray[JadeSerpent].Modifier", lv_owningPlayer, CatalogFieldValueGet(c_gameCatalogEffect, "LiLiCloudSerpentCreateHealer", "RechargeVitalRate", lv_owningPlayer));
CatalogFieldValueSet(c_gameCatalogEffect, "LiLiCloudSerpentCreateHealer", "Chance", lv_owningPlayer, CatalogFieldValueGet(c_gameCatalogEffect, "LiLiCloudSerpentCreateHealer", "Chance", lv_liLiPlayer));
while ((UnitIsAlive(lv_cloudSerpent) == true) && (UnitIsAlive(lv_owningUnit) == true) && (UnitHasBehavior2(lv_owningUnit, "Dead") == false)) {
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:3234
// Implementation
if ((CatalogEntryIsValid(c_gameCatalogMover, lp_mover) == true) && (CatalogEntryIsDefault(c_gameCatalogMover, lp_mover) == false) && (CatalogEntryScope(c_gameCatalogMover, lp_mover) == "CMoverMissile")) {
CatalogReferenceSet("Effect,UnitLaunchToTargetPointLM,Movers[0].Link", lv_o, (lp_mover));
UnitCreateEffectPoint(lp_unit, libNCMI_gv_launchUnitToTargetPointBaseEffect, lp_targetPoint);
}
mods/novastoryassets.sc2mod — base2.sc2maps/maps/campaign/nova/nova04.sc2map/MapScript.galaxy:3603
UnitBehaviorRemove(gv_mothership, "NovaMothershipInvulnerabilityShield", 1);
TriggerEnable(gt_MothershipWarningQ, false);
CatalogReferenceSet("Effect,SOAMothershipv4BeamDamage,Amount", gv_pLAYER_05_TALDARIM, "9");
gv_attackMode = true;
TriggerExecute(gt_ObjectiveDestroyShieldProjectorsComplete, true, false);
mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova04.sc2map — MapScript.galaxy:3603
UnitBehaviorRemove(gv_mothership, "NovaMothershipInvulnerabilityShield", 1);
TriggerEnable(gt_MothershipWarningQ, false);
CatalogReferenceSet("Effect,SOAMothershipv4BeamDamage,Amount", gv_pLAYER_05_TALDARIM, "9");
gv_attackMode = true;
TriggerExecute(gt_ObjectiveDestroyShieldProjectorsComplete, true, false);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:16015
}
CatalogReferenceSet("Effect,SoulAbsorptionMU,VitalArray[Life].Change", lv_p, FixedToString(lv_amout, c_fixedPrecisionAny));
CatalogReferenceSet("Effect,SoulAbsorptionMU,VitalArray[Shields].Change", lv_p, FixedToString(lv_amout, c_fixedPrecisionAny));
UnitCreateEffectUnit(lv_alarak, libCOMI_gv_cM_Alarak_SoulAbsorption_ScoreTrackerEffect, lv_alarak);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:16016
CatalogReferenceSet("Effect,SoulAbsorptionMU,VitalArray[Life].Change", lv_p, FixedToString(lv_amout, c_fixedPrecisionAny));
CatalogReferenceSet("Effect,SoulAbsorptionMU,VitalArray[Shields].Change", lv_p, FixedToString(lv_amout, c_fixedPrecisionAny));
UnitCreateEffectUnit(lv_alarak, libCOMI_gv_cM_Alarak_SoulAbsorption_ScoreTrackerEffect, lv_alarak);
return true;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:7684
}
CatalogReferenceSet("Unit,MutatorTurking,LifeStart", 3, FixedToString(libCOMI_gf_MinimumDifficultyValueCoopReal(2000.0, 2500.0, 4000.0, 6000.0, 6000.0, 6000.0), c_fixedPrecisionAny));
CatalogReferenceSet("Unit,MutatorTurking,LifeStart", 3, FixedToString(libCOMI_gf_MinimumDifficultyValueCoopReal(2000.0, 2500.0, 4000.0, 6000.0, 6000.0, 6000.0), c_fixedPrecisionAny));
CatalogReferenceSet("Unit,MutatorTurking,LifeRegenRate", 3, FixedToString(libCOMI_gf_MinimumDifficultyValueCoopReal(0.0, 2.0, 15.0, 30.0, 30.0, 30.0), c_fixedPrecisionAny));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:7685
CatalogReferenceSet("Unit,MutatorTurking,LifeStart", 3, FixedToString(libCOMI_gf_MinimumDifficultyValueCoopReal(2000.0, 2500.0, 4000.0, 6000.0, 6000.0, 6000.0), c_fixedPrecisionAny));
CatalogReferenceSet("Unit,MutatorTurking,LifeStart", 3, FixedToString(libCOMI_gf_MinimumDifficultyValueCoopReal(2000.0, 2500.0, 4000.0, 6000.0, 6000.0, 6000.0), c_fixedPrecisionAny));
CatalogReferenceSet("Unit,MutatorTurking,LifeRegenRate", 3, FixedToString(libCOMI_gf_MinimumDifficultyValueCoopReal(0.0, 2.0, 15.0, 30.0, 30.0, 30.0), c_fixedPrecisionAny));
CatalogReferenceSet("Unit,MutatorInfestedTurkey,LifeStart", 3, FixedToString(libCOMI_gf_MinimumDifficultyValueCoopReal(75.0, 100.0, 125.0, 150.0, 150.0, 150.0), c_fixedPrecisionAny));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:7686
CatalogReferenceSet("Unit,MutatorTurking,LifeStart", 3, FixedToString(libCOMI_gf_MinimumDifficultyValueCoopReal(2000.0, 2500.0, 4000.0, 6000.0, 6000.0, 6000.0), c_fixedPrecisionAny));
CatalogReferenceSet("Unit,MutatorTurking,LifeStart", 3, FixedToString(libCOMI_gf_MinimumDifficultyValueCoopReal(2000.0, 2500.0, 4000.0, 6000.0, 6000.0, 6000.0), c_fixedPrecisionAny));
CatalogReferenceSet("Unit,MutatorTurking,LifeRegenRate", 3, FixedToString(libCOMI_gf_MinimumDifficultyValueCoopReal(0.0, 2.0, 15.0, 30.0, 30.0, 30.0), c_fixedPrecisionAny));
CatalogReferenceSet("Unit,MutatorInfestedTurkey,LifeStart", 3, FixedToString(libCOMI_gf_MinimumDifficultyValueCoopReal(75.0, 100.0, 125.0, 150.0, 150.0, 150.0), c_fixedPrecisionAny));
CatalogReferenceSet("Unit,MutatorInfestedTurkey,LifeMax", 3, FixedToString(libCOMI_gf_MinimumDifficultyValueCoopReal(75.0, 100.0, 125.0, 150.0, 150.0, 150.0), c_fixedPrecisionAny));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:7687
CatalogReferenceSet("Unit,MutatorTurking,LifeStart", 3, FixedToString(libCOMI_gf_MinimumDifficultyValueCoopReal(2000.0, 2500.0, 4000.0, 6000.0, 6000.0, 6000.0), c_fixedPrecisionAny));
CatalogReferenceSet("Unit,MutatorTurking,LifeRegenRate", 3, FixedToString(libCOMI_gf_MinimumDifficultyValueCoopReal(0.0, 2.0, 15.0, 30.0, 30.0, 30.0), c_fixedPrecisionAny));
CatalogReferenceSet("Unit,MutatorInfestedTurkey,LifeStart", 3, FixedToString(libCOMI_gf_MinimumDifficultyValueCoopReal(75.0, 100.0, 125.0, 150.0, 150.0, 150.0), c_fixedPrecisionAny));
CatalogReferenceSet("Unit,MutatorInfestedTurkey,LifeMax", 3, FixedToString(libCOMI_gf_MinimumDifficultyValueCoopReal(75.0, 100.0, 125.0, 150.0, 150.0, 150.0), c_fixedPrecisionAny));
ActorSend(ActorFrom("::Scene"), "SceneHaloSetWidth 0.300000");
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:7688
CatalogReferenceSet("Unit,MutatorTurking,LifeRegenRate", 3, FixedToString(libCOMI_gf_MinimumDifficultyValueCoopReal(0.0, 2.0, 15.0, 30.0, 30.0, 30.0), c_fixedPrecisionAny));
CatalogReferenceSet("Unit,MutatorInfestedTurkey,LifeStart", 3, FixedToString(libCOMI_gf_MinimumDifficultyValueCoopReal(75.0, 100.0, 125.0, 150.0, 150.0, 150.0), c_fixedPrecisionAny));
CatalogReferenceSet("Unit,MutatorInfestedTurkey,LifeMax", 3, FixedToString(libCOMI_gf_MinimumDifficultyValueCoopReal(75.0, 100.0, 125.0, 150.0, 150.0, 150.0), c_fixedPrecisionAny));
ActorSend(ActorFrom("::Scene"), "SceneHaloSetWidth 0.300000");
libCOMU_gv_cT_MutatorEnabledQuickList[(libCOMU_ge_CT_MutatorQuickList_CT_QuickFoodHunt)] = true;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:8340
}
CatalogReferenceSet("Unit,MutatorPropagator,LifeStart", 3, FixedToString(libCOMI_gf_MinimumDifficultyValueCoopReal(200.0, 300.0, 350.0, 450.0, 450.0, 450.0), c_fixedPrecisionAny));
CatalogReferenceSet("Unit,MutatorPropagator,LifeMax", 3, FixedToString(libCOMI_gf_MinimumDifficultyValueCoopReal(200.0, 300.0, 350.0, 450.0, 450.0, 450.0), c_fixedPrecisionAny));
TriggerEnable(libCOMU_gt_CT_PropagateClone, true);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:8341
CatalogReferenceSet("Unit,MutatorPropagator,LifeStart", 3, FixedToString(libCOMI_gf_MinimumDifficultyValueCoopReal(200.0, 300.0, 350.0, 450.0, 450.0, 450.0), c_fixedPrecisionAny));
CatalogReferenceSet("Unit,MutatorPropagator,LifeMax", 3, FixedToString(libCOMI_gf_MinimumDifficultyValueCoopReal(200.0, 300.0, 350.0, 450.0, 450.0, 450.0), c_fixedPrecisionAny));
TriggerEnable(libCOMU_gt_CT_PropagateClone, true);
libCOMU_gv_cT_MutatorEnabledQuickList[(libCOMU_ge_CT_MutatorQuickList_CT_QuickPropagator)] = true;
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:2064
// Implementation
if ((CatalogEntryIsValid(c_gameCatalogCommander, lv_commander) == false)) {
CatalogReferenceSet("Abil,CoopCommanderHeroSharedTrain,InfoArray[Train1].Flags[AutoCastOn]", lp_player, "0");
CatalogReferenceSet("Abil,CoopCommanderHeroSharedTrain,InfoArray[Train1].Button.Flags[CreateDefaultButton]", lp_player, "0");
CatalogReferenceSet("Abil,CoopCommanderHeroSharedTrain,InfoArray[Train1].Button.Flags[UseDefaultButton]", lp_player, "0");
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:2065
if ((CatalogEntryIsValid(c_gameCatalogCommander, lv_commander) == false)) {
CatalogReferenceSet("Abil,CoopCommanderHeroSharedTrain,InfoArray[Train1].Flags[AutoCastOn]", lp_player, "0");
CatalogReferenceSet("Abil,CoopCommanderHeroSharedTrain,InfoArray[Train1].Button.Flags[CreateDefaultButton]", lp_player, "0");
CatalogReferenceSet("Abil,CoopCommanderHeroSharedTrain,InfoArray[Train1].Button.Flags[UseDefaultButton]", lp_player, "0");
return ;
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:2066
CatalogReferenceSet("Abil,CoopCommanderHeroSharedTrain,InfoArray[Train1].Flags[AutoCastOn]", lp_player, "0");
CatalogReferenceSet("Abil,CoopCommanderHeroSharedTrain,InfoArray[Train1].Button.Flags[CreateDefaultButton]", lp_player, "0");
CatalogReferenceSet("Abil,CoopCommanderHeroSharedTrain,InfoArray[Train1].Button.Flags[UseDefaultButton]", lp_player, "0");
return ;
}
mods/warcoop/warmeleeai.sc2mod — base.sc2data/LibW3AI.galaxy:67
}
CatalogReferenceSet("Abil,Rome,InfoArray[Research1].Button.Requirements", lv_p, "");
CatalogReferenceSet("Abil,Rora,InfoArray[Research1].Button.Requirements", lv_p, "");
CatalogReferenceSet("Abil,Roar,InfoArray[Research1].Button.Requirements", lv_p, "");
mods/warcoop/warmeleeai.sc2mod — base.sc2data/LibW3AI.galaxy:68
CatalogReferenceSet("Abil,Rome,InfoArray[Research1].Button.Requirements", lv_p, "");
CatalogReferenceSet("Abil,Rora,InfoArray[Research1].Button.Requirements", lv_p, "");
CatalogReferenceSet("Abil,Roar,InfoArray[Research1].Button.Requirements", lv_p, "");
CatalogReferenceSet("Abil,Rost,InfoArray[Research1].Button.Requirements", lv_p, "");
mods/warcoop/warmeleeai.sc2mod — base.sc2data/LibW3AI.galaxy:69
CatalogReferenceSet("Abil,Rome,InfoArray[Research1].Button.Requirements", lv_p, "");
CatalogReferenceSet("Abil,Rora,InfoArray[Research1].Button.Requirements", lv_p, "");
CatalogReferenceSet("Abil,Roar,InfoArray[Research1].Button.Requirements", lv_p, "");
CatalogReferenceSet("Abil,Rost,InfoArray[Research1].Button.Requirements", lv_p, "");
CatalogReferenceSet("Abil,Rowd,InfoArray[Research1].Button.Requirements", lv_p, "");
mods/warcoop/warmeleeai.sc2mod — base.sc2data/LibW3AI.galaxy:70
CatalogReferenceSet("Abil,Rora,InfoArray[Research1].Button.Requirements", lv_p, "");
CatalogReferenceSet("Abil,Roar,InfoArray[Research1].Button.Requirements", lv_p, "");
CatalogReferenceSet("Abil,Rost,InfoArray[Research1].Button.Requirements", lv_p, "");
CatalogReferenceSet("Abil,Rowd,InfoArray[Research1].Button.Requirements", lv_p, "");
CatalogReferenceSet("Abil,Rowt,InfoArray[Research1].Button.Requirements", lv_p, "");
mods/warcoop/warmeleeai.sc2mod — base.sc2data/LibW3AI.galaxy:71
CatalogReferenceSet("Abil,Roar,InfoArray[Research1].Button.Requirements", lv_p, "");
CatalogReferenceSet("Abil,Rost,InfoArray[Research1].Button.Requirements", lv_p, "");
CatalogReferenceSet("Abil,Rowd,InfoArray[Research1].Button.Requirements", lv_p, "");
CatalogReferenceSet("Abil,Rowt,InfoArray[Research1].Button.Requirements", lv_p, "");
CatalogReferenceSet("Abil,Rosp,InfoArray[Research1].Button.Requirements", lv_p, "");
mods/warcoop/warmeleeai.sc2mod — base.sc2data/LibW3AI.galaxy:72
CatalogReferenceSet("Abil,Rost,InfoArray[Research1].Button.Requirements", lv_p, "");
CatalogReferenceSet("Abil,Rowd,InfoArray[Research1].Button.Requirements", lv_p, "");
CatalogReferenceSet("Abil,Rowt,InfoArray[Research1].Button.Requirements", lv_p, "");
CatalogReferenceSet("Abil,Rosp,InfoArray[Research1].Button.Requirements", lv_p, "");
libNtve_gf_SetUpgradeLevelForPlayer(lv_p, "Thrall", 1);
mods/warcoop/warmeleeai.sc2mod — base.sc2data/LibW3AI.galaxy:73
CatalogReferenceSet("Abil,Rowd,InfoArray[Research1].Button.Requirements", lv_p, "");
CatalogReferenceSet("Abil,Rowt,InfoArray[Research1].Button.Requirements", lv_p, "");
CatalogReferenceSet("Abil,Rosp,InfoArray[Research1].Button.Requirements", lv_p, "");
libNtve_gf_SetUpgradeLevelForPlayer(lv_p, "Thrall", 1);
CatalogLinkReplace(lv_p, c_gameCatalogModel, "Ofar", "Othr");