# Catalog Reference Count
Grammar — Count of values in reference for player player
Flags —Native
|Function
Returns the count of the values for a field for an entry. Returns 0 if the specified field is not an array. 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 number of active indicies for a train ability, your field path string would be “InfoArray”.
# Arguments
string
[ reference ] — Referenceint
— Player
Returns — int
native int CatalogReferenceCount(
string reference,
int player,
);
# Related
Category: Catalog / Lookup
- [F] —
bool
— Catalog Entry Is Default — ( CatalogEntryIsDefault ) - [F] —
bool
— Catalog Entry Is Valid — ( CatalogEntryIsValid ) - [F] —
int
— Catalog Entry Class — ( CatalogEntryClass ) - [F] —
int
— Catalog Entry Count — ( CatalogEntryCount ) - [F] —
string
[ catalogentry ] — Catalog Entry Get — ( CatalogEntryGet ) - [F] —
string
[ catalogentry ] — Catalog Entry Parent — ( CatalogEntryParent ) - [F] —
string
[ catalogscope ] — Catalog Entry Scope — ( CatalogEntryScope ) - [F] —
int
— Catalog Field Count — ( CatalogFieldCount ) - [F] —
string
[ catalogfieldname ] — Catalog Field Get — ( CatalogFieldGet ) - [F] —
bool
— Catalog Field Exists — ( CatalogFieldExists ) - [F] —
bool
— Catalog Field Is Array — ( CatalogFieldIsArray ) - [F] —
bool
— Catalog Field Is Scope — ( CatalogFieldIsScope ) - [F] —
string
— Catalog Field Type — ( CatalogFieldType ) - [F] —
int
[ preset::FieldTypeCategory ] — Catalog Field Type Category — ( CatalogFieldTypeCategory ) - [F] —
string
— Catalog Field Value Get — ( CatalogFieldValueGet ) - [F] —
int
— Catalog Field Value Get As Integer — ( CatalogFieldValueGetAsInt ) - [F] —
int
— Catalog Field Value Get Flags As Integer — ( CatalogFieldValueGetFlagsAsInt ) - [F] —
fixed
— Catalog Field Value Get As Real — ( libNtve_gf_CatalogFieldValueGetAsReal ) - [F] —
int
— Catalog Field Value Count — ( CatalogFieldValueCount ) - [F] —
string
— Catalog Reference Get — ( CatalogReferenceGet ) - [F] —
int
— Catalog Reference Get As Integer — ( CatalogReferenceGetAsInt ) - [F] —
fixed
— Catalog Reference Get As Real — ( libNtve_gf_CatalogReferenceGetAsReal ) - [F] —
int
— Catalog Reference Count — ( CatalogReferenceCount ) - [F] —
int
[ preset::AbilityClass ] — Class Of Ability — ( AbilityClass ) - [F] —
fixed
— Cost Of Ability — ( libNtve_gf_CostOfAbility )
# Examples
— None found —