# Number Of User Data Instances

Grammar — Number of user data instances for userType
FlagsNative | Function

Returns the number of instances defined within the given user type. User types are defined within the Data module.

# Arguments

  • string<gamelink::User> — User Type

Returns — int

native int UserDataInstanceCount(string inType);

Category: User Data / Basic

# Examples

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


    // Implementation
    auto075F95F9_ae = UserDataInstanceCount("ConversationTimestamps");
    lv_index = 1;
    for ( ; ( (auto075F95F9_ai >= 0 && lv_index <= auto075F95F9_ae) || (auto075F95F9_ai < 0 && lv_index >= auto075F95F9_ae) ) ; lv_index += auto075F95F9_ai ) {

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

    libSwaC_gf_ZS_ResetTech();
    autoE6D62441_ai = 1;
    autoE6D62441_ae = UserDataInstanceCount("Scenes")+1;
    while (autoE6D62441_ai < autoE6D62441_ae) {
        lv_indexScene = UserDataInstance("Scenes", autoE6D62441_ai);

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

    lv_y += 50;
    libSwaC_gv_zS_DebugStoryTechArmyCatCount = 0;
    auto085E4190_ae = UserDataInstanceCount("Maps");
    auto085E4190_ai = 1;
    while (auto085E4190_ai <= auto085E4190_ae) {

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


    // Implementation
    autoC9D55875_ae = UserDataInstanceCount("Maps");
    autoC9D55875_ai = 1;
    while (autoC9D55875_ai <= autoC9D55875_ae) {

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

    lib281DEC45_gf_ZSS_TransitionalLoad();
    auto4FB8B176_ai = 1;
    auto4FB8B176_ae = UserDataInstanceCount("Character")+1;
    while (auto4FB8B176_ai < auto4FB8B176_ae) {
        lv_character = UserDataInstance("Character", auto4FB8B176_ai);

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

        }
        auto2DC3C7B3_ai = 1;
        auto2DC3C7B3_ae = UserDataInstanceCount("Character")+1;
        while (auto2DC3C7B3_ai < auto2DC3C7B3_ae) {
            lv_character = UserDataInstance("Character", auto2DC3C7B3_ai);

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

    // Implementation
    auto7E4635CA_ai = 1;
    auto7E4635CA_ae = UserDataInstanceCount("Character")+1;
    while (auto7E4635CA_ai < auto7E4635CA_ae) {
        lv_character = UserDataInstance("Character", auto7E4635CA_ai);

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

    // Implementation
    auto3171AB38_ai = 1;
    auto3171AB38_ae = UserDataInstanceCount("Character")+1;
    while (auto3171AB38_ai < auto3171AB38_ae) {
        lv_indexCharacter = UserDataInstance("Character", auto3171AB38_ai);

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

    // Implementation
    auto4F1F65F6_ai = 1;
    auto4F1F65F6_ae = UserDataInstanceCount("Character")+1;
    while (auto4F1F65F6_ai < auto4F1F65F6_ae) {
        lv_indexCharacter = UserDataInstance("Character", auto4F1F65F6_ai);

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


    // Implementation
    autoA64B39DA_ae = UserDataInstanceCount("WriterStates");
    autoA64B39DA_ai = 1;
    lv_index = 1;

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

    lib281DEC45_gf_ZSS_CharacterDataUpdate();
    auto7D6EB66D_ai = 1;
    auto7D6EB66D_ae = UserDataInstanceCount("Character")+1;
    while (auto7D6EB66D_ai < auto7D6EB66D_ae) {
        lv_indexCharacter = UserDataInstance("Character", auto7D6EB66D_ai);

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

        lib281DEC45_gv_zSS_DebugStoryCurrentTypeIndex = DialogControlGetSelectedItem(lib281DEC45_gv_zSS_DebugStoryTypeList, 1);
        DialogControlRemoveAllItems(lib281DEC45_gv_zSS_DebugStorySceneList, PlayerGroupAll());
        auto2749AB36_ae = UserDataInstanceCount("ScriptedScenes");
        auto2749AB36_ai = 1;
        lv_index = 1;

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

    else {
    }
    if ((DialogControlGetSelectedItem(lib281DEC45_gv_zSS_DebugStoryStateList, 1) > UserDataInstanceCount("WriterStates"))) {
        libNtve_gf_SetDialogItemEditorValue(lib281DEC45_gv_zSS_DebugStoryStateEditBox, IntToString(UserDataGetInt("StoryStates", UserDataInstance("StoryStates", (DialogControlGetSelectedItem(lib281DEC45_gv_zSS_DebugStoryStateList, 1)-UserDataInstanceCount("WriterStates"))), "value", 1)), PlayerGroupAll());
    }

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

    }
    if ((DialogControlGetSelectedItem(lib281DEC45_gv_zSS_DebugStoryStateList, 1) > UserDataInstanceCount("WriterStates"))) {
        libNtve_gf_SetDialogItemEditorValue(lib281DEC45_gv_zSS_DebugStoryStateEditBox, IntToString(UserDataGetInt("StoryStates", UserDataInstance("StoryStates", (DialogControlGetSelectedItem(lib281DEC45_gv_zSS_DebugStoryStateList, 1)-UserDataInstanceCount("WriterStates"))), "value", 1)), PlayerGroupAll());
    }
    else {

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:694

    // Implementation
    autoB586D847_ai = 1;
    autoB586D847_ae = UserDataInstanceCount("CampaignPerk")+1;
    while (autoB586D847_ai < autoB586D847_ae) {    
        lv_indexPower = UserDataInstance("CampaignPerk", autoB586D847_ai);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:744

    // Implementation
    auto85715C34_ai = 1;
    auto85715C34_ae = UserDataInstanceCount("CampaignPerkGroup")+1;
    while (auto85715C34_ai < auto85715C34_ae) {
        lv_indexType = UserDataInstance("CampaignPerkGroup", auto85715C34_ai);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pstory01.sc2map/MapScript.galaxy:1780


    autoFBE30DB1_ai = 1;
    autoFBE30DB1_ae = UserDataInstanceCount("Clickable")+1;
    while (autoFBE30DB1_ai < autoFBE30DB1_ae) {
        lv_indexClickable = UserDataInstance("Clickable", autoFBE30DB1_ai);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2mapMapScript.galaxy:694

    // Implementation
    autoB586D847_ai = 1;
    autoB586D847_ae = UserDataInstanceCount("CampaignPerk")+1;
    while (autoB586D847_ai < autoB586D847_ae) {    
        lv_indexPower = UserDataInstance("CampaignPerk", autoB586D847_ai);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2mapMapScript.galaxy:744

    // Implementation
    auto85715C34_ai = 1;
    auto85715C34_ae = UserDataInstanceCount("CampaignPerkGroup")+1;
    while (auto85715C34_ai < auto85715C34_ae) {
        lv_indexType = UserDataInstance("CampaignPerkGroup", auto85715C34_ai);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pstory01.sc2mapMapScript.galaxy:1780


    autoFBE30DB1_ai = 1;
    autoFBE30DB1_ae = UserDataInstanceCount("Clickable")+1;
    while (autoFBE30DB1_ai < autoFBE30DB1_ae) {
        lv_indexClickable = UserDataInstance("Clickable", autoFBE30DB1_ai);

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

    lv_y += 50;
    libVoiC_gv_pC_DebugCampaignTechArmyCatCount = 0;
    auto13D0B222_ae = UserDataInstanceCount("Maps");
    auto13D0B222_ai = 1;
    while (auto13D0B222_ai <= auto13D0B222_ae) {

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

    libVoiC_gv_pC_DebugCampaignTechSoATypeCount = 0;
    autoC48AB1B0_ai = 1;
    autoC48AB1B0_ae = UserDataInstanceCount("CampaignPerkGroup")+1;
    while (autoC48AB1B0_ai < autoC48AB1B0_ae) {
        lv_indexPowerType = UserDataInstance("CampaignPerkGroup", autoC48AB1B0_ai);

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

        lv_index = 1;
        auto640166B0_ai = 1;
        auto640166B0_ae = UserDataInstanceCount("CampaignPerk")+1;
        while (auto640166B0_ai < auto640166B0_ae) {    
            lv_indexPower = UserDataInstance("CampaignPerk", auto640166B0_ai);

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

        lv_powerIndex = 0;
        auto125AB858_ai = 1;
        auto125AB858_ae = UserDataInstanceCount("CampaignPerk")+1;
        while (auto125AB858_ai < auto125AB858_ae) {    
            lv_currentPower = UserDataInstance("CampaignPerk", auto125AB858_ai);

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

        lv_perkIndex = 0;
        auto4718CF27_ai = 1;
        auto4718CF27_ae = UserDataInstanceCount("CampaignPerk")+1;
        while (auto4718CF27_ai < auto4718CF27_ae) {    
            lv_indexPerk = UserDataInstance("CampaignPerk", auto4718CF27_ai);

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


    // Implementation
    auto4BF17532_ae = UserDataInstanceCount("Maps");
    auto4BF17532_ai = 1;
    while (auto4BF17532_ai <= auto4BF17532_ae) {

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

    libVoiC_gv_pC_ArmyTechBank = null;
    libVoiC_gf_ResetCampaignData();
    autoF9C1F36E_ae = UserDataInstanceCount("Maps");
    autoF9C1F36E_ai = 1;
    while (autoF9C1F36E_ai <= autoF9C1F36E_ae) {

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


    autoD497A8FA_ai = 1;
    autoD497A8FA_ae = UserDataInstanceCount("CampaignPerk")+1;
    while (autoD497A8FA_ai < autoD497A8FA_ae) {
        lv_indexPerk = UserDataInstance("CampaignPerk", autoD497A8FA_ai);

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

    }
    auto250D5CDF_ai = 1;
    auto250D5CDF_ae = UserDataInstanceCount("CampaignPerkGroup")+1;
    while (auto250D5CDF_ai < auto250D5CDF_ae) {
        lv_indexPerkGroup = UserDataInstance("CampaignPerkGroup", auto250D5CDF_ai);

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

            lv_topPerk = null;
            autoC368E7AC_ai = 1;
            autoC368E7AC_ae = UserDataInstanceCount("CampaignPerk")+1;
            while (autoC368E7AC_ai < autoC368E7AC_ae) {    
                lv_indexPerk = UserDataInstance("CampaignPerk", autoC368E7AC_ai);

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

        libVoiC_gf_PC_StatEventCreate("SoAChoices");
        autoD89F2D02_ai = 1;
        autoD89F2D02_ae = UserDataInstanceCount("CampaignPerk")+1;
        while (autoD89F2D02_ai < autoD89F2D02_ae) {
            lv_indexPerk = UserDataInstance("CampaignPerk", autoD89F2D02_ai);

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

        }
        auto2A422365_ai = 1;
        auto2A422365_ae = UserDataInstanceCount("SpearofAdunUpgrade")+1;
        while (auto2A422365_ai < auto2A422365_ae) {
            lv_indexSoAUpgrade = UserDataInstance("SpearofAdunUpgrade", auto2A422365_ai);

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

    libVoiC_gf_PC_StatEventDone(libVoiC_gf_PC_StatEventLast());
    auto1132B9C5_ai = 1;
    auto1132B9C5_ae = UserDataInstanceCount("CampaignPerk")+1;
    while (auto1132B9C5_ai < auto1132B9C5_ae) {
        lv_indexPerk = UserDataInstance("CampaignPerk", auto1132B9C5_ai);

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

    TriggerExecute(libVCMI_gt_PM_SoAStatusWatch, true, false);
    autoAFC1BA1E_ai = 1;
    autoAFC1BA1E_ae = UserDataInstanceCount("CampaignPerk")+1;
    while (autoAFC1BA1E_ai < autoAFC1BA1E_ae) {
        lv_indexPerk = UserDataInstance("CampaignPerk", autoAFC1BA1E_ai);

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

    libVCST_gv_pS_DebugStoryListCount = 0;
    DialogControlRemoveAllItems(libVCST_gv_pS_DebugStorySceneList, PlayerGroupAll());
    auto88925A07_ae = UserDataInstanceCount("Scenes");
    lv_index = 1;
    for ( ; ( (auto88925A07_ai >= 0 && lv_index <= auto88925A07_ae) || (auto88925A07_ai < 0 && lv_index >= auto88925A07_ae) ) ; lv_index += auto88925A07_ai ) {

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

        libVCST_gf_PS_DebugStoryAddListItem((lv_indexScene), lv_indexScene, "Scenes");
    }
    auto34730C5A_ae = UserDataInstanceCount("Conversations");
    lv_index = 1;
    for ( ; ( (auto34730C5A_ai >= 0 && lv_index <= auto34730C5A_ae) || (auto34730C5A_ai < 0 && lv_index >= auto34730C5A_ae) ) ; lv_index += auto34730C5A_ai ) {

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

    lv_storyBank = libVoiC_gf_StoryBank();
    auto792D16C3_ai = 1;
    auto792D16C3_ae = UserDataInstanceCount("Clickable")+1;
    while (auto792D16C3_ai < auto792D16C3_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto792D16C3_ai);

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

    lv_storyBank = libVoiC_gf_StoryBank();
    auto741B8B93_ai = 1;
    auto741B8B93_ae = UserDataInstanceCount("Clickable")+1;
    while (auto741B8B93_ai < auto741B8B93_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto741B8B93_ai);

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

    // Implementation
    auto67314A6A_ai = 1;
    auto67314A6A_ae = UserDataInstanceCount("Clickable")+1;
    while (auto67314A6A_ai < auto67314A6A_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto67314A6A_ai);

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

    // Implementation
    auto2104D7CD_ai = 1;
    auto2104D7CD_ae = UserDataInstanceCount("Clickable")+1;
    while (auto2104D7CD_ai < auto2104D7CD_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto2104D7CD_ai);

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


    // Implementation
    auto2637DB5C_ae = UserDataInstanceCount("WriterStates");
    lv_stateIndex = 1;
    for ( ; ( (auto2637DB5C_ai >= 0 && lv_stateIndex <= auto2637DB5C_ae) || (auto2637DB5C_ai < 0 && lv_stateIndex >= auto2637DB5C_ae) ) ; lv_stateIndex += auto2637DB5C_ai ) {

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


    // Implementation
    auto36AC1F96_ae = UserDataInstanceCount("StoryStates");
    lv_stateIndex = 1;
    for ( ; ( (auto36AC1F96_ai >= 0 && lv_stateIndex <= auto36AC1F96_ae) || (auto36AC1F96_ai < 0 && lv_stateIndex >= auto36AC1F96_ae) ) ; lv_stateIndex += auto36AC1F96_ai ) {

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


    // Implementation
    auto6F9608EF_ae = UserDataInstanceCount("StoryStates");
    lv_stateIndex = 1;
    for ( ; ( (auto6F9608EF_ai >= 0 && lv_stateIndex <= auto6F9608EF_ae) || (auto6F9608EF_ai < 0 && lv_stateIndex >= auto6F9608EF_ae) ) ; lv_stateIndex += auto6F9608EF_ai ) {

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


    // Implementation
    auto39AB0444_ae = UserDataInstanceCount("StoryStates");
    lv_stateIndex = 1;
    for ( ; ( (auto39AB0444_ai >= 0 && lv_stateIndex <= auto39AB0444_ae) || (auto39AB0444_ai < 0 && lv_stateIndex >= auto39AB0444_ae) ) ; lv_stateIndex += auto39AB0444_ai ) {

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

    libVCUI_gv_pU_TimerWindowDangerThreshold = 180.0;
    libVCUI_gv_pU_TimerWindowTimer = TimerCreate();
    libVCUI_gv_pU_LoreCreditsMaxItems = UserDataInstanceCount("LoreCredits");
    libVCUI_gv_pU_LoreCreditsTimer = TimerCreate();
    libVCUI_gv_pU_LoreCreditsDialog = c_invalidDialogId;

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

        libNtve_gf_SetDialogItemActor(libVCUI_gv_pU_MissionPortraitFrame, libVoiC_gf_PC_CampaignMapContactActor(lp_mission), PlayerGroupAll());
    }
    autoE665DE91_ae = UserDataInstanceCount("Clickable");
    lv_clickableIndex = 1;
    for ( ; ( (autoE665DE91_ai >= 0 && lv_clickableIndex <= autoE665DE91_ae) || (autoE665DE91_ai < 0 && lv_clickableIndex >= autoE665DE91_ae) ) ; lv_clickableIndex += autoE665DE91_ai ) {

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

    libVCUI_gv_pU_SoACurrencyCurrent = libVoiC_gf_PC_SoACurrencyAvail();
    autoF43AEDEA_ai = 1;
    autoF43AEDEA_ae = UserDataInstanceCount("SpearofAdunUpgrade")+1;
    while (autoF43AEDEA_ai < autoF43AEDEA_ae) {
        lv_indexUpgrade = UserDataInstance("SpearofAdunUpgrade", autoF43AEDEA_ai);

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

    }
    autoAD50C843_ai = 1;
    autoAD50C843_ae = UserDataInstanceCount("CampaignPerkGroup")+1;
    while (autoAD50C843_ai < autoAD50C843_ae) {
        lv_indexGroup = UserDataInstance("CampaignPerkGroup", autoAD50C843_ai);

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

        libNtve_gf_SetDialogItemText(libVCUI_gv_pU_SoAInventoryTitle[lv_groupIndex], libVoiC_gf_PC_PerkGroupName(lv_indexGroup), PlayerGroupAll());
        auto52E4901E_ai = 1;
        auto52E4901E_ae = UserDataInstanceCount("CampaignPerk")+1;
        while (auto52E4901E_ai < auto52E4901E_ae) {    
            lv_indexPerk = UserDataInstance("CampaignPerk", auto52E4901E_ai);

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

    // Implementation
    auto8B731360_ai = 1;
    auto8B731360_ae = UserDataInstanceCount("Clickable")+1;
    while (auto8B731360_ai < auto8B731360_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto8B731360_ai);

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

    }
    auto4958AC6C_ai = 1;
    auto4958AC6C_ae = UserDataInstanceCount("CampaignPerkGroup")+1;
    while (auto4958AC6C_ai < auto4958AC6C_ae) {
        lv_indexPerkGroup = UserDataInstance("CampaignPerkGroup", auto4958AC6C_ai);

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

        if ((libVoiC_gf_PC_PerkGroupMissionUIOrder(lv_indexPerkGroup) == lp_slot)) {
            auto51705059_ai = 1;
            auto51705059_ae = UserDataInstanceCount("CampaignPerk")+1;
            while (auto51705059_ai < auto51705059_ae) {    
                lv_indexPerk = UserDataInstance("CampaignPerk", auto51705059_ai);

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

    }
    auto50C6B8D0_ai = 1;
    auto50C6B8D0_ae = UserDataInstanceCount("Scenes")+1;
    while (auto50C6B8D0_ai < auto50C6B8D0_ae) {
        lv_indexScene = UserDataInstance("Scenes", auto50C6B8D0_ai);

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


    // Variable Initialization
    lv_count = UserDataInstanceCount(lp_userType);

    // Implementation

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


    // Variable Initialization
    lv_c = UserDataInstanceCount(libGame_gv_wheelCmdUserType);
    lv_minPingIndex = libGame_gv_wheelPingOffsetIndex;

mods/liberty.sc2modbase.sc2data/TriggerLibs/LibertyLib.galaxy:959

    auto0F553801_userType = libLbty_gv_starCraftEventsEventTable;
    auto0F553801_i = 1;
    for ( ; auto0F553801_i <= UserDataInstanceCount(auto0F553801_userType) ; auto0F553801_i += 1 ) {
        lv_itInstance = UserDataInstance(auto0F553801_userType, auto0F553801_i);
        lv_itStart = StringToDateTime(UserDataGetString(libLbty_gv_starCraftEventsEventTable, lv_itInstance, "Start", 1));

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

    // Implementation
    lv_count = 0;
    autoEE21E2F4_ae = UserDataInstanceCount("Maps");
    autoEE21E2F4_ai = 1;
    while (autoEE21E2F4_ai <= autoEE21E2F4_ae) {

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

    if ((lv_index == 0)) {
        lv_objectiveInstance = UserDataInstanceFromReference(CatalogFieldValueGet(c_gameCatalogObjective, (lp_objective), "UserReference", 1));
        auto6FC17B41_ae = UserDataInstanceCount("MissionObjective");
        auto6FC17B41_ai = 1;
        lv_index = 1;

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


    // Implementation
    auto2A108C07_ae = UserDataInstanceCount("Timestamps");
    auto2A108C07_ai = 1;
    lv_index = 1;

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


    // Implementation
    autoF75EEEC7_ae = UserDataInstanceCount("Timestamps");
    autoF75EEEC7_ai = 1;
    lv_index = 1;

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

    // Implementation
    auto1802D124_ai = 1;
    auto1802D124_ae = UserDataInstanceCount("CampaignPerk")+1;
    while (auto1802D124_ai < auto1802D124_ae) {
        lv_indexPerk = UserDataInstance("CampaignPerk", auto1802D124_ai);

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

    // Implementation
    auto3E2E736C_ai = 1;
    auto3E2E736C_ae = UserDataInstanceCount("CampaignPerk")+1;
    while (auto3E2E736C_ai < auto3E2E736C_ae) {
        lv_indexPerk = UserDataInstance("CampaignPerk", auto3E2E736C_ai);

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

    }
    auto25F557A7_ai = 1;
    auto25F557A7_ae = UserDataInstanceCount("CampaignPerk")+1;
    while (auto25F557A7_ai < auto25F557A7_ae) {
        lv_indexPerk = UserDataInstance("CampaignPerk", auto25F557A7_ai);

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

    // Implementation
    autoC862D1E5_ai = 1;
    autoC862D1E5_ae = UserDataInstanceCount("CampaignPerk")+1;
    while (autoC862D1E5_ai < autoC862D1E5_ae) {
        lv_indexPerk = UserDataInstance("CampaignPerk", autoC862D1E5_ai);

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

    libComC_gf_CC_ResetTech();
    autoA514DBDD_ai = 1;
    autoA514DBDD_ae = UserDataInstanceCount("Scenes")+1;
    while (autoA514DBDD_ai < autoA514DBDD_ae) {
        lv_indexScene = UserDataInstance("Scenes", autoA514DBDD_ai);

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

    // Implementation
    auto8C73AC62_ai = 1;
    auto8C73AC62_ae = UserDataInstanceCount("CampaignPerk")+1;
    while (auto8C73AC62_ai < auto8C73AC62_ae) {
        lv_indexEquipment = UserDataInstance("CampaignPerk", auto8C73AC62_ai);

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

    // Implementation
    auto833582E7_ai = 1;
    auto833582E7_ae = UserDataInstanceCount("CampaignPerk")+1;
    while (auto833582E7_ai < auto833582E7_ae) {
        lv_indexPerk = UserDataInstance("CampaignPerk", auto833582E7_ai);

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

            if ((libNovC_gf_NC_PerkUpgradesActive(lv_indexPerk, libNovC_gv_nCC_NovaPlayerSlot) == true)) {
                auto4EDF563F_ai = 1;
                auto4EDF563F_ae = UserDataInstanceCount("CampaignPerk")+1;
                while (auto4EDF563F_ai < auto4EDF563F_ae) {
                    lv_indexPerkOthersInCategory = UserDataInstance("CampaignPerk", auto4EDF563F_ai);

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

    libNCST_gv_nS_DebugStoryListCount = 0;
    DialogControlRemoveAllItems(libNCST_gv_nS_DebugStorySceneList, PlayerGroupAll());
    auto88925A07_ae = UserDataInstanceCount("Scenes");
    auto88925A07_ai = 1;
    lv_index = 1;

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

        libNCST_gf_NS_DebugStoryAddListItem((lv_indexScene), lv_indexScene, "Scenes");
    }
    auto34730C5A_ae = UserDataInstanceCount("Conversations");
    auto34730C5A_ai = 1;
    lv_index = 1;

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

    lv_storyBank = libComC_gf_CC_StoryBank();
    auto792D16C3_ai = 1;
    auto792D16C3_ae = UserDataInstanceCount("Clickable")+1;
    while (auto792D16C3_ai < auto792D16C3_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto792D16C3_ai);

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

    lv_storyBank = libComC_gf_CC_StoryBank();
    auto741B8B93_ai = 1;
    auto741B8B93_ae = UserDataInstanceCount("Clickable")+1;
    while (auto741B8B93_ai < auto741B8B93_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto741B8B93_ai);

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

    // Implementation
    auto67314A6A_ai = 1;
    auto67314A6A_ae = UserDataInstanceCount("Clickable")+1;
    while (auto67314A6A_ai < auto67314A6A_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto67314A6A_ai);

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

    // Implementation
    auto2104D7CD_ai = 1;
    auto2104D7CD_ae = UserDataInstanceCount("Clickable")+1;
    while (auto2104D7CD_ai < auto2104D7CD_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto2104D7CD_ai);

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


    // Implementation
    auto2637DB5C_ae = UserDataInstanceCount("WriterStates");
    auto2637DB5C_ai = 1;
    lv_stateIndex = 1;

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


    // Implementation
    auto36AC1F96_ae = UserDataInstanceCount("StoryStates");
    auto36AC1F96_ai = 1;
    lv_stateIndex = 1;

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


    // Implementation
    auto6F9608EF_ae = UserDataInstanceCount("StoryStates");
    auto6F9608EF_ai = 1;
    lv_stateIndex = 1;

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


    // Implementation
    auto39AB0444_ae = UserDataInstanceCount("StoryStates");
    auto39AB0444_ai = 1;
    lv_stateIndex = 1;

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

        if ((libComC_gf_MissionObjectiveIsPrimary(lv_indexObjective) == false)) {
            auto5BE8490E_ai = 1;
            auto5BE8490E_ae = UserDataInstanceCount("CampaignPerk")+1;
            while (auto5BE8490E_ai < auto5BE8490E_ae) {
                lv_indexPerk = UserDataInstance("CampaignPerk", auto5BE8490E_ai);

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

            }
            auto6993E792_ai = 1;
            auto6993E792_ae = UserDataInstanceCount("CampaignTechItem")+1;
            while (auto6993E792_ai < auto6993E792_ae) {
                lv_indexTechItem = UserDataInstance("CampaignTechItem", auto6993E792_ai);

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

        if ((libComC_gf_MissionObjectiveIsPrimary(lv_indexObjective) == false)) {
            auto833E559F_ai = 1;
            auto833E559F_ae = UserDataInstanceCount("CampaignPerk")+1;
            while (auto833E559F_ai < auto833E559F_ae) {
                lv_indexPerk = UserDataInstance("CampaignPerk", auto833E559F_ai);

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

            }
            auto7D186AAC_ai = 1;
            auto7D186AAC_ae = UserDataInstanceCount("CampaignTechItem")+1;
            while (auto7D186AAC_ai < auto7D186AAC_ae) {
                lv_indexTechItem = UserDataInstance("CampaignTechItem", auto7D186AAC_ai);

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

    // Implementation
    auto8B731360_ai = 1;
    auto8B731360_ae = UserDataInstanceCount("Clickable")+1;
    while (auto8B731360_ai < auto8B731360_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto8B731360_ai);

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

    // Implementation
    autoF0F09191_ai = 1;
    autoF0F09191_ae = UserDataInstanceCount("CampaignTechItem")+1;
    while (autoF0F09191_ai < autoF0F09191_ae) {
        lv_indexTechItem = UserDataInstance("CampaignTechItem", autoF0F09191_ai);

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

            lv_currentTechItemSubsectionIndex = 1;
            auto808FC461_ai = 1;
            auto808FC461_ae = UserDataInstanceCount("CampaignTechItem")+1;
            while (auto808FC461_ai < auto808FC461_ae) {
                lv_indexTechItem = UserDataInstance("CampaignTechItem", auto808FC461_ai);

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

    // Implementation
    auto02DE18CB_ai = 1;
    auto02DE18CB_ae = UserDataInstanceCount("CampaignPerk")+1;
    while (auto02DE18CB_ai < auto02DE18CB_ae) {
        lv_indexEquipment = UserDataInstance("CampaignPerk", auto02DE18CB_ai);

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

    }
    auto88841389_ai = 1;
    auto88841389_ae = UserDataInstanceCount("CampaignPerkGroup")+1;
    while (auto88841389_ai < auto88841389_ae) {
        lv_indexEquipmentGroup = UserDataInstance("CampaignPerkGroup", auto88841389_ai);

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

        auto88841389_ai = auto88841389_ai+1;
        auto2EB6B837_ai = 1;
        auto2EB6B837_ae = UserDataInstanceCount("CampaignPerk")+1;
        while (auto2EB6B837_ai < auto2EB6B837_ae) {
            lv_indexEquipment = UserDataInstance("CampaignPerk", auto2EB6B837_ai);

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

    lv_techItemIndex = 0;
    autoF251B207_ai = 1;
    autoF251B207_ae = UserDataInstanceCount("CampaignTechItem")+1;
    while (autoF251B207_ai < autoF251B207_ae) {
        lv_indexTechItem = UserDataInstance("CampaignTechItem", autoF251B207_ai);

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

    // Implementation
    autoA6D914FE_ai = 1;
    autoA6D914FE_ae = UserDataInstanceCount("CampaignTechItem")+1;
    while (autoA6D914FE_ai < autoA6D914FE_ae) {
        lv_indexTechItem = UserDataInstance("CampaignTechItem", autoA6D914FE_ai);

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

    lv_equipmentGroupIndex = 0;
    auto24839C6C_ai = 1;
    auto24839C6C_ae = UserDataInstanceCount("CampaignPerkGroup")+1;
    while (auto24839C6C_ai < auto24839C6C_ae) {
        lv_indexEquipmentGroup = UserDataInstance("CampaignPerkGroup", auto24839C6C_ai);

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

        lv_equipmentIndex = 1;
        autoCCC6D65B_ai = 1;
        autoCCC6D65B_ae = UserDataInstanceCount("CampaignPerk")+1;
        while (autoCCC6D65B_ai < autoCCC6D65B_ae) {
            lv_indexEquipment = UserDataInstance("CampaignPerk", autoCCC6D65B_ai);

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

    // Implementation
    autoAE49BCF5_ai = 1;
    autoAE49BCF5_ae = UserDataInstanceCount("CampaignTechItem")+1;
    while (autoAE49BCF5_ai < autoAE49BCF5_ae) {
        lv_indexTechItem = UserDataInstance("CampaignTechItem", autoAE49BCF5_ai);

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

    }
    autoD57CA587_ai = 1;
    autoD57CA587_ae = UserDataInstanceCount("CampaignPerk")+1;
    while (autoD57CA587_ai < autoD57CA587_ae) {
        lv_indexEquipment = UserDataInstance("CampaignPerk", autoD57CA587_ai);

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

    // Implementation
    auto1206C1A8_ai = 1;
    auto1206C1A8_ae = UserDataInstanceCount("CampaignTechItem")+1;
    while (auto1206C1A8_ai < auto1206C1A8_ae) {
        lv_indexTechItem = UserDataInstance("CampaignTechItem", auto1206C1A8_ai);

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

    }
    auto94F69BB7_ai = 1;
    auto94F69BB7_ae = UserDataInstanceCount("CampaignPerk")+1;
    while (auto94F69BB7_ai < auto94F69BB7_ae) {
        lv_indexEquipment = UserDataInstance("CampaignPerk", auto94F69BB7_ai);

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


    // Implementation
    auto19F4F4D9_ae = UserDataInstanceCount("Maps");
    auto19F4F4D9_ai = 1;
    while (auto19F4F4D9_ai <= auto19F4F4D9_ae) {

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

    libComC_gv_cC_ArmyTechBank = null;
    libComC_gf_CC_ResetCampaignData();
    autoA603B55C_ae = UserDataInstanceCount("Maps");
    autoA603B55C_ai = 1;
    while (autoA603B55C_ai <= autoA603B55C_ae) {

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

        lv_aIPlayerRaceCompositionsCount = 0;
        auto887DFF49_ai = 1;
        auto887DFF49_ae = UserDataInstanceCount("CoopAICommanders")+1;
        while (auto887DFF49_ai < auto887DFF49_ae) {
            lv_aIPersonality = UserDataInstance("CoopAICommanders", auto887DFF49_ai);

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

                    lv_unitTypePercentBase[lv_indexUnitType] += UserDataGetFixed("CoopAICommanderTiers", lv_commanderTier, "PercentOfWaveBase", lv_unitTypeIter);
                    lv_unitTypePercentRandom[lv_indexUnitType] += UserDataGetFixed("CoopAICommanderTiers", lv_commanderTier, "PercentOfWaveRandom", lv_unitTypeIter);
                    auto90F247F5_ae = UserDataInstanceCount("CoopAIAttackWaveUnitLimits");
                    lv_unitTypeLimitIter = 1;
                    for ( ; ( (auto90F247F5_ai >= 0 && lv_unitTypeLimitIter <= auto90F247F5_ae) || (auto90F247F5_ai < 0 && lv_unitTypeLimitIter >= auto90F247F5_ae) ) ; lv_unitTypeLimitIter += auto90F247F5_ai ) {