# Catalog Entry Is Default
Grammar — Catalog catalog entry entry is a default entry
Flags —Native
|Function
Returns true if the specified catalog entry is a default entry. Use catalog lookup functions to retrieve a data value or other information from the game data.
# Arguments
int
<preset::CatalogType> — Catalogstring
<catalogentry> — Entry
Returns — bool
native bool CatalogEntryIsDefault(
int catalog,
string entry,
);
# Related
Category: Catalog / Lookup
- Catalog Entry Is Default —
bool
— CatalogEntryIsDefault - Catalog Entry Is Valid —
bool
— CatalogEntryIsValid - Catalog Entry Class —
int
— CatalogEntryClass - Catalog Entry Count —
int
— CatalogEntryCount - Catalog Entry Get —
string
<catalogentry> — CatalogEntryGet - Catalog Entry Parent —
string
<catalogentry> — CatalogEntryParent - Catalog Entry Scope —
string
<catalogscope> — CatalogEntryScope - Catalog Field Count —
int
— CatalogFieldCount - Catalog Field Get —
string
<catalogfieldname> — CatalogFieldGet - Catalog Field Exists —
bool
— CatalogFieldExists - Catalog Field Is Array —
bool
— CatalogFieldIsArray - Catalog Field Is Scope —
bool
— CatalogFieldIsScope - Catalog Field Type —
string
— CatalogFieldType - Catalog Field Type Category —
int
<preset::FieldTypeCategory> — CatalogFieldTypeCategory - Catalog Field Value Get —
string
— CatalogFieldValueGet - Catalog Field Value Get As Integer —
int
— CatalogFieldValueGetAsInt - Catalog Field Value Get Flags As Integer —
int
— CatalogFieldValueGetFlagsAsInt - Catalog Field Value Get As Real —
fixed
— libNtve_gf_CatalogFieldValueGetAsReal - Catalog Field Value Count —
int
— CatalogFieldValueCount - Catalog Reference Get —
string
— CatalogReferenceGet - Catalog Reference Get As Integer —
int
— CatalogReferenceGetAsInt - Catalog Reference Get As Real —
fixed
— libNtve_gf_CatalogReferenceGetAsReal - Catalog Reference Count —
int
— CatalogReferenceCount - Class Of Ability —
int
<preset::AbilityClass> — AbilityClass - Cost Of Ability —
fixed
— libNtve_gf_CostOfAbility
# Examples
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:18147
}
if ((CatalogEntryIsValid(c_gameCatalogVoiceLine, lv_voiceLine) == true) && (CatalogEntryIsDefault(c_gameCatalogVoiceOver, lv_voiceLine) == false)) {
lv_sound = libGame_gv_players[lv_yellingPlayer].lv_lootContent.lv_loot_VoiceLine.lv_voiceLineSoundID;
lv_soundWithSuffix = (((lv_sound) + libGame_gv_players[lv_yellingPlayer].lv_vOSoundSuffix));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:18155
return true;
}
if ((CatalogEntryIsValid(c_gameCatalogSound, lv_sound) == true) && (CatalogEntryIsDefault(c_gameCatalogSound, lv_sound) == false)) {
if ((CatalogEntryIsValid(c_gameCatalogSound, lv_soundWithSuffix) == true) && (CatalogEntryIsDefault(c_gameCatalogSound, lv_soundWithSuffix) == false)) {
ActorSend(libNtve_gf_MainActorofUnit(lv_heroUnit), libNtve_gf_Create((libGame_gv_lootVoiceLineActor), (lv_soundWithSuffix)));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:18156
}
if ((CatalogEntryIsValid(c_gameCatalogSound, lv_sound) == true) && (CatalogEntryIsDefault(c_gameCatalogSound, lv_sound) == false)) {
if ((CatalogEntryIsValid(c_gameCatalogSound, lv_soundWithSuffix) == true) && (CatalogEntryIsDefault(c_gameCatalogSound, lv_soundWithSuffix) == false)) {
ActorSend(libNtve_gf_MainActorofUnit(lv_heroUnit), libNtve_gf_Create((libGame_gv_lootVoiceLineActor), (lv_soundWithSuffix)));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:2363
lv_entry = (lv_vOID + lv_suffix);
if ((CatalogEntryIsValid(c_gameCatalogSound, lv_entry) == true) && (CatalogEntryIsDefault(c_gameCatalogSound, lv_entry) == false)) {
DialogControlAddItem(lv_list, libCore_gv_playerGroupFromPlayer[lp_player], StringToText(lv_entry));
lv_listIndex += 1;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:2401
lv_soundID = CatalogFieldValueGet(c_gameCatalogVoiceLine, lv_vLID, "Sound", c_playerAny);
lv_itemText = StringExternal(("VoiceLine/Name/" + (lv_vLID)));
if ((CatalogEntryIsValid(c_gameCatalogSound, lv_soundID) == true) && (CatalogEntryIsDefault(c_gameCatalogSound, lv_soundID) == false)) {
DialogControlAddItem(lv_list, libCore_gv_playerGroupFromPlayer[lp_player], lv_itemText);
lv_listIndex += 1;
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:3233
// 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/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:5191
for ( ; ( (autoECD6806E_ai >= 0 && lv_index <= autoECD6806E_ae) || (autoECD6806E_ai < 0 && lv_index >= autoECD6806E_ae) ) ; lv_index += autoECD6806E_ai ) {
lv_entry = CatalogEntryGet(lv_catalog, lv_index);
if ((CatalogEntryIsDefault(lv_catalog, lv_entry) == false) && (UnitTypeTestFlag(lv_entry, c_unitFlagInvulnerable) == false) && (UnitTypeTestFlag(lv_entry, c_unitFlagNoDraw) == false) && (UnitTypeTestFlag(lv_entry, c_unitFlagDestructible) == false) && (UnitTypeTestFlag(lv_entry, c_unitFlagMissile) == false) && (UnitTypeTestAttribute(lv_entry, c_unitAttributeStructure) == false) && ((UnitTypeTestAttribute(lv_entry, c_unitAttributeBiological) == true) || (UnitTypeTestAttribute(lv_entry, c_unitAttributeMechanical) == true) || (UnitTypeTestAttribute(lv_entry, c_unitAttributePsionic) == true)) && (CatalogFieldValueGet(c_gameCatalogUnit, lv_entry, "PlaneArray[Ground]", c_playerAny) == "1")) {
auto9D46FC29_g = PlayerGroupAll();
lv_itPlayer = -1;