# Catalog Reference Set As Real

Grammar — Set value of reference for player player to value
FlagsAction

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 ] — Reference
  • int — Player
  • fixed — Value

Returns — bool

bool libNtve_gf_CatalogReferenceSetAsReal(
	string lp_reference,
	int lp_player,
	fixed lp_value,
);

Category: Catalog / Support

# Examples

# mods/core.sc2mod

NativeLib.galaxy

// L1822
libNtve_gf_CatalogReferenceSetAsReal(lp_reference, lp_player, (lv_default + lp_value))
// L1825
libNtve_gf_CatalogReferenceSetAsReal(lp_reference, lp_player, (lv_default - lp_value))
// L1828
libNtve_gf_CatalogReferenceSetAsReal(lp_reference, lp_player, (lv_default * lp_value))
// L1831
libNtve_gf_CatalogReferenceSetAsReal(lp_reference, lp_player, (lv_default / lp_value))
// L1834
libNtve_gf_CatalogReferenceSetAsReal(lp_reference, lp_player, lp_value)
// L1837
libNtve_gf_CatalogReferenceSetAsReal(lp_reference, lp_player, (lv_default + lp_value))