# Catalog Field Value Count

Grammar — Count of values in catalog entry fieldPath for player player
FlagsNative | 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

  • int<preset::CatalogType> — Catalog
  • string<catalogentry> — Entry
  • string<catalogfieldpath> — Field Path
  • int — Player

Returns — int

native int CatalogFieldValueCount(
	int catalog,
	string entry,
	string fieldPath,
	int player,
);

Category: Catalog / Lookup

# Examples

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:1347

    }

    auto42E19D8A_ae = CatalogFieldValueCount(c_gameCatalogMap, libSwaC_gf_CurrentMap(), "ObjectiveArray", 1);
    auto42E19D8A_ai = 1;
    while (auto42E19D8A_ai <= auto42E19D8A_ae) {

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:5112


    // Implementation
    auto5269B614_ae = CatalogFieldValueCount(c_gameCatalogMap, lp_mission, "ObjectiveArray", 1);
    auto5269B614_ai = 1;
    while (auto5269B614_ai <= auto5269B614_ae) {

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:5137


    // Implementation
    autoB30C0D32_ae = CatalogFieldValueCount(c_gameCatalogMap, lp_mission, "ObjectiveArray", 1);
    autoB30C0D32_ai = 1;
    while (autoB30C0D32_ai <= autoB30C0D32_ae) {

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:5239

    else {
        lv_xPReward = libSwaC_gf_ZS_MissionKerriganXPRewarded(lp_mission, false);
        auto9B46347D_ae = CatalogFieldValueCount(c_gameCatalogMap, lp_mission, "ObjectiveArray", 1);
        auto9B46347D_ai = 1;
        while (auto9B46347D_ai <= auto9B46347D_ae) {

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:5383

        UserDataSetInt("Maps", libSwaC_gf_ZS_MapUserDataInstance(lp_mission), "CompletedAge", 1, lp_age);
        if ((lp_age == 0)) {
            auto47C4F193_ae = CatalogFieldValueCount(c_gameCatalogMap, lp_mission, "ObjectiveArray", 1);
            auto47C4F193_ai = 1;
            while (auto47C4F193_ai <= auto47C4F193_ae) {

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:5766

    lv__SectionName = libSwaC_gf_ZS_BankSectionName(lp_bankMap, "MissionObjectives");
    if ((lp_isSimulation == true)) {
        auto62C536D3_ae = CatalogFieldValueCount(c_gameCatalogMap, libSwaC_gf_CurrentMap(), "ObjectiveArray", 1);
        auto62C536D3_ai = 1;
        while (auto62C536D3_ai <= auto62C536D3_ae) {

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:5954

        }
        libSwaC_gf_ZS_ArchiveBankLoad();
        auto575851C8_ae = CatalogFieldValueCount(c_gameCatalogMap, libSwaC_gf_CurrentMap(), "ObjectiveArray", 1);
        auto575851C8_ai = 1;
        while (auto575851C8_ai <= auto575851C8_ae) {

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:6146


    // Implementation
    autoFD69D482_ae = CatalogFieldValueCount(c_gameCatalogMap, lp_mission, "ObjectiveArray", 1);
    autoFD69D482_ai = 1;
    while (autoFD69D482_ai <= autoFD69D482_ae) {

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:7072

        lv_aField = lp_abilCommandField;
    }
    auto62CDBCA3_ae = CatalogFieldValueCount(lp_catalog, lp_entry, lv_uField, 1);
    lv_index = 1;
    for ( ; ( (auto62CDBCA3_ai >= 0 && lv_index <= auto62CDBCA3_ae) || (auto62CDBCA3_ai < 0 && lv_index >= auto62CDBCA3_ae) ) ; lv_index += auto62CDBCA3_ai ) {

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:7083

        }
    }
    auto68552800_ae = CatalogFieldValueCount(lp_catalog, lp_entry, lv_aField, 1);
    lv_index = 1;
    for ( ; ( (auto68552800_ai >= 0 && lv_index <= auto68552800_ae) || (auto68552800_ai < 0 && lv_index >= auto68552800_ae) ) ; lv_index += auto68552800_ai ) {

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:1739


    // Implementation
    auto9126F137_ae = CatalogFieldValueCount(c_gameCatalogMap, lp_mission, "ObjectiveArray", 1);
    auto9126F137_ai = 1;
    while (auto9126F137_ai <= auto9126F137_ae) {

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:1981

            if ((libSwaC_gf_StoryArmyCategoryStateCheck(lv_indexCategory, c_armyCategoryStateUnlocked) == true) && (CatalogFieldValueGet(c_gameCatalogArmyCategory, lv_indexCategory, "Flags[Hidden]", 1) == "0")) {
                lv_upgradeChosen = false;
                auto3BB88340_ae = CatalogFieldValueCount(c_gameCatalogArmyCategory, lv_indexCategory, "ArmyUpgradeArray", 1);
                auto3BB88340_ai = 1;
                while (auto3BB88340_ai <= auto3BB88340_ae) {

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:2741

    // Implementation
    lp_index -= 1;
    if ((CatalogFieldValueCount(c_gameCatalogLocation, (lp_planet), "MissionCategoryArray", c_playerAny) <= lp_index)) {
        return null;
    }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:178

                lv_x += 120;
                lv_unitIndex = 1;
                autoAC56682B_ae = CatalogFieldValueCount(c_gameCatalogArmyCategory, lv_indexArmyCategory, "ArmyUnitArray", 1);
                autoAC56682B_ai = 1;
                while (autoAC56682B_ai <= autoAC56682B_ae) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:797

            lv_indexArmyCategory = CatalogEntryGet(c_gameCatalogArmyCategory, auto275A2403_ai);
            if ((libVoiC_gf_ArmyCategoryStateCheck(lv_indexArmyCategory, c_armyCategoryStateUnlocked) == true)) {
                autoD1710475_ae = CatalogFieldValueCount(c_gameCatalogArmyCategory, lv_indexArmyCategory, "ArmyUnitArray", 1);
                autoD1710475_ai = 1;
                while (autoD1710475_ai <= autoD1710475_ae) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:1378

    while (autoD9A13FEE_ai <= autoD9A13FEE_ae) {
        lv_indexMission = libVoiC_gv_pC_MissionCompleted[autoD9A13FEE_ai];
        autoE13612E9_ae = CatalogFieldValueCount(c_gameCatalogMap, lv_indexMission, "ObjectiveArray", 1);
        autoE13612E9_ai = 1;
        while (autoE13612E9_ai <= autoE13612E9_ae) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:1448

            }
            else if ((lv_arcMissions[lv_indexArc][lv_indexArcMission] != null)) {
                auto01D194A4_ae = CatalogFieldValueCount(c_gameCatalogMap, lv_arcMissions[lv_indexArc][lv_indexArcMission], "ObjectiveArray", 1);
                auto01D194A4_ai = 1;
                while (auto01D194A4_ai <= auto01D194A4_ae) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:1744


    lv_allBonusesComplete = true;
    auto98E993B0_ae = CatalogFieldValueCount(c_gameCatalogMap, lp_completedMission, "ObjectiveArray", 1);
    auto98E993B0_ai = 1;
    while (auto98E993B0_ai <= auto98E993B0_ae) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:2332


    // Implementation
    autoC7540D72_ae = CatalogFieldValueCount(c_gameCatalogMap, lp_map, "ObjectiveArray", 1);
    autoC7540D72_ai = 1;
    while (autoC7540D72_ai <= autoC7540D72_ae) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:2354


    // Implementation
    autoAB93CCE4_ae = CatalogFieldValueCount(c_gameCatalogMap, lp_map, "ObjectiveArray", 1);
    autoAB93CCE4_ai = 1;
    while (autoAB93CCE4_ai <= autoAB93CCE4_ae) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:2414


    // Implementation
    auto6A1F0326_ae = CatalogFieldValueCount(c_gameCatalogMap, lp_map, "ObjectiveArray", 1);
    auto6A1F0326_ai = 1;
    while (auto6A1F0326_ai <= auto6A1F0326_ae) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:2903

    else {
    }
    auto50EF5813_ae = CatalogFieldValueCount(c_gameCatalogMap, lp_mission, "ObjectiveArray", 1);
    auto50EF5813_ai = 1;
    while (auto50EF5813_ai <= auto50EF5813_ae) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:2932

    else {
    }
    autoB05804E4_ae = CatalogFieldValueCount(c_gameCatalogMap, lp_mission, "ObjectiveArray", 1);
    autoB05804E4_ai = 1;
    while (autoB05804E4_ai <= autoB05804E4_ae) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:1188

    }

    auto29898FAE_ae = CatalogFieldValueCount(c_gameCatalogMap, libVoiC_gf_CurrentMap(), "ObjectiveArray", 1);
    auto29898FAE_ai = 1;
    while (auto29898FAE_ai <= auto29898FAE_ae) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:1294


    libVoiC_gf_PC_StatEventCreate("Objectives");
    autoD74C5D59_ae = CatalogFieldValueCount(c_gameCatalogMap, libVoiC_gf_CurrentMap(), "ObjectiveArray", 1);
    autoD74C5D59_ai = 1;
    while (autoD74C5D59_ai <= autoD74C5D59_ae) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:1324

            libVoiC_gf_PC_StatEventAddInt("VespeneLost", DataTableGetInt(true, ("VesLost_" + libVoiC_gf_PC_ArmyStringFromArmyCategory(lv_indexArmyCategory))), libVoiC_gf_PC_StatEventLast());
            libVoiC_gf_PC_StatEventDone(libVoiC_gf_PC_StatEventLast());
            autoA40095C7_ae = CatalogFieldValueCount(c_gameCatalogArmyCategory, lv_indexArmyCategory, "ArmyUnitArray", 1);
            autoA40095C7_ai = 1;
            while (autoA40095C7_ai <= autoA40095C7_ae) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:3918


    // Implementation
    autoCD238B57_ae = CatalogFieldValueCount(c_gameCatalogUnit, lp_unitType, "CardLayouts[" + IntToString(0) + "].LayoutButtons", c_playerAny);
    lv_buttonIndex = 0;
    for ( ; ( (autoCD238B57_ai >= 0 && lv_buttonIndex <= autoCD238B57_ae) || (autoCD238B57_ai < 0 && lv_buttonIndex >= autoCD238B57_ae) ) ; lv_buttonIndex += autoCD238B57_ai ) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:213


    libVCST_gf_PS_DebugStoryCheatPrepareConversation(libVCST_gv_pS_DebugStoryListInstance[libVCST_gv_pS_DebugStorySelectedIndex]);
    autoF5938A13_ae = (CatalogFieldValueCount(c_gameCatalogConversation, lv_conversation, "Groups", c_playerAny)-1);
    lv_indexGroup = 1;
    for ( ; ( (autoF5938A13_ai >= 0 && lv_indexGroup <= autoF5938A13_ae) || (autoF5938A13_ai < 0 && lv_indexGroup >= autoF5938A13_ae) ) ; lv_indexGroup += autoF5938A13_ai ) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:218

        lv_groupId = CatalogFieldValueGet(c_gameCatalogConversation, lv_conversation, "Groups[" + IntToString(lv_indexGroup) + "].Id", c_playerAny);
        lv_passed = true;
        auto8ADDF7C4_ae = (CatalogFieldValueCount(c_gameCatalogConversation, lv_conversation, "Groups", c_playerAny)-1);
        lv_indexParentGroup = 1;
        for ( ; ( (auto8ADDF7C4_ai >= 0 && lv_indexParentGroup <= auto8ADDF7C4_ae) || (auto8ADDF7C4_ai < 0 && lv_indexParentGroup >= auto8ADDF7C4_ae) ) ; lv_indexParentGroup += auto8ADDF7C4_ai ) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:221

        lv_indexParentGroup = 1;
        for ( ; ( (auto8ADDF7C4_ai >= 0 && lv_indexParentGroup <= auto8ADDF7C4_ae) || (auto8ADDF7C4_ai < 0 && lv_indexParentGroup >= auto8ADDF7C4_ae) ) ; lv_indexParentGroup += auto8ADDF7C4_ai ) {
            auto453FBC04_ae = (CatalogFieldValueCount(c_gameCatalogConversation, lv_conversation, "Groups[" + IntToString(lv_indexParentGroup) + "].Children", c_playerAny)-1);
            lv_indexChild = 0;
            for ( ; ( (auto453FBC04_ai >= 0 && lv_indexChild <= auto453FBC04_ae) || (auto453FBC04_ai < 0 && lv_indexChild >= auto453FBC04_ae) ) ; lv_indexChild += auto453FBC04_ai ) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:359


    // Implementation
    auto5153B48E_ae = (CatalogFieldValueCount(c_gameCatalogConversation, lp_conversationLink, "Groups", c_playerAny)-1);
    lv_indexGroup = 0;
    for ( ; ( (auto5153B48E_ai >= 0 && lv_indexGroup <= auto5153B48E_ae) || (auto5153B48E_ai < 0 && lv_indexGroup >= auto5153B48E_ae) ) ; lv_indexGroup += auto5153B48E_ai ) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:363

    for ( ; ( (auto5153B48E_ai >= 0 && lv_indexGroup <= auto5153B48E_ae) || (auto5153B48E_ai < 0 && lv_indexGroup >= auto5153B48E_ae) ) ; lv_indexGroup += auto5153B48E_ai ) {
        if ((CatalogFieldValueGet(c_gameCatalogConversation, lp_conversationLink, "Groups[" + IntToString(lv_indexGroup) + "].Id", c_playerAny) == lp_groupID)) {
            auto2CDBFF2F_ae = (CatalogFieldValueCount(c_gameCatalogConversation, lp_conversationLink, "Groups[" + IntToString(lv_indexGroup) + "].Conditions", c_playerAny)-1);
            lv_indexCondition = 0;
            for ( ; ( (auto2CDBFF2F_ai >= 0 && lv_indexCondition <= auto2CDBFF2F_ae) || (auto2CDBFF2F_ai < 0 && lv_indexCondition >= auto2CDBFF2F_ae) ) ; lv_indexCondition += auto2CDBFF2F_ai ) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:385

        }
        else {
            auto6D6C6CD9_ae = (CatalogFieldValueCount(c_gameCatalogConversation, lp_conversationLink, "Groups[" + IntToString(lv_indexGroup) + "].Children", c_playerAny)-1);
            lv_indexChild = 0;
            for ( ; ( (auto6D6C6CD9_ai >= 0 && lv_indexChild <= auto6D6C6CD9_ae) || (auto6D6C6CD9_ai < 0 && lv_indexChild >= auto6D6C6CD9_ae) ) ; lv_indexChild += auto6D6C6CD9_ai ) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:416


    // Implementation
    auto46A2E312_ae = (CatalogFieldValueCount(c_gameCatalogConversation, lp_conversation, "Groups", c_playerAny)-1);
    lv_indexGroup = 0;
    for ( ; ( (auto46A2E312_ai >= 0 && lv_indexGroup <= auto46A2E312_ae) || (auto46A2E312_ai < 0 && lv_indexGroup >= auto46A2E312_ae) ) ; lv_indexGroup += auto46A2E312_ai ) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:420

    for ( ; ( (auto46A2E312_ai >= 0 && lv_indexGroup <= auto46A2E312_ae) || (auto46A2E312_ai < 0 && lv_indexGroup >= auto46A2E312_ae) ) ; lv_indexGroup += auto46A2E312_ai ) {
        if ((CatalogFieldValueGet(c_gameCatalogConversation, lp_conversation, "Groups[" + IntToString(lv_indexGroup) + "].Id", c_playerAny) == lp_group)) {
            auto0E703C23_ae = (CatalogFieldValueCount(c_gameCatalogConversation, lp_conversation, "Groups[" + IntToString(lv_indexGroup) + "].Conditions", c_playerAny)-1);
            lv_indexCondition = 0;
            for ( ; ( (auto0E703C23_ai >= 0 && lv_indexCondition <= auto0E703C23_ae) || (auto0E703C23_ai < 0 && lv_indexCondition >= auto0E703C23_ae) ) ; lv_indexCondition += auto0E703C23_ai ) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:428


            }
            autoD142832C_ae = (CatalogFieldValueCount(c_gameCatalogConversation, lp_conversation, "Groups[" + IntToString(lv_indexGroup) + "].Children", c_playerAny)-1);
            lv_indexChild = 0;
            for ( ; ( (autoD142832C_ai >= 0 && lv_indexChild <= autoD142832C_ae) || (autoD142832C_ai < 0 && lv_indexChild >= autoD142832C_ae) ) ; lv_indexChild += autoD142832C_ai ) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:459


    // Implementation
    autoD5FF4448_ae = (CatalogFieldValueCount(c_gameCatalogConversation, lp_conversation, "Lines", c_playerAny)-1);
    lv_indexLine = 0;
    for ( ; ( (autoD5FF4448_ai >= 0 && lv_indexLine <= autoD5FF4448_ae) || (autoD5FF4448_ai < 0 && lv_indexLine >= autoD5FF4448_ae) ) ; lv_indexLine += autoD5FF4448_ai ) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:725

        libVCUI_gv_pU_ArmyUnitSelectedIndex[lv_categoryIndex] = 0;
        lv_unitIndex = 0;
        auto364B23CB_ae = CatalogFieldValueCount(c_gameCatalogArmyCategory, libVCUI_gv_pU_ArmyCategories[lv_categoryIndex], "ArmyUnitArray", 1);
        auto364B23CB_ai = 1;
        while (auto364B23CB_ai <= auto364B23CB_ae) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:1098


    // Implementation
    autoDEC317F3_ae = CatalogFieldValueCount(c_gameCatalogArmyCategory, lp_armyCategory, "ArmyUnitArray", 1);
    autoDEC317F3_ai = 1;
    while (autoDEC317F3_ai <= autoDEC317F3_ae) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:5660

    }
    lv_bonusShipEnergyGained = 0;
    auto98CDB859_ae = CatalogFieldValueCount(c_gameCatalogMap, lp_mission, "ObjectiveArray", 1);
    auto98CDB859_ai = 1;
    while (auto98CDB859_ai <= auto98CDB859_ae) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:6811

    lv_reminderCategory = libVCUI_gv_pU_ArmyCategories[libVCUI_gv_pU_ArmyCategorySelectedIndex];
    if ((libVCUI_gv_pU_ArmyUnitSelectedIndex[libVCUI_gv_pU_ArmyCategorySelectedIndex] != 0) && (libVCUI_gf_PU_ArmyCategoryHasNewFaction(lv_reminderCategory) == true)) {
        auto8C735F74_ae = CatalogFieldValueCount(c_gameCatalogArmyCategory, lv_reminderCategory, "ArmyUnitArray", 1);
        auto8C735F74_ai = 1;
        while (auto8C735F74_ai <= auto8C735F74_ae) {

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:208

        auto0C13F64D_player = lv_player;
        auto0C13F64D_i = 0;
        for ( ; auto0C13F64D_i <= CatalogFieldValueCount(c_gameCatalogAbil,auto0C13F64D_entry,auto0C13F64D_fieldPath,auto0C13F64D_player)-1 ; auto0C13F64D_i += 1 ) {
            lv_itAlias = CatalogFieldValueGet(c_gameCatalogAbil,auto0C13F64D_entry,auto0C13F64D_fieldPath+"["+IntToString(auto0C13F64D_i)+"]",auto0C13F64D_player);
            if ((lp_alias == lv_itAlias)) {

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:3611

    lv_modelOld = "";
    lv_modelNew = "";
    lv_c = (CatalogFieldValueCount(c_gameCatalogSkin, lp_skin, "ReplacementArray", c_playerAny) - 1);
    lv_fromPath = "From";
    lv_toPath = "To";

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:5786

        lv_behavior = EventPlayerEffectUsedSourceBehavior();
        if ((lv_behavior != null)) {
            lv_periodicEffectCount = CatalogFieldValueCount(c_gameCatalogBehavior, lv_behavior, "PeriodicDisplayEffect", c_playerAny);
            auto466FF59C_ae = lv_periodicEffectCount;
            lv_periodicEffectIndex = 1;

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmapMapScript.galaxy:5786

        lv_behavior = EventPlayerEffectUsedSourceBehavior();
        if ((lv_behavior != null)) {
            lv_periodicEffectCount = CatalogFieldValueCount(c_gameCatalogBehavior, lv_behavior, "PeriodicDisplayEffect", c_playerAny);
            auto466FF59C_ae = lv_periodicEffectCount;
            lv_periodicEffectIndex = 1;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/AILib.galaxy:1458

    }
    lv_heroName = PlayerHero(lp_trigPlayer);
    lv_numberOfTalentBuilds = CatalogFieldValueCount(c_gameCatalogHero, lv_heroName, "TalentAIBuildsArray", lp_trigPlayer);
    autoB5B4CB0E_ae = lv_numberOfTalentBuilds;
    lv_talentBuildIndex = 1;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/AILib.galaxy:1488

        libAIAI_gv_aIHeroes[lp_trigPlayer].lv_talentBuilds[lv_curBuildNum].lv_chance = lv_buildChance;
        lv_totalChance += lv_buildChance;
        lv_numberOfTalentsInArray = CatalogFieldValueCount(c_gameCatalogHero, lv_heroName, "TalentAIBuildsArray[" + IntToString(lv_talentBuildIndex - 1) + "].TalentsArray", c_playerAny);
        if ((lv_numberOfTalentsInArray != libCore_gv_talents_MaxTiers_C)) {
            TextExpressionSetToken("Param/Expression/lib_AIAI_01298FE3", "A", StringToText((PlayerHero(lp_trigPlayer))));

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:10908


    // Implementation
    auto8334E013_ae = (CatalogFieldValueCount(c_gameCatalogModel, libCore_gf_GetModelLinkForUnitType(lv_unitType), "RequiredAnims", lp_player) - 1);
    lv_itAnimIndex = 0;
    for ( ; lv_itAnimIndex <= auto8334E013_ae ; lv_itAnimIndex += 1 ) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:11550

    }
    lv_heroID = (libGame_gv_players[lp_player].lv_heroData.lv_heroCatalogLink);
    lv_talentCount = CatalogFieldValueCount(c_gameCatalogHero, lv_heroID, "TalentTreeArray", c_playerAny);
    lv_itTier = 1;
    for ( ; ( (auto24231396_ai >= 0 && lv_itTier <= auto24231396_ae) || (auto24231396_ai < 0 && lv_itTier >= auto24231396_ae) ) ; lv_itTier += auto24231396_ai ) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:11592


        libGame_gv_talents_TalentChoices[lp_player][lv_tier].lv_talentData[lv_column].lv_talentCatalogLink = (lv_talentID);
        if ((CatalogFieldValueCount(c_gameCatalogTalent, lv_talentID, "RankArray", c_playerAny) != 0)) {
            lv_behaviorCount = CatalogFieldValueCount(c_gameCatalogTalent, lv_talentID, "RankArray[" + IntToString(0) + "].BehaviorArray", c_playerAny);
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:11593

        libGame_gv_talents_TalentChoices[lp_player][lv_tier].lv_talentData[lv_column].lv_talentCatalogLink = (lv_talentID);
        if ((CatalogFieldValueCount(c_gameCatalogTalent, lv_talentID, "RankArray", c_playerAny) != 0)) {
            lv_behaviorCount = CatalogFieldValueCount(c_gameCatalogTalent, lv_talentID, "RankArray[" + IntToString(0) + "].BehaviorArray", c_playerAny);
        }
        else {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:11613

        }

        if ((CatalogFieldValueCount(c_gameCatalogTalent, lv_talentID, "RankArray", c_playerAny) > libCore_gv_talents_MaxTalentRank_C)) {
            TextExpressionSetToken("Param/Expression/lib_Game_76A0DE18", "A", StringToText(lv_talentID));
            TriggerDebugOutput(1, TextExpressionAssemble("Param/Expression/lib_Game_76A0DE18"), false);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:11621

        lv_currentTalentModNumber = 0;
        libGame_gv_talents_TalentChoices[lp_player][lv_tier].lv_talentData[lv_column].lv_totalModifications = 0;
        lv_numberOfAbilitiesModified = CatalogFieldValueCount(c_gameCatalogTalent, lv_talentID, "AbilityModificationArray", c_playerAny);
        auto38B17200_ae = lv_numberOfAbilitiesModified;
        lv_itAbilityMod = 1;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:11625

        lv_itAbilityMod = 1;
        for ( ; ( (auto38B17200_ai >= 0 && lv_itAbilityMod <= auto38B17200_ae) || (auto38B17200_ai < 0 && lv_itAbilityMod >= auto38B17200_ae) ) ; lv_itAbilityMod += auto38B17200_ai ) {
            lv_numberOfFieldsModified = CatalogFieldValueCount(c_gameCatalogTalent, lv_talentID, "AbilityModificationArray[" + IntToString(lv_itAbilityMod - 1) + "].Modifications", c_playerAny);
            autoDE132AE1_ae = lv_numberOfFieldsModified;
            lv_itAbilityModChange = 1;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:426

    // Automatic Variable Declarations
    // Implementation
    return CatalogFieldValueCount(c_gameCatalogConfig, "Config", "HeroArray", 1);
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:452

        }

        auto59E87D74_ae = CatalogFieldValueCount(c_gameCatalogHero, lv_hero, "AlternateUnitArray", c_playerAny);
        lv_itAlternateUnit = 1;
        for ( ; ( (auto59E87D74_ai >= 0 && lv_itAlternateUnit <= auto59E87D74_ae) || (auto59E87D74_ai < 0 && lv_itAlternateUnit >= auto59E87D74_ae) ) ; lv_itAlternateUnit += auto59E87D74_ai ) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:520


    libGame_gv_players[lp_heroIndex].lv_heroData.lv_skinArray[libGame_gv_players[lp_heroIndex].lv_heroData.lv_skinCount] = lp_skinLink;
    auto5ED658DB_ae = (CatalogFieldValueCount(c_gameCatalogSkin, lp_skinLink, "VariationArray", c_playerAny) - 1);
    lv_itVariation = 0;
    for ( ; ( (auto5ED658DB_ai >= 0 && lv_itVariation <= auto5ED658DB_ae) || (auto5ED658DB_ai < 0 && lv_itVariation >= auto5ED658DB_ae) ) ; lv_itVariation += auto5ED658DB_ai ) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:542

    DataTableSetInt(true, ("HeroIndex_" + IntToString(lp_heroIndex) + "_SkinCount"), lv_newSkinCount);
    DataTableSetString(true, ("HeroIndex_" + IntToString(lp_heroIndex) + "_SkinIndex_" + IntToString(lv_newSkinCount)), (lp_skinLink));
    autoEC162BB4_ae = (CatalogFieldValueCount(c_gameCatalogSkin, lp_skinLink, "VariationArray", c_playerAny) - 1);
    lv_itVariation = 0;
    for ( ; ( (autoEC162BB4_ai >= 0 && lv_itVariation <= autoEC162BB4_ae) || (autoEC162BB4_ai < 0 && lv_itVariation >= autoEC162BB4_ae) ) ; lv_itVariation += autoEC162BB4_ai ) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:591

    DataTableSetString(true, ("HeroIndex_" + lv_heroIndexStr), lv_heroID);
    DataTableSetInt(true, ("HeroIndex_" + IntToString(lp_heroIndex) + "_MountCategoryCount"), 0);
    auto5C57F1C1_ae = CatalogFieldValueCount(c_gameCatalogHero, lv_heroID, "AllowedMountCategoryArray", c_playerAny);
    lv_itMountCategory = 1;
    for ( ; ( (auto5C57F1C1_ai >= 0 && lv_itMountCategory <= auto5C57F1C1_ae) || (auto5C57F1C1_ai < 0 && lv_itMountCategory >= auto5C57F1C1_ae) ) ; lv_itMountCategory += auto5C57F1C1_ai ) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:601

    DataTableSetString(true, ("HeroIndex_" + lv_heroIndexStr + "_SkinIndex_" + IntToString(1)), "Default");
    DataTableSetInt(true, ("HeroIndex_" + lv_heroIndexStr + "_SkinCount"), 1);
    auto938DD68A_ae = (CatalogFieldValueCount(c_gameCatalogHero, lv_heroID, "SkinArray", c_playerAny) - 1);
    lv_itSkin = 0;
    for ( ; ( (auto938DD68A_ai >= 0 && lv_itSkin <= auto938DD68A_ae) || (auto938DD68A_ai < 0 && lv_itSkin >= auto938DD68A_ae) ) ; lv_itSkin += auto938DD68A_ai ) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:606

        lv_skinID = CatalogFieldValueGet(c_gameCatalogHero, lv_heroID, "SkinArray[" + IntToString(lv_itSkin) + "]", c_playerAny);
        libCore_gf_DataHeroesAddHeroSkinIDToDataTable(lp_heroIndex, (lv_skinID));
        autoA7E35B1D_ae = CatalogFieldValueCount(c_gameCatalogSkin, (lv_skinID), "AdditionalMountCategoryArray", c_playerAny);
        lv_itSkinAddedMountCategory = 1;
        for ( ; ( (autoA7E35B1D_ai >= 0 && lv_itSkinAddedMountCategory <= autoA7E35B1D_ae) || (autoA7E35B1D_ai < 0 && lv_itSkinAddedMountCategory >= autoA7E35B1D_ae) ) ; lv_itSkinAddedMountCategory += autoA7E35B1D_ai ) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:615

        }
    }
    auto2E6C8612_ae = (CatalogFieldValueCount(c_gameCatalogHero, lv_heroID, "VariationArray", c_playerAny) - 1);
    lv_itSkin = 0;
    for ( ; ( (auto2E6C8612_ai >= 0 && lv_itSkin <= auto2E6C8612_ae) || (auto2E6C8612_ai < 0 && lv_itSkin >= auto2E6C8612_ae) ) ; lv_itSkin += auto2E6C8612_ai ) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:621

    }
    DataTableSetInt(true, lv_voiceLineCountStr, 0);
    autoF024766A_ae = CatalogFieldValueCount(c_gameCatalogHero, lv_heroID, "VoiceLineArray", c_playerAny);
    lv_itVoiceLine = 1;
    for ( ; ( (autoF024766A_ai >= 0 && lv_itVoiceLine <= autoF024766A_ae) || (autoF024766A_ai < 0 && lv_itVoiceLine >= autoF024766A_ae) ) ; lv_itVoiceLine += autoF024766A_ai ) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:813

        libGame_gv_players[lv_playerIndex].lv_heroData.lv_isPaired = (CatalogFieldValueGetAsInt(c_gameCatalogHero, lv_heroID, "Flags[IsSharedControlHero]", c_playerAny) == 1);
        libGame_gv_players[lv_playerIndex].lv_heroData.lv_dEBUGPlayable = true;
        if ((CatalogFieldValueCount(c_gameCatalogHero, lv_heroID, "AlternateUnitArray", c_playerAny) > libCore_gv_dataHeroesMaxAlternateHeroes)) {
            TextExpressionSetToken("Param/Expression/lib_Core_E416AC80", "A", StringToText(lv_heroID));
            TriggerDebugOutput(1, TextExpressionAssemble("Param/Expression/lib_Core_E416AC80"), true);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:201

    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[2] = "MercSiegeTrooperLaner";
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[3] = "MercSiegeTrooperLaner";
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSiegeTrooperDefenderScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSiegeTrooperLanerScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libUIUI_gf_PingCreateNewPingTarget("MercSiegeTrooperDefender", false, StringExternal("Param/Value/lib_MapM_7D17941C"), StringExternal("Param/Value/lib_MapM_6D78AC8F"), StringExternal("Param/Value/lib_MapM_BE0737A7"), SoundLink("UI_Game_Ping_Attack", -1), SoundLink("UI_Game_Ping_Attack", -1));

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:202

    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[3] = "MercSiegeTrooperLaner";
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSiegeTrooperDefenderScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSiegeTrooperLanerScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libUIUI_gf_PingCreateNewPingTarget("MercSiegeTrooperDefender", false, StringExternal("Param/Value/lib_MapM_7D17941C"), StringExternal("Param/Value/lib_MapM_6D78AC8F"), StringExternal("Param/Value/lib_MapM_BE0737A7"), SoundLink("UI_Game_Ping_Attack", -1), SoundLink("UI_Game_Ping_Attack", -1));
    libUIUI_gf_PingSetHumanAISourceHeroVOForPingTarget(libUIUI_gf_PingLastCreatedPingTarget(), libCore_ge_HeroVOEvents_PingAttackMercCamp, libCore_ge_HeroVOEvents_AIMercCapture);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:233

    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_numberOfMinionsSpawned = 1;
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[1] = "MercSummonerLaner";
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSummonerDefenderScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSummonerDefenderMinionScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSummonerLanerScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:234

    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[1] = "MercSummonerLaner";
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSummonerDefenderScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSummonerDefenderMinionScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSummonerLanerScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libUIUI_gf_PingCreateNewPingTarget("MercSummonerDefender", false, StringExternal("Param/Value/lib_MapM_AD640F18"), StringExternal("Param/Value/lib_MapM_B0611E4E"), StringExternal("Param/Value/lib_MapM_9C3B9F3A"), SoundLink("UI_Game_Ping_Attack", -1), SoundLink("UI_Game_Ping_Attack", -1));

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:235

    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSummonerDefenderScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSummonerDefenderMinionScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSummonerLanerScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libUIUI_gf_PingCreateNewPingTarget("MercSummonerDefender", false, StringExternal("Param/Value/lib_MapM_AD640F18"), StringExternal("Param/Value/lib_MapM_B0611E4E"), StringExternal("Param/Value/lib_MapM_9C3B9F3A"), SoundLink("UI_Game_Ping_Attack", -1), SoundLink("UI_Game_Ping_Attack", -1));
    libUIUI_gf_PingSetHumanAISourceHeroVOForPingTarget(libUIUI_gf_PingLastCreatedPingTarget(), libCore_ge_HeroVOEvents_PingAttackMercCamp, libCore_ge_HeroVOEvents_AIMercCapture);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:270

    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[1] = "TerranHellbat";
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[2] = "TerranHellbat";
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "TerranHellbatDefenderScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "TerranHellbatScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libUIUI_gf_PingCreateNewPingTarget("TerranHellbatDefender", false, StringExternal("Param/Value/lib_MapM_24DBA175"), StringExternal("Param/Value/lib_MapM_566B7407"), StringExternal("Param/Value/lib_MapM_FA057BB0"), SoundLink("UI_Game_Ping_Attack", -1), SoundLink("UI_Game_Ping_Attack", -1));

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:271

    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[2] = "TerranHellbat";
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "TerranHellbatDefenderScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "TerranHellbatScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libUIUI_gf_PingCreateNewPingTarget("TerranHellbatDefender", false, StringExternal("Param/Value/lib_MapM_24DBA175"), StringExternal("Param/Value/lib_MapM_566B7407"), StringExternal("Param/Value/lib_MapM_FA057BB0"), SoundLink("UI_Game_Ping_Attack", -1), SoundLink("UI_Game_Ping_Attack", -1));
    libUIUI_gf_PingSetHumanAISourceHeroVOForPingTarget(libUIUI_gf_PingLastCreatedPingTarget(), libCore_ge_HeroVOEvents_PingAttackMercCamp, libCore_ge_HeroVOEvents_AIMercCapture);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:301

    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[2] = "MercGoblinSapperLaner";
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[3] = "MercGoblinSapperLaner";
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercGoblinSapperDefenderScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercGoblinSapperLanerScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libUIUI_gf_PingCreateNewPingTarget("MercGoblinSapperDefender", false, StringExternal("Param/Value/lib_MapM_8D86B383"), StringExternal("Param/Value/lib_MapM_5B78A3A7"), StringExternal("Param/Value/lib_MapM_D78D61EB"), SoundLink("UI_Game_Ping_Attack", -1), SoundLink("UI_Game_Ping_Attack", -1));

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:302

    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[3] = "MercGoblinSapperLaner";
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercGoblinSapperDefenderScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercGoblinSapperLanerScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libUIUI_gf_PingCreateNewPingTarget("MercGoblinSapperDefender", false, StringExternal("Param/Value/lib_MapM_8D86B383"), StringExternal("Param/Value/lib_MapM_5B78A3A7"), StringExternal("Param/Value/lib_MapM_D78D61EB"), SoundLink("UI_Game_Ping_Attack", -1), SoundLink("UI_Game_Ping_Attack", -1));
    libUIUI_gf_PingCreateNewPingTarget("MercGoblinSapperLaner", false, lp_mercName, StringExternal("Param/Value/lib_MapM_FA01C50C"), StringExternal("Param/Value/lib_MapM_E7D0A0CE"), SoundLink("UI_Game_Ping_Attack", -1), SoundLink("UI_Game_Ping_Attack", -1));

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:317

    // Implementation
    lv_defenderTypeIndex = (lp_defenderType);
    libMapM_gv_dataJungleCampDefenderData[lv_defenderTypeIndex].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, lp_scalingBehavior, "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:1724

                lv_tokenSoftCap = 0;
                if ((lv_tokenHardCap >= lv_tokenInfiniteThreshold)) {
                    autoCF0483F6_ae = (CatalogFieldValueCount(c_gameCatalogBehavior, lv_tokenBehavior, "ConditionalEvents", c_playerAny) - 1);
                    lv_itConditionalIndex = 0;
                    for ( ; ( (autoCF0483F6_ai >= 0 && lv_itConditionalIndex <= autoCF0483F6_ae) || (autoCF0483F6_ai < 0 && lv_itConditionalIndex >= autoCF0483F6_ae) ) ; lv_itConditionalIndex += autoCF0483F6_ai ) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:2194

    lv_dropdownIndex += 1;
    DataTableSetInt(true, ("DEBUG_MountVariationList_Player_" + IntToString(lp_player) + "_ListIndex_" + IntToString(lv_dropdownIndex) + "_Index"), lp_mountIndex);
    auto3114FEC1_ae = (CatalogFieldValueCount(c_gameCatalogMount, lv_mountLink, "VariationArray", c_playerAny) - 1);
    lv_itMount = 0;
    for ( ; ( (auto3114FEC1_ai >= 0 && lv_itMount <= auto3114FEC1_ae) || (auto3114FEC1_ai < 0 && lv_itMount >= auto3114FEC1_ae) ) ; lv_itMount += auto3114FEC1_ai ) {

mods/heroesmapmods/battlegroundmapmods/warcraftdata.stormmodbase.stormdata/Lib7EB401DE.galaxy:78

    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[2] = "TerranHellbat";
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[3] = "TerranHellbat";
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "TerranHellbatDefenderScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "TerranHellbatScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libUIUI_gf_PingCreateNewPingTarget("TerranHellbatDefender", false, StringExternal("Param/Value/lib_7EB401DE_BCB4AAF1"), StringExternal("Param/Value/lib_7EB401DE_98866DCA"), StringExternal("Param/Value/lib_7EB401DE_EA08FC76"), SoundLink("UI_Game_Ping_Attack", -1), SoundLink("UI_Game_Ping_Attack", -1));

mods/heroesmapmods/battlegroundmapmods/warcraftdata.stormmodbase.stormdata/Lib7EB401DE.galaxy:79

    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[3] = "TerranHellbat";
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "TerranHellbatDefenderScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "TerranHellbatScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libUIUI_gf_PingCreateNewPingTarget("TerranHellbatDefender", false, StringExternal("Param/Value/lib_7EB401DE_BCB4AAF1"), StringExternal("Param/Value/lib_7EB401DE_98866DCA"), StringExternal("Param/Value/lib_7EB401DE_EA08FC76"), SoundLink("UI_Game_Ping_Attack", -1), SoundLink("UI_Game_Ping_Attack", -1));
    libUIUI_gf_PingSetHumanAISourceHeroVOForPingTarget(libUIUI_gf_PingLastCreatedPingTarget(), libCore_ge_HeroVOEvents_PingAttackMercCamp, libCore_ge_HeroVOEvents_AIMercCapture);

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibComC.galaxy:206


    lv_allBonusesComplete = true;
    auto55CA6805_ae = CatalogFieldValueCount(c_gameCatalogMap, lp_completedMission, "ObjectiveArray", 1);
    auto55CA6805_ai = 1;
    while (auto55CA6805_ai <= auto55CA6805_ae) {

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibComC.galaxy:1175

    lv__SectionName = libComC_gf_CC_BankSectionName(lp_bankMap, "MissionObjectives");
    if ((lp_isSimulation == true)) {
        auto504CEF5B_ae = CatalogFieldValueCount(c_gameCatalogMap, libComC_gf_CurrentMap(), "ObjectiveArray", 1);
        auto504CEF5B_ai = 1;
        while (auto504CEF5B_ai <= auto504CEF5B_ae) {

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibComC.galaxy:1303

        }
        libComC_gf_CC_ArchiveBankLoad();
        auto06466DBF_ae = CatalogFieldValueCount(c_gameCatalogMap, libComC_gf_CurrentMap(), "ObjectiveArray", 1);
        auto06466DBF_ai = 1;
        while (auto06466DBF_ai <= auto06466DBF_ae) {

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibComC.galaxy:1317

        if ((libComC_gf_CampaignIsComplete() == false)) {
            lv__SectionName = libComC_gf_CC_BankSectionName(lp_bankMap, "MissionObjectives");
            autoBA87C4B8_ae = CatalogFieldValueCount(c_gameCatalogMap, lp_bankMap, "ObjectiveArray", 1);
            autoBA87C4B8_ai = 1;
            while (autoBA87C4B8_ai <= autoBA87C4B8_ae) {

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibComC.galaxy:1969

        lv_aField = lp_abilCommandField;
    }
    autoCE548F05_ae = CatalogFieldValueCount(lp_catalog, lp_entry, lv_uField, 1);
    autoCE548F05_ai = 1;
    lv_index = 1;

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibComC.galaxy:1981

        }
    }
    auto454C61AE_ae = CatalogFieldValueCount(lp_catalog, lp_entry, lv_aField, 1);
    auto454C61AE_ai = 1;
    lv_index = 1;

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibComC.galaxy:2092

    DataTableSetInt(true, (libComC_gv_cCC_ArmyCategoryStateKey + (lp_armyCategory)), (lp_state));
    if ((lp_state == c_armyCategoryStateLocked)) {
        auto2ABA591C_ae = CatalogFieldValueCount(c_gameCatalogArmyCategory, lp_armyCategory, "ArmyUnitArray", 1);
        auto2ABA591C_ai = 1;
        while (auto2ABA591C_ai <= auto2ABA591C_ae) {

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibComC.galaxy:2118


    // Implementation
    auto97D97496_ae = CatalogFieldValueCount(c_gameCatalogArmyCategory, lp_armyCategory, "ArmyUnitArray", 1);
    auto97D97496_ai = 1;
    while (auto97D97496_ai <= auto97D97496_ae) {

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibComC.galaxy:2146


    // Implementation
    auto5C2D4F9C_ae = CatalogFieldValueCount(c_gameCatalogArmyCategory, lp_armyCategory, "ArmyUnitArray", 1);
    auto5C2D4F9C_ai = 1;
    while (auto5C2D4F9C_ai <= auto5C2D4F9C_ae) {

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibComC.galaxy:2254

    while (auto5665B759_ai <= auto5665B759_ae) {
        lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, auto5665B759_ai);
        auto3DC93168_ae = CatalogFieldValueCount(c_gameCatalogArmyCategory, lv_indexCategory, "ArmyUnitArray", 1);
        auto3DC93168_ai = 1;
        while (auto3DC93168_ai <= auto3DC93168_ae) {

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:2193

    }

    auto83CE6A7E_ae = CatalogFieldValueCount(c_gameCatalogMap, libComC_gf_CurrentMap(), "ObjectiveArray", 1);
    auto83CE6A7E_ai = 1;
    while (auto83CE6A7E_ai <= auto83CE6A7E_ae) {

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:4023


    // Implementation
    autoCD238B57_ae = CatalogFieldValueCount(c_gameCatalogUnit, lp_unitType, "CardLayouts[" + IntToString(0) + "].LayoutButtons", c_playerAny);
    autoCD238B57_ai = 1;
    lv_buttonIndex = 0;

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:5611

    }
    TriggerQueueClear(c_triggerQueueKill);
    autoF3660CE6_ae = CatalogFieldValueCount(c_gameCatalogMap, libComC_gf_CurrentMap(), "ObjectiveArray", 1);
    autoF3660CE6_ai = 1;
    while (autoF3660CE6_ai <= autoF3660CE6_ae) {

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:212


    libNCST_gf_NS_DebugStoryCheatPrepareConversation(libNCST_gv_nS_DebugStoryListInstance[libNCST_gv_nS_DebugStorySelectedIndex]);
    autoF5938A13_ae = (CatalogFieldValueCount(c_gameCatalogConversation, lv_conversation, "Groups", c_playerAny)-1);
    autoF5938A13_ai = 1;
    lv_indexGroup = 1;

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:218

        lv_groupId = CatalogFieldValueGet(c_gameCatalogConversation, lv_conversation, "Groups[" + IntToString(lv_indexGroup) + "].Id", c_playerAny);
        lv_passed = true;
        auto8ADDF7C4_ae = (CatalogFieldValueCount(c_gameCatalogConversation, lv_conversation, "Groups", c_playerAny)-1);
        auto8ADDF7C4_ai = 1;
        lv_indexParentGroup = 1;

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:222

        lv_indexParentGroup = 1;
        for ( ; ( (auto8ADDF7C4_ai >= 0 && lv_indexParentGroup <= auto8ADDF7C4_ae) || (auto8ADDF7C4_ai <= 0 && lv_indexParentGroup >= auto8ADDF7C4_ae) ) ; lv_indexParentGroup += auto8ADDF7C4_ai ) {
            auto453FBC04_ae = (CatalogFieldValueCount(c_gameCatalogConversation, lv_conversation, "Groups[" + IntToString(lv_indexParentGroup) + "].Children", c_playerAny)-1);
            auto453FBC04_ai = 1;
            lv_indexChild = 0;

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:297


    // Implementation
    auto5153B48E_ae = (CatalogFieldValueCount(c_gameCatalogConversation, lp_conversationLink, "Groups", c_playerAny)-1);
    auto5153B48E_ai = 1;
    lv_indexGroup = 0;

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:302

    for ( ; ( (auto5153B48E_ai >= 0 && lv_indexGroup <= auto5153B48E_ae) || (auto5153B48E_ai <= 0 && lv_indexGroup >= auto5153B48E_ae) ) ; lv_indexGroup += auto5153B48E_ai ) {
        if ((CatalogFieldValueGet(c_gameCatalogConversation, lp_conversationLink, "Groups[" + IntToString(lv_indexGroup) + "].Id", c_playerAny) == lp_groupID)) {
            auto2CDBFF2F_ae = (CatalogFieldValueCount(c_gameCatalogConversation, lp_conversationLink, "Groups[" + IntToString(lv_indexGroup) + "].Conditions", c_playerAny)-1);
            auto2CDBFF2F_ai = 1;
            lv_indexCondition = 0;

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:327

        }
        else {
            auto6D6C6CD9_ae = (CatalogFieldValueCount(c_gameCatalogConversation, lp_conversationLink, "Groups[" + IntToString(lv_indexGroup) + "].Children", c_playerAny)-1);
            auto6D6C6CD9_ai = 1;
            lv_indexChild = 0;

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:358


    // Implementation
    auto46A2E312_ae = (CatalogFieldValueCount(c_gameCatalogConversation, lp_conversation, "Groups", c_playerAny)-1);
    auto46A2E312_ai = 1;
    lv_indexGroup = 0;

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:363

    for ( ; ( (auto46A2E312_ai >= 0 && lv_indexGroup <= auto46A2E312_ae) || (auto46A2E312_ai <= 0 && lv_indexGroup >= auto46A2E312_ae) ) ; lv_indexGroup += auto46A2E312_ai ) {
        if ((CatalogFieldValueGet(c_gameCatalogConversation, lp_conversation, "Groups[" + IntToString(lv_indexGroup) + "].Id", c_playerAny) == lp_group)) {
            auto0E703C23_ae = (CatalogFieldValueCount(c_gameCatalogConversation, lp_conversation, "Groups[" + IntToString(lv_indexGroup) + "].Conditions", c_playerAny)-1);
            auto0E703C23_ai = 1;
            lv_indexCondition = 0;

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:372


            }
            autoD142832C_ae = (CatalogFieldValueCount(c_gameCatalogConversation, lp_conversation, "Groups[" + IntToString(lv_indexGroup) + "].Children", c_playerAny)-1);
            autoD142832C_ai = 1;
            lv_indexChild = 0;