# Catalog Entry Get

Grammar — Catalog catalog entry at index index
FlagsNative | Function

Returns the ID of a catalog entry from its index in the catalog. Use catalog lookup functions to retrieve a data value or other information from the game data.

# Arguments

Returns — string<catalogentry>

native string CatalogEntryGet(int catalog, int index);

Category: Catalog / Lookup

# Examples

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zstorykorhal.sc2map/MapScript.galaxy:150

    auto8A275886_ai = 1;
    while (auto8A275886_ai <= auto8A275886_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, auto8A275886_ai);
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission") {
            if ((UserDataGetGameLink("Maps", libSwaC_gf_ZS_MapUserDataInstance(lv_indexMission), "CompletionAchievementTerms", 2) != null) && ((libSwaC_gf_MissionCompleteBestTime(lv_indexMission, 2) > 0) || (libSwaC_gf_MissionCompleteBestTime(lv_indexMission, 3) > 0) || (libSwaC_gf_MissionCompleteBestTime(lv_indexMission, 4) > 0))) {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zstorykorhal.sc2mapMapScript.galaxy:150

    auto8A275886_ai = 1;
    while (auto8A275886_ai <= auto8A275886_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, auto8A275886_ai);
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission") {
            if ((UserDataGetGameLink("Maps", libSwaC_gf_ZS_MapUserDataInstance(lv_indexMission), "CompletionAchievementTerms", 2) != null) && ((libSwaC_gf_MissionCompleteBestTime(lv_indexMission, 2) > 0) || (libSwaC_gf_MissionCompleteBestTime(lv_indexMission, 3) > 0) || (libSwaC_gf_MissionCompleteBestTime(lv_indexMission, 4) > 0))) {

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

    autoD8EB8CD1_ai = 1;
    while (autoD8EB8CD1_ai <= autoD8EB8CD1_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, autoD8EB8CD1_ai);
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission") {
            autoA1F55B7F_val = lp_options;

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

    auto4745C134_ai = 1;
    while (auto4745C134_ai <= auto4745C134_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, auto4745C134_ai);
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission") {
            autoAF47181C_val = lp_options;

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

    auto8F208E85_ai = 1;
    while (auto8F208E85_ai <= auto8F208E85_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, auto8F208E85_ai);
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Upgrade") {
            autoF3565BF3_val = lp_options;

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

    auto1444F78C_ai = 1;
    while (auto1444F78C_ai <= auto1444F78C_ae) {
        lv_indexMap = CatalogEntryGet(c_gameCatalogMap, auto1444F78C_ai);
        if ((libSwaC_gf_ZS_MapUserDataInstance(lv_indexMap) == lp_map)) {
            return lv_indexMap;

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

    autoC9AEF9E3_ai = 1;
    while (autoC9AEF9E3_ai <= autoC9AEF9E3_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, autoC9AEF9E3_ai);
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission") {
            if ((libSwaC_gf_MissionCompletedOnDifficulty(lv_indexMission, lp_difficulty) == true)) {

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

    auto42A6041C_ai = 1;
    while (auto42A6041C_ai <= auto42A6041C_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, auto42A6041C_ai);
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission") {
            if ((libSwaC_gf_MissionArmyEvolutionUnlocked(lv_indexMission) != null)) {

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

    auto3F2D8473_ai = 1;
    while (auto3F2D8473_ai <= auto3F2D8473_ae) {
        lv_indexMision = CatalogEntryGet(c_gameCatalogMap, auto3F2D8473_ai);
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMision, "Kind", 1) == "Upgrade") {
            if ((lv_indexMision != lp_mission)) {

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

    auto02739C89_ai = 1;
    while (auto02739C89_ai <= auto02739C89_ae) {
        lv_indexMision = CatalogEntryGet(c_gameCatalogMap, auto02739C89_ai);
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMision, "Kind", 1) == "Mission") {
            if ((lv_indexMision != lp_mission)) {

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

    auto094B0175_ai = 1;
    while (auto094B0175_ai <= auto094B0175_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, auto094B0175_ai);
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Upgrade") {
            DataTableSetBool(false, ((lv_indexMission) + "_Available"), false);

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

    autoE012BDD4_ai = 1;
    while (autoE012BDD4_ai <= autoE012BDD4_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, autoE012BDD4_ai);
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission") {
            if ((libSwaC_gf_MissionArmyEvolutionUnlocked(lv_indexMission) != null) && (libSwaC_gf_MissionStatusCheck(lv_indexMission, libSwaC_ge_MissionStatus_Completed) == true)) {

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

    autoE95DCAF2_ai = 1;
    while (autoE95DCAF2_ai <= autoE95DCAF2_ae) {
        lv_indexPlanet = CatalogEntryGet(c_gameCatalogLocation, autoE95DCAF2_ai);
        if ((lib281DEC45_gf_ZSS_UITravelPlanetVisibleInScreen(lv_indexPlanet) == true)) {
            lib281DEC45_gv_zSS_UITravelMaps[lv_index] = libSwaC_gf_StoryPlanetMap(lv_indexPlanet);

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

        autoB514CCD6_ai = 1;
        while (autoB514CCD6_ai <= autoB514CCD6_ae) {
            lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, autoB514CCD6_ai);
            if ((libSwaC_gf_StoryArmyCategoryStateCheck(lv_indexCategory, c_armyCategoryStateUnlocked) == true) && (CatalogFieldValueGet(c_gameCatalogArmyCategory, lv_indexCategory, "Flags[Hidden]", 1) == "0")) {
                lv_upgradeChosen = false;

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

        auto31596AEB_ai = 1;
        while (auto31596AEB_ai <= auto31596AEB_ae) {
            lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, auto31596AEB_ai);
            if ((CatalogFieldValueGet(c_gameCatalogArmyCategory, lv_indexCategory, "Flags[Hidden]", 1) == "0") && (libSwaC_gf_MissionStatusCheck(libSwaC_gf_StoryArmyCategoryEvolutionMission(lv_indexCategory), libSwaC_ge_MissionStatus_Available) == true)) {
                return true;

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

    auto1DAFFE31_ai = 1;
    while (auto1DAFFE31_ai <= auto1DAFFE31_ae) {
        lv_planet = CatalogEntryGet(c_gameCatalogLocation, auto1DAFFE31_ai);
        if ((libSwaC_gf_StoryPlanetIsAvailable(lv_planet) == true)) {
            lv_available += 1;

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

    autoEF954F25_ai = 1;
    while (autoEF954F25_ai <= autoEF954F25_ae) {
        lv_mission = CatalogEntryGet(c_gameCatalogMap, autoEF954F25_ai);
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_mission, "Kind", 1) == "Mission" && libSwaC_gf_StoryMapPlanet(lv_mission) == lp_planet) {
            if ((libSwaC_gf_MissionStatusCheck(lv_mission, libSwaC_ge_MissionStatus_Available) == true)) {

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

    autoBD73C094_ai = 1;
    while (autoBD73C094_ai <= autoBD73C094_ae) {
        lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, autoBD73C094_ai);
        if ((libSwaC_gf_ArmyCategoryEggUnitInEggRoom(lv_indexCategory) != null)) {
            libSwaC_gf_ArmyCategoryEggUnitShowHide(lv_indexCategory, false);

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

            auto64B34819_ai = 1;
            while (auto64B34819_ai <= auto64B34819_ae) {
                lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, auto64B34819_ai);
                if ((CatalogFieldValueGet(c_gameCatalogArmyCategory, lv_indexCategory, "Flags[Hidden]", 1) == "0") && (libSwaC_gf_MissionStatusCheck(libSwaC_gf_StoryArmyCategoryEvolutionMission(lv_indexCategory), libSwaC_ge_MissionStatus_Available) == true)) {
                    UserDataSetInt("StoryStates", "Evolution Scene Played", "value", 1, 1);

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

    auto7172965F_ai = 1;
    while (auto7172965F_ai <= auto7172965F_ae) {
        lv_mission = CatalogEntryGet(c_gameCatalogMap, auto7172965F_ai);
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_mission, "Kind", 1) == "Mission") {
            if ((libSwaC_gf_MissionStatusCheck(lv_mission, libSwaC_ge_MissionStatus_Completed) == true)) {

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

    auto6E46D5BD_ai = 1;
    while (auto6E46D5BD_ai <= auto6E46D5BD_ae) {
        lv_mission = CatalogEntryGet(c_gameCatalogMap, auto6E46D5BD_ai);
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_mission, "Kind", 1) == "Upgrade") {
            if (((lib281DEC45_gv_zSS_CampaignComplete == true) || (libSwaC_gf_MissionStatusCheck(lv_mission, libSwaC_ge_MissionStatus_Completed) == true))) {

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

    autoD272FB45_ai = 1;
    while (autoD272FB45_ai <= autoD272FB45_ae) {
        lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, autoD272FB45_ai);
        if ((libVoiC_gf_PC_ArmyCategoryUsedInUI(lv_indexCategory) == true)) {
            DataTableSetInt(true, ("DebugTechSaveArmyCategory_" + (lv_indexCategory)), (libVoiC_gf_PC_ArmyCategoryState(lv_indexCategory)));

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

    autoC216F282_ai = 1;
    while (autoC216F282_ai <= autoC216F282_ae) {
        lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, autoC216F282_ai);
        if ((libVoiC_gf_PC_ArmyCategoryUsedInUI(lv_indexCategory) == true)) {
            lv_stateValue = DataTableGetInt(true, ("DebugTechSaveArmyCategory_" + (lv_indexCategory)));

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

        auto275A2403_ai = 1;
        while (auto275A2403_ai <= auto275A2403_ae) {
            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);

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

    auto53276695_ai = 1;
    while (auto53276695_ai <= auto53276695_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, auto53276695_ai);
        auto53276695_ai = auto53276695_ai + 1;
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission") {

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

    auto4A9584B2_ai = 1;
    while (auto4A9584B2_ai <= auto4A9584B2_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, auto4A9584B2_ai);
        auto4A9584B2_ai = auto4A9584B2_ai + 1;
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission") {

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

    auto5AA06F65_ai = 1;
    while (auto5AA06F65_ai <= auto5AA06F65_ae) {
        lv_indexArmyCategory = CatalogEntryGet(c_gameCatalogArmyCategory, auto5AA06F65_ai);
        if ((libVoiC_gf_PC_ArmyCategoryPurchasedUnit(lv_indexArmyCategory) != null)) {
            AchievementTermQuantitySet(1, UserDataGetGameLink("TechUnit", libVoiC_gf_PC_TechUnitOfArmyCategory(lv_indexArmyCategory), "AchievementTermUpgrade", 1), 1);

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

    auto5AC394E2_ai = 1;
    while (auto5AC394E2_ai <= auto5AC394E2_ae) {
        lv_indexLocation = CatalogEntryGet(c_gameCatalogLocation, auto5AC394E2_ai);
        libVoiC_gf_SetPlanetAvailable(lv_indexLocation, false);
        auto5AC394E2_ai = auto5AC394E2_ai + 1;

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

    autoFD1B4A98_ai = 1;
    while (autoFD1B4A98_ai <= autoFD1B4A98_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, autoFD1B4A98_ai);
        autoFD1B4A98_ai = autoFD1B4A98_ai + 1;
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission") {

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

    auto932100AC_ai = 1;
    while (auto932100AC_ai <= auto932100AC_ae) {
        lv_indexPlanet = CatalogEntryGet(c_gameCatalogLocation, auto932100AC_ai);
        UserDataSetInt("Locations", libVoiC_gf_PC_LocationUserData(lv_indexPlanet), "Active", 1, 0);
        auto932100AC_ai = auto932100AC_ai + 1;

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

    auto11EF2CBB_ai = 1;
    while (auto11EF2CBB_ai <= auto11EF2CBB_ae) {
        lv_mission = CatalogEntryGet(c_gameCatalogMap, auto11EF2CBB_ai);
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_mission, "Kind", 1) == "Mission" && libVoiC_gf_StoryMapPlanet(lv_mission) == lp_planet) {
            if ((libVoiC_gf_MissionStatusCheck(lv_mission, libVoiC_ge_MissionStatus_Available) == true)) {

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

        autoD86639D2_ai = 1;
        while (autoD86639D2_ai <= autoD86639D2_ae) {
            lv_indexArmyCategory = CatalogEntryGet(c_gameCatalogArmyCategory, autoD86639D2_ai);
            if ((libVoiC_gf_ArmyCategoryStateCheck(lv_indexArmyCategory, c_armyCategoryStateUnlocked) == true)) {
                lv_purchasedUnit = libVoiC_gf_PC_ArmyCategoryPurchasedUnit(lv_indexArmyCategory);

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

    autoC085A94F_ai = 1;
    while (autoC085A94F_ai <= autoC085A94F_ae) {
        lv_indexArmyCategory = CatalogEntryGet(c_gameCatalogArmyCategory, autoC085A94F_ai);
        if ((libVoiC_gf_PC_TechUnitOfArmyCategory(lv_indexArmyCategory) != null) && (libVoiC_gf_PC_ArmyCategoryUnitType(lv_indexArmyCategory) != null) && (UserDataGetGameLink("TechUnit", libVoiC_gf_PC_TechUnitOfArmyCategory(lv_indexArmyCategory), "RequiredRace", 1) == "Prot")) {
            libVoiC_gf_PC_StatEventCreate("UnitStats");

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

    autoA559A442_ai = 1;
    while (autoA559A442_ai <= autoA559A442_ae) {
        lv_indexLocation = CatalogEntryGet(c_gameCatalogLocation, autoA559A442_ai);
        if ((libVoiC_gf_StoryPlanetIsAvailable(lv_indexLocation) == true)) {
            lv_numLocations += 1;

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

    auto11BEB419_ai = 1;
    while (auto11BEB419_ai <= auto11BEB419_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, auto11BEB419_ai);
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission" && libVoiC_gf_StoryMapPlanet(lv_indexMission) == lp_location) {
            if ((libVoiC_gf_MissionStatusCheck(lv_indexMission, libVoiC_ge_MissionStatus_Available) == true)) {

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

    auto4D578797_ai = 1;
    while (auto4D578797_ai <= auto4D578797_ae) {
        lv_indexLocation = CatalogEntryGet(c_gameCatalogLocation, auto4D578797_ai);
        if ((libVoiC_gf_PC_LocationCutsceneFilter(lv_indexLocation) != null)) {
            CutsceneRemoveGlobalFilter(libVoiC_gf_PC_LocationCutsceneFilter(lv_indexLocation));

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

    auto44D60EBD_ai = 1;
    while (auto44D60EBD_ai <= auto44D60EBD_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, auto44D60EBD_ai);
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission" && libVoiC_gf_StoryMapPlanet(lv_indexMission) == libVoiC_gf_CurrentLocation()) {
            if ((libVoiC_gf_MissionStatusCheck(lv_indexMission, libVoiC_ge_MissionStatus_Completed) == true)) {

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

    auto8399F208_ai = 1;
    while (auto8399F208_ai <= auto8399F208_ae) {
        lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, auto8399F208_ai);
        if ((libVoiC_gf_PC_ArmyCategoryUsedInUI(lv_indexCategory) == true) && (libVoiC_gf_ArmyCategoryStateCheck(lv_indexCategory, c_armyCategoryStateUnlocked) == true)) {
            lv_categoryCount += 1;

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

    auto07AC2721_ai = 1;
    while (auto07AC2721_ai <= auto07AC2721_ae) {
        lv_indexLocation = CatalogEntryGet(c_gameCatalogLocation, auto07AC2721_ai);
        if ((lv_index > 2)) {
            break;

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

    auto0A36738A_ai = 1;
    while (auto0A36738A_ai <= auto0A36738A_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, auto0A36738A_ai);
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission" && libVoiC_gf_StoryMapPlanet(lv_indexMission) == libVCUI_gv_pU_StarmapLocations[libVCUI_gv_pU_StarmapSelection]) {
            if ((libVoiC_gf_MissionArmyCategoryUnlocked(lv_indexMission) != null)) {

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

    auto41CD678F_ai = 1;
    while (auto41CD678F_ai <= auto41CD678F_ae) {
        lv_indexLocation = CatalogEntryGet(c_gameCatalogLocation, auto41CD678F_ai);
        if ((libVoiC_gf_StoryPlanetIsAvailable(lv_indexLocation) == true)) {
            auto5CC1E984_ae = CatalogEntryCount(c_gameCatalogMap);

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

            auto5CC1E984_ai = 1;
            while (auto5CC1E984_ai <= auto5CC1E984_ae) {
                lv_indexMission = CatalogEntryGet(c_gameCatalogMap, auto5CC1E984_ai);
                if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission" && libVoiC_gf_StoryMapPlanet(lv_indexMission) == lv_indexLocation) {
                    if ((libVoiC_gf_MissionArmyCategoryUnlocked(lv_indexMission) != null)) {

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

    autoD556D0B3_ai = 1;
    while (autoD556D0B3_ai <= autoD556D0B3_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, autoD556D0B3_ai);
        autoD556D0B3_ai = autoD556D0B3_ai + 1;
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission") {

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

    lv_itSpray = 1;
    for ( ; ( (auto5428BB10_ai >= 0 && lv_itSpray <= auto5428BB10_ae) || (auto5428BB10_ai < 0 && lv_itSpray >= auto5428BB10_ae) ) ; lv_itSpray += auto5428BB10_ai ) {
        lv_sprayID = (CatalogEntryGet(c_gameCatalogSpray, lv_itSpray));
        if ((lv_sprayID != ("RandomSpray"))) {
            libCore_gv_loot_SprayCount += 1;

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

    lv_itBanner = 1;
    for ( ; ( (autoC8805FFB_ai >= 0 && lv_itBanner <= autoC8805FFB_ae) || (autoC8805FFB_ai < 0 && lv_itBanner >= autoC8805FFB_ae) ) ; lv_itBanner += autoC8805FFB_ai ) {
        lv_bannerID = (CatalogEntryGet(c_gameCatalogBanner, lv_itBanner));
        if ((lv_bannerID != ("RandomBanner"))) {
            libCore_gv_loot_BannerCount += 1;

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

    lv_itAnnouncerPack = 1;
    for ( ; ( (auto997AC270_ai >= 0 && lv_itAnnouncerPack <= auto997AC270_ae) || (auto997AC270_ai < 0 && lv_itAnnouncerPack >= auto997AC270_ae) ) ; lv_itAnnouncerPack += auto997AC270_ai ) {
        lv_announcerPackID = (CatalogEntryGet(c_gameCatalogAnnouncerPack, lv_itAnnouncerPack));
        if ((lv_announcerPackID != ("RandomAnnouncerPack"))) {
            libCore_gv_loot_AnnouncerPackCount += 1;

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

    lv_itSkin = 1;
    for ( ; ( (auto10BE01FC_ai >= 0 && lv_itSkin <= auto10BE01FC_ae) || (auto10BE01FC_ai < 0 && lv_itSkin >= auto10BE01FC_ae) ) ; lv_itSkin += auto10BE01FC_ai ) {
        lv_skinID = (CatalogEntryGet(c_gameCatalogSkin, lv_itSkin));
        libCore_gv_dataSkinsSkinCount += 1;
        DataTableSetString(true, ("SkinIndex_" + IntToString(libCore_gv_dataSkinsSkinCount)), lv_skinID);

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

    auto150C4FE0_ai = 1;
    while (auto150C4FE0_ai <= auto150C4FE0_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, auto150C4FE0_ai);
        auto150C4FE0_ai = auto150C4FE0_ai + 1;
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission" && libComC_gf_CC_MapInternal(lv_indexMission) == false) {

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

        autoF1F6516C_ai = 1;
        while (autoF1F6516C_ai <= autoF1F6516C_ae) {
            lv_indexLocation = CatalogEntryGet(c_gameCatalogLocation, autoF1F6516C_ai);
            if ((libComC_gf_CC_LocationIsDefault(lv_indexLocation) == true)) {
                libComC_gf_CC_LocationActivate(lv_indexLocation);

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

    autoF09E61B2_ai = 1;
    while (autoF09E61B2_ai <= autoF09E61B2_ae) {
        lv_indexLocation = CatalogEntryGet(c_gameCatalogLocation, autoF09E61B2_ai);
        libComC_gf_CC_LocationAvailabilitySet(lv_indexLocation, false);
        autoF09E61B2_ai = autoF09E61B2_ai + 1;

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

    auto14830EDC_ai = 1;
    while (auto14830EDC_ai <= auto14830EDC_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, auto14830EDC_ai);
        auto14830EDC_ai = auto14830EDC_ai + 1;
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission" && libComC_gf_CC_MapInternal(lv_indexMission) == false) {

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

    auto6A648E96_ai = 1;
    while (auto6A648E96_ai <= auto6A648E96_ae) {
        lv_indexPlanet = CatalogEntryGet(c_gameCatalogLocation, auto6A648E96_ai);
        UserDataSetInt("Locations", libComC_gf_CC_LocationUserData(lv_indexPlanet), "Active", 1, 0);
        auto6A648E96_ai = auto6A648E96_ai + 1;

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

    auto86A4F335_ai = 1;
    while (auto86A4F335_ai <= auto86A4F335_ae) {
        lv_mission = CatalogEntryGet(c_gameCatalogMap, auto86A4F335_ai);
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_mission, "Kind", 1) == "Mission" && libComC_gf_CC_MissionLocation(lv_mission) == lp_planet && libComC_gf_CC_MapInternal(lv_mission) == false ) {
            if ((libComC_gf_MissionStatusCheck(lv_mission, libComC_ge_MissionStatus_Available) == true)) {

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

    autoB555897C_ai = 1;
    while (autoB555897C_ai <= autoB555897C_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, autoB555897C_ai);
        autoB555897C_ai = autoB555897C_ai + 1;
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission" && libComC_gf_CC_MapInternal(lv_indexMission) == false) {

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

    auto26D1199E_ai = 1;
    while (auto26D1199E_ai <= auto26D1199E_ae) {
        lv_indexMap = CatalogEntryGet(c_gameCatalogMap, auto26D1199E_ai);
        if ((libComC_gf_CC_MapUserDataInstance(lv_indexMap) == lp_map)) {
            return lv_indexMap;

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

    auto1753A895_ai = 1;
    while (auto1753A895_ai <= auto1753A895_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, auto1753A895_ai);
        auto1753A895_ai = auto1753A895_ai + 1;
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission" && libComC_gf_CC_MapInternal(lv_indexMission) == false) {

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

    auto47A8543D_ai = 1;
    while (auto47A8543D_ai <= auto47A8543D_ae) {
        lv_indexMision = CatalogEntryGet(c_gameCatalogMap, auto47A8543D_ai);
        auto47A8543D_ai = auto47A8543D_ai + 1;
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMision, "Kind", 1) == "Mission" && libComC_gf_CC_MapInternal(lv_indexMision) == false) {

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

    autoEFAAD9DE_ai = 1;
    while (autoEFAAD9DE_ai <= autoEFAAD9DE_ae) {
        lv_indexLocation = CatalogEntryGet(c_gameCatalogLocation, autoEFAAD9DE_ai);
        if ((libComC_gf_StoryPlanetIsAvailable(lv_indexLocation) == true)) {
            lv_numLocations += 1;

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

    auto38C52000_ai = 1;
    while (auto38C52000_ai <= auto38C52000_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, auto38C52000_ai);
        auto38C52000_ai = auto38C52000_ai + 1;
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission" && libComC_gf_CC_MapInternal(lv_indexMission) == false) {

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

    auto2D3FC782_ai = 1;
    while (auto2D3FC782_ai <= auto2D3FC782_ae) {
        lv_indexLocation = CatalogEntryGet(c_gameCatalogLocation, auto2D3FC782_ai);
        if ((libNovC_gf_NC_LocationCutsceneFilter(lv_indexLocation) != null)) {
            CutsceneRemoveGlobalFilter(libNovC_gf_NC_LocationCutsceneFilter(lv_indexLocation));

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:1563

        autoFD85C9C2_ai = 1;
        while (autoFD85C9C2_ai <= autoFD85C9C2_ae) {
            lv_indexMission = CatalogEntryGet(c_gameCatalogMap, autoFD85C9C2_ai);
            autoFD85C9C2_ai = autoFD85C9C2_ai + 1;
            if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission" && libComC_gf_CC_MapInternal(lv_indexMission) == false) {

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:2403

    auto25FABF7B_ai = 1;
    while (auto25FABF7B_ai <= auto25FABF7B_ae) {
        lv_indexArmyCategory = CatalogEntryGet(c_gameCatalogArmyCategory, auto25FABF7B_ai);
        auto765F3CFB_ae = CatalogFieldValueCount(c_gameCatalogArmyCategory, lv_indexArmyCategory, "ArmyUnitArray", 1);
        auto765F3CFB_ai = 1;

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:4229

    auto03E7174C_ai = 1;
    while (auto03E7174C_ai <= auto03E7174C_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, auto03E7174C_ai);
        auto03E7174C_ai = auto03E7174C_ai + 1;
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission" && libComC_gf_CC_MapInternal(lv_indexMission) == false) {

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNovC.galaxy:936

    auto11F4A4EE_ai = 1;
    while (auto11F4A4EE_ai <= auto11F4A4EE_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, auto11F4A4EE_ai);
        auto11F4A4EE_ai = auto11F4A4EE_ai + 1;
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission" && libComC_gf_CC_MapInternal(lv_indexMission) == false) {

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNovC.galaxy:1323

    auto354DDF56_ai = 1;
    while (auto354DDF56_ai <= auto354DDF56_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, auto354DDF56_ai);
        auto354DDF56_ai = auto354DDF56_ai + 1;
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission" && libComC_gf_CC_MapInternal(lv_indexMission) == false) {

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNovC.galaxy:1371

        lv_mapIndex = CatalogEntryCount(c_gameCatalogMap);
        for ( ; ( (autoAFABD537_ai >= 0 && lv_mapIndex <= autoAFABD537_ae) || (autoAFABD537_ai <= 0 && lv_mapIndex >= autoAFABD537_ae) ) ; lv_mapIndex += autoAFABD537_ai ) {
            lv_finalMap = ((CatalogEntryGet(c_gameCatalogMap, lv_mapIndex)));
            if ((libComC_gf_CampaignMapTypeCheck(lv_finalMap, c_mapKindMission) == true)) {
                return lv_finalMap;

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNovC.galaxy:1616

        autoF020F810_ai = 1;
        while (autoF020F810_ai <= autoF020F810_ae) {
            lv_indexMission = CatalogEntryGet(c_gameCatalogMap, autoF020F810_ai);
            autoF020F810_ai = autoF020F810_ai + 1;
            if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission" && libComC_gf_CC_MapInternal(lv_indexMission) == false) {

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNovC.galaxy:1688

    auto07B2E483_ai = 1;
    while (auto07B2E483_ai <= auto07B2E483_ae) {
        lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, auto07B2E483_ai);
        if ((libComC_gf_CC_ArmyCategoryState(lv_indexCategory) == c_armyCategoryStateLocked)) {
            autoAC279DD2_ae = CatalogFieldValueCount(c_gameCatalogArmyCategory, lv_indexCategory, "ArmyUnitArray", 1);

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNovC.galaxy:2969

    auto89C6DF6E_ai = 1;
    while (auto89C6DF6E_ai <= auto89C6DF6E_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, auto89C6DF6E_ai);
        auto89C6DF6E_ai = auto89C6DF6E_ai + 1;
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission" && libComC_gf_CC_MapInternal(lv_indexMission) == false) {

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNovC.galaxy:3060

    auto4CD0843D_ai = 1;
    while (auto4CD0843D_ai <= auto4CD0843D_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, auto4CD0843D_ai);
        auto4CD0843D_ai = auto4CD0843D_ai + 1;
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission" && libComC_gf_CC_MapInternal(lv_indexMission) == false) {

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNovC.galaxy:3173

        auto6E6C3892_ai = 1;
        while (auto6E6C3892_ai <= auto6E6C3892_ae) {
            lv_indexMission = CatalogEntryGet(c_gameCatalogMap, auto6E6C3892_ai);
            auto6E6C3892_ai = auto6E6C3892_ai + 1;
            if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission" && libComC_gf_CC_MapInternal(lv_indexMission) == false) {

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNovC.galaxy:3285

    autoD959977A_ai = 1;
    while (autoD959977A_ai <= autoD959977A_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, autoD959977A_ai);
        autoD959977A_ai = autoD959977A_ai + 1;
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission" && libComC_gf_CC_MapInternal(lv_indexMission) == false) {

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNovC.galaxy:3352

    autoD2157CF2_ai = 1;
    while (autoD2157CF2_ai <= autoD2157CF2_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, autoD2157CF2_ai);
        autoD2157CF2_ai = autoD2157CF2_ai + 1;
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission" && libComC_gf_CC_MapInternal(lv_indexMission) == false) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:4210

    auto0FE65364_ai = 1;
    while (auto0FE65364_ai <= auto0FE65364_ae) {
        lv_ability = CatalogEntryGet(c_gameCatalogAbil, auto0FE65364_ai);
        auto0FE65364_ai = auto0FE65364_ai + 1;
        if ((AbilityClass(lv_ability) == c_classIdCAbilResearch)) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:5190

    lv_index = 1;
    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();

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:7737

    auto08666BD0_i = 1;
    for ( ; auto08666BD0_i <= CatalogEntryCount(c_gameCatalogReward) ; auto08666BD0_i += 1 ) {
        lv_itReward = CatalogEntryGet(auto08666BD0_catalog, auto08666BD0_i);
        if ((CatalogEntryScope(c_gameCatalogReward, lv_itReward) == "CRewardVoicePack")) {
            if ((PlayerHasReward(lp_player, lv_itReward) == true)) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:7744

                auto895D551D_i = 1;
                for ( ; auto895D551D_i <= CatalogEntryCount(c_gameCatalogReward) ; auto895D551D_i += 1 ) {
                    lv_appReward = CatalogEntryGet(auto895D551D_catalog, auto895D551D_i);
                    if ((CatalogEntryScope(c_gameCatalogReward, lv_appReward) == "CRewardVoicePack")) {
                        if (((lv_appReward) == lv_rewardStringIDCombine)) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:7781

    auto3F278324_i = 1;
    for ( ; auto3F278324_i <= CatalogEntryCount(c_gameCatalogReward) ; auto3F278324_i += 1 ) {
        lv_itReward = CatalogEntryGet(auto3F278324_catalog, auto3F278324_i);
        if ((CatalogEntryScope(c_gameCatalogReward, lv_itReward) == "CRewardVoicePack") && (PlayerHasReward(lp_player, lv_itReward) == true) && (CatalogFieldValueGet(c_gameCatalogReward, lv_itReward, "VoicePack", c_playerAny) != "Default")) {
            return ;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:30109

    autoA7A5BD22_i = 1;
    for ( ; autoA7A5BD22_i <= CatalogEntryCount(c_gameCatalogReward) ; autoA7A5BD22_i += 1 ) {
        lv_itReward = CatalogEntryGet(autoA7A5BD22_catalog, autoA7A5BD22_i);
        if (((CatalogEntryScope(c_gameCatalogReward, lv_itReward) == "CRewardVoicePack") && (StringContains((lv_itReward), ("_" + (libCOOC_gf_ActiveCommanderForPlayer(1))), c_stringAnywhere, c_stringCase) == false))) {
            if ((PlayerHasReward(1, lv_itReward) == true)) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:30120

                auto76AAF890_i = 1;
                for ( ; auto76AAF890_i <= CatalogEntryCount(c_gameCatalogReward) ; auto76AAF890_i += 1 ) {
                    lv_appReward = CatalogEntryGet(auto76AAF890_catalog, auto76AAF890_i);
                    if ((CatalogEntryScope(c_gameCatalogReward, lv_appReward) == "CRewardVoicePack")) {
                        if (((lv_appReward) == lv_rewardStringIDCombine)) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:6253

    lv_i = 1;
    for ( ; ( (auto91819D2F_ai >= 0 && lv_i <= auto91819D2F_ae) || (auto91819D2F_ai < 0 && lv_i >= auto91819D2F_ae) ) ; lv_i += auto91819D2F_ai ) {
        lv_stringUnitID = (CatalogEntryGet(c_gameCatalogUnit, lv_i));
        lv_sightRange = (StringToFixed(CatalogFieldValueGet(c_gameCatalogUnit, lv_stringUnitID, "Sight", 0)) + 3.0);
        if ((lv_sightRange > 32.0)) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:6341

    lv_catalogIndex = 1;
    for ( ; ( (auto2CAE58D1_ai >= 0 && lv_catalogIndex <= auto2CAE58D1_ae) || (auto2CAE58D1_ai < 0 && lv_catalogIndex >= auto2CAE58D1_ae) ) ; lv_catalogIndex += auto2CAE58D1_ai ) {
        lv_stringUnitID = (CatalogEntryGet(c_gameCatalogUnit, lv_catalogIndex));
        lv_sightRange = (StringToFixed(CatalogFieldValueGet(c_gameCatalogUnit, lv_stringUnitID, "Sight", 0)) * lv_sightFraction);
        if ((lv_sightRange < 1.0)) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:7563

    lv_catalogIndex = 1;
    for ( ; ( (auto9AFF4A66_ai >= 0 && lv_catalogIndex <= auto9AFF4A66_ae) || (auto9AFF4A66_ai < 0 && lv_catalogIndex >= auto9AFF4A66_ae) ) ; lv_catalogIndex += auto9AFF4A66_ai ) {
        lv_stringUnitID = (CatalogEntryGet(c_gameCatalogUnit, lv_catalogIndex));
        if ((UnitTypeTestAttribute(UnitTypeFromString(lv_stringUnitID), c_unitAttributeMapBoss) == true)) {
            continue;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:7706

    lv_catalogIndex = 1;
    for ( ; ( (autoA3DF73CA_ai >= 0 && lv_catalogIndex <= autoA3DF73CA_ae) || (autoA3DF73CA_ai < 0 && lv_catalogIndex >= autoA3DF73CA_ae) ) ; lv_catalogIndex += autoA3DF73CA_ai ) {
        lv_stringUnitID = (CatalogEntryGet(c_gameCatalogUnit, lv_catalogIndex));
        autoE308DE70_g = libCOOC_gf_HumanPlayers();
        lv_indexPlayer = -1;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:8267

    lv_catalogIndex = 1;
    for ( ; ( (auto7E88D347_ai >= 0 && lv_catalogIndex <= auto7E88D347_ae) || (auto7E88D347_ai < 0 && lv_catalogIndex >= auto7E88D347_ae) ) ; lv_catalogIndex += auto7E88D347_ai ) {
        lv_stringUnitID = (CatalogEntryGet(c_gameCatalogUnit, lv_catalogIndex));
        if ((UnitTypeTestFlag((lv_stringUnitID), c_unitFlagWorker) == true)) {
            continue;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:2525

    autoC8E789DF_ai = 1;
    while (autoC8E789DF_ai <= autoC8E789DF_ae) {
        lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, autoC8E789DF_ai);
        autoC8E789DF_ai = autoC8E789DF_ai + 1;
        if ((libCOOC_gf_CC_ArmyCategoryUnlocksExternal(lv_indexCategory) == true)) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:2566

    auto0502DF11_ai = 1;
    while (auto0502DF11_ai <= auto0502DF11_ae) {
        lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, auto0502DF11_ai);
        auto0502DF11_ai = auto0502DF11_ai + 1;
        if ((libCOOC_gf_CC_TechUnitOfArmyCategory(lv_indexCategory) == lp_techUnit)) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:2774

    auto06F724AF_ai = 1;
    while (auto06F724AF_ai <= auto06F724AF_ae) {
        lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, auto06F724AF_ai);
        auto06F724AF_ai = auto06F724AF_ai + 1;
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:2800

    autoA4FA1EF9_ai = 1;
    while (autoA4FA1EF9_ai <= autoA4FA1EF9_ae) {
        lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, autoA4FA1EF9_ai);
        autoA4FA1EF9_ai = autoA4FA1EF9_ai + 1;
        if ((libCOOC_gf_CC_ArmyCategoryUsedInUI(lv_indexCategory) == true)) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:2928

    auto23F3793C_ai = 1;
    while (auto23F3793C_ai <= auto23F3793C_ae) {
        lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, auto23F3793C_ai);
        auto23F3793C_ai = auto23F3793C_ai + 1;
        auto1EC70D71_ae = CatalogFieldValueCount(c_gameCatalogArmyCategory, lv_indexCategory, "ArmyUpgradeArray", 1);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:2997

    auto08EA5277_ai = 1;
    while (auto08EA5277_ai <= auto08EA5277_ae) {
        lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, auto08EA5277_ai);
        auto08EA5277_ai = auto08EA5277_ai + 1;
        auto53287F0D_ae = CatalogFieldValueCount(c_gameCatalogArmyCategory, lv_indexCategory, "ArmyUnitArray", 1);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:3079

    autoCE15C86D_ai = 1;
    while (autoCE15C86D_ai <= autoCE15C86D_ae) {
        lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, autoCE15C86D_ai);
        autoCE15C86D_ai = autoCE15C86D_ai + 1;
        auto43B42A5A_ae = CatalogFieldValueCount(c_gameCatalogArmyCategory, lv_indexCategory, "ArmyUnitArray", 1);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:3166

    auto6B214DBC_ai = 1;
    while (auto6B214DBC_ai <= auto6B214DBC_ae) {
        lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, auto6B214DBC_ai);
        auto6B214DBC_ai = auto6B214DBC_ai + 1;
        if ((libCOOC_gf_ArmyCategoryStateCheck(lv_indexCategory, c_armyUnitStateLocked, libCOOC_gf_ActiveCommanderForPlayer(lp_player), lp_player) == false)) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:3220

    auto9EF57A55_ai = 1;
    while (auto9EF57A55_ai <= auto9EF57A55_ae) {
        lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, auto9EF57A55_ai);
        auto9EF57A55_ai = auto9EF57A55_ai + 1;
        libCOOC_gf_EnableCampaignTechUnit(false, libCOOC_gf_CC_TechUnitOfArmyCategory(lv_indexCategory), lp_player);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:3234

    auto1D234705_ai = 1;
    while (auto1D234705_ai <= auto1D234705_ae) {
        lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, auto1D234705_ai);
        auto1D234705_ai = auto1D234705_ai + 1;
        if ((libCOOC_gf_ArmyCategoryStateCheck(lv_indexCategory, c_armyUnitStatePurchased, lv_playerCommander, lp_player) == true)) {

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:3295

    autoFE16D3B3_ai = 1;
    while (autoFE16D3B3_ai <= autoFE16D3B3_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, autoFE16D3B3_ai);
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission") {
            if ((libA3DDD02B_gf_MissionStatusCheck(lv_indexMission, libA3DDD02B_ge_MissionStatus_Completed) == true)) {

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:3861

    autoD8EB8CD1_ai = 1;
    while (autoD8EB8CD1_ai <= autoD8EB8CD1_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, autoD8EB8CD1_ai);
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission") {
            autoA1F55B7F_val = lp_options;

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:3909

    auto4745C134_ai = 1;
    while (auto4745C134_ai <= auto4745C134_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, auto4745C134_ai);
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission") {
            autoAF47181C_val = lp_options;

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:4059

    auto1444F78C_ai = 1;
    while (auto1444F78C_ai <= auto1444F78C_ae) {
        lv_indexMap = CatalogEntryGet(c_gameCatalogMap, auto1444F78C_ai);
        if ((libA3DDD02B_gf_PP_MapUserDataInstance(lv_indexMap) == lp_map)) {
            return lv_indexMap;

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:4096

    autoC9AEF9E3_ai = 1;
    while (autoC9AEF9E3_ai <= autoC9AEF9E3_ae) {
        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, autoC9AEF9E3_ai);
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission") {
            if ((libA3DDD02B_gf_MissionCompletedOnDifficulty(lv_indexMission, lp_difficulty) == true)) {