# User Data Instance

Grammar — User data instance index for userType
FlagsNative | Function

Returns an instance for the given user type by index. User types are defined within the Data module.

# Arguments

  • string<gamelink::User> — User Type
  • int — Index

Returns — string<userinstance>

native string UserDataInstance(string inType, int inIndex);

Category: User Data / Basic

# Examples

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

    lv_index = 1;
    for ( ; ( (auto075F95F9_ai >= 0 && lv_index <= auto075F95F9_ae) || (auto075F95F9_ai < 0 && lv_index >= auto075F95F9_ae) ) ; lv_index += auto075F95F9_ai ) {
        if ((UserDataGetGameLink("ConversationTimestamps", UserDataInstance("ConversationTimestamps", lv_index), "Conversation", 1) == lp_conversation)) {
            if ((UserDataGetInt("ConversationTimestamps", UserDataInstance("ConversationTimestamps", lv_index), "Wait", 1) == 1)) {
                libSwaC_gf_DisplayTimestamp(UserDataInstance("ConversationTimestamps", lv_index), true);

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

    for ( ; ( (auto075F95F9_ai >= 0 && lv_index <= auto075F95F9_ae) || (auto075F95F9_ai < 0 && lv_index >= auto075F95F9_ae) ) ; lv_index += auto075F95F9_ai ) {
        if ((UserDataGetGameLink("ConversationTimestamps", UserDataInstance("ConversationTimestamps", lv_index), "Conversation", 1) == lp_conversation)) {
            if ((UserDataGetInt("ConversationTimestamps", UserDataInstance("ConversationTimestamps", lv_index), "Wait", 1) == 1)) {
                libSwaC_gf_DisplayTimestamp(UserDataInstance("ConversationTimestamps", lv_index), true);
            }

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

        if ((UserDataGetGameLink("ConversationTimestamps", UserDataInstance("ConversationTimestamps", lv_index), "Conversation", 1) == lp_conversation)) {
            if ((UserDataGetInt("ConversationTimestamps", UserDataInstance("ConversationTimestamps", lv_index), "Wait", 1) == 1)) {
                libSwaC_gf_DisplayTimestamp(UserDataInstance("ConversationTimestamps", lv_index), true);
            }
            else {

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

            }
            else {
                libSwaC_gf_DisplayTimestamp(UserDataInstance("ConversationTimestamps", lv_index), false);
            }
            return ;

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

    // Automatic Variable Declarations
    // Implementation
    return UserDataGetInt("KerriganLevels", UserDataInstance("KerriganLevels", lp_kerriganLevel), "Life", 1);
}

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

    // Automatic Variable Declarations
    // Implementation
    return UserDataGetInt("KerriganLevels", UserDataInstance("KerriganLevels", lp_kerriganLevel), "Energy", 1);
}

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

    // Automatic Variable Declarations
    // Implementation
    return UserDataGetInt("KerriganLevels", UserDataInstance("KerriganLevels", lp_kerriganLevel), "Armor", 1);
}

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

    // Automatic Variable Declarations
    // Implementation
    return UserDataGetInt("KerriganLevels", UserDataInstance("KerriganLevels", lp_kerriganLevel), "Damage", 1);
}

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

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

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

    auto085E4190_ai = 1;
    while (auto085E4190_ai <= auto085E4190_ae) {
        lv_indexMission = libSwaC_gf_ZS_MapDataFromUserDataInstance(UserDataInstance("Maps", auto085E4190_ai));
        if (lv_indexMission != null && CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission") {
            lv_indexArmyCategory = libSwaC_gf_MissionArmyCategoryUnlocked(lv_indexMission);

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

    auto4FB8B176_ae = UserDataInstanceCount("Character")+1;
    while (auto4FB8B176_ai < auto4FB8B176_ae) {
        lv_character = UserDataInstance("Character", auto4FB8B176_ai);
        lv__SectionName = "CharacterUnlocked";
        UserDataSetInt("Character", lv_character, "Unlocked", 1, BankValueGetAsInt(lv_storyBank, lv__SectionName, (lv_character)));

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

        auto2DC3C7B3_ae = UserDataInstanceCount("Character")+1;
        while (auto2DC3C7B3_ai < auto2DC3C7B3_ae) {
            lv_character = UserDataInstance("Character", auto2DC3C7B3_ai);
            lv__SectionName = "CharacterUnlocked";
            lib281DEC45_gf_ZSS_CharacterSetAmbient(lv_character, !(ConversationDataCanRun(lib281DEC45_gf_ZSS_CharacterConversation(lv_character), false)));

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

    auto7E4635CA_ae = UserDataInstanceCount("Character")+1;
    while (auto7E4635CA_ai < auto7E4635CA_ae) {
        lv_character = UserDataInstance("Character", auto7E4635CA_ai);
        lv__SectionName = "CharacterUnlocked";
        BankValueSetFromInt(libSwaC_gf_StoryBank(), lv__SectionName, (lv_character), UserDataGetInt("Character", lv_character, "Unlocked", 1));

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

    auto3171AB38_ae = UserDataInstanceCount("Character")+1;
    while (auto3171AB38_ai < auto3171AB38_ae) {
        lv_indexCharacter = UserDataInstance("Character", auto3171AB38_ai);
        ConversationDataSaveNodeState(lib281DEC45_gf_ZSS_CharacterConversation(lv_indexCharacter), lp_bank, lp_section);
        ConversationDataSaveNodeState(lib281DEC45_gf_ZSS_CharacterAmbientConversation(lv_indexCharacter), lp_bank, lp_section);

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

    auto4F1F65F6_ae = UserDataInstanceCount("Character")+1;
    while (auto4F1F65F6_ai < auto4F1F65F6_ae) {
        lv_indexCharacter = UserDataInstance("Character", auto4F1F65F6_ai);
        ConversationDataLoadNodeState(lib281DEC45_gf_ZSS_CharacterConversation(lv_indexCharacter), lp_bank, lp_section);
        ConversationDataLoadNodeState(lib281DEC45_gf_ZSS_CharacterAmbientConversation(lv_indexCharacter), lp_bank, lp_section);

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

    lv_index = 1;
    for ( ; ( (autoA64B39DA_ai >= 0 && lv_index <= autoA64B39DA_ae) || (autoA64B39DA_ai <= 0 && lv_index >= autoA64B39DA_ae) ) ; lv_index += autoA64B39DA_ai ) {
        lv_indexState = UserDataInstance("WriterStates", lv_index);
        if ((UserDataGetInt("WriterStates", lv_indexState, "Value", 1) == BankValueGetAsInt(libSwaC_gf_StoryBank(), ("WriterStateSnapshot"), (lv_indexState)))) {
            UserDataLoadInstance("WriterStates", lv_indexState, lib281DEC45_gf_ZSS_TempConversationBank(), ("WriterStates"));

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

    auto7D6EB66D_ae = UserDataInstanceCount("Character")+1;
    while (auto7D6EB66D_ai < auto7D6EB66D_ae) {
        lv_indexCharacter = UserDataInstance("Character", auto7D6EB66D_ai);
        if ((lib281DEC45_gf_CharacterKnown(lv_indexCharacter) == true)) {
            if ((ConversationDataCanRun(lib281DEC45_gf_ZSS_CharacterConversation(lv_indexCharacter), false) == false)) {

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

        lv_index = 1;
        for ( ; ( (auto2749AB36_ai >= 0 && lv_index <= auto2749AB36_ae) || (auto2749AB36_ai <= 0 && lv_index >= auto2749AB36_ae) ) ; lv_index += auto2749AB36_ai ) {
            lv_indexScene = UserDataInstance("ScriptedScenes", lv_index);
            if ((UserDataGetString("ScriptedScenes", lv_indexScene, "Type", 1) == lib281DEC45_gv_zSS_DebugStorySceneTypes[DialogControlGetSelectedItem(lib281DEC45_gv_zSS_DebugStoryTypeList, 1)])) {
                DialogControlAddItem(lib281DEC45_gv_zSS_DebugStorySceneList, PlayerGroupAll(), StringToText(UserDataGetString("ScriptedScenes", lv_indexScene, "DisplayName", 1)));

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/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:2336

    }
    else {
        libNtve_gf_SetDialogItemEditorValue(lib281DEC45_gv_zSS_DebugStoryStateEditBox, IntToString(UserDataGetInt("WriterStates", UserDataInstance("WriterStates", DialogControlGetSelectedItem(lib281DEC45_gv_zSS_DebugStoryStateList, 1)), "Value", 1)), PlayerGroupAll());
    }
    auto278E2963_ae = lib281DEC45_gv_zSS_DebugStoryInteractiveCount;

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

    autoB586D847_ae = UserDataInstanceCount("CampaignPerk")+1;
    while (autoB586D847_ai < autoB586D847_ae) {    
        lv_indexPower = UserDataInstance("CampaignPerk", autoB586D847_ai);
        autoB586D847_ai = autoB586D847_ai+1;
        if( libVoiC_gf_PC_PerkGroupOfPerk(lv_indexPower) == lp_powerSlot ) {

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

    auto85715C34_ae = UserDataInstanceCount("CampaignPerkGroup")+1;
    while (auto85715C34_ai < auto85715C34_ae) {
        lv_indexType = UserDataInstance("CampaignPerkGroup", auto85715C34_ai);
        auto85715C34_ai = auto85715C34_ai+1;
        if ((lv_indexType != "GPType3") && (lv_indexType != "GPType5")) {

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

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

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

    autoB586D847_ae = UserDataInstanceCount("CampaignPerk")+1;
    while (autoB586D847_ai < autoB586D847_ae) {    
        lv_indexPower = UserDataInstance("CampaignPerk", autoB586D847_ai);
        autoB586D847_ai = autoB586D847_ai+1;
        if( libVoiC_gf_PC_PerkGroupOfPerk(lv_indexPower) == lp_powerSlot ) {

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

    auto85715C34_ae = UserDataInstanceCount("CampaignPerkGroup")+1;
    while (auto85715C34_ai < auto85715C34_ae) {
        lv_indexType = UserDataInstance("CampaignPerkGroup", auto85715C34_ai);
        auto85715C34_ai = auto85715C34_ai+1;
        if ((lv_indexType != "GPType3") && (lv_indexType != "GPType5")) {

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

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

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

    auto13D0B222_ai = 1;
    while (auto13D0B222_ai <= auto13D0B222_ae) {
        lv_indexMission = libVoiC_gf_PC_MapDataFromUserDataInstance(UserDataInstance("Maps", auto13D0B222_ai));
        if (lv_indexMission != null && CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission") {
            lv_indexArmyCategory = libVoiC_gf_MissionArmyCategoryUnlocked(lv_indexMission);

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

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

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

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

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

        auto125AB858_ae = UserDataInstanceCount("CampaignPerk")+1;
        while (auto125AB858_ai < auto125AB858_ae) {    
            lv_currentPower = UserDataInstance("CampaignPerk", auto125AB858_ai);
            auto125AB858_ai = auto125AB858_ai+1;
            if( libVoiC_gf_PC_PerkGroupOfPerk(lv_currentPower) == libVoiC_gv_pC_DebugCampaignTechSoAPowerType[lv_powerTypeIndex] ) {

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

        auto4718CF27_ae = UserDataInstanceCount("CampaignPerk")+1;
        while (auto4718CF27_ai < auto4718CF27_ae) {    
            lv_indexPerk = UserDataInstance("CampaignPerk", auto4718CF27_ai);
            auto4718CF27_ai = auto4718CF27_ai+1;
            if( libVoiC_gf_PC_PerkGroupOfPerk(lv_indexPerk) == libVoiC_gv_pC_DebugCampaignTechSoAPowerType[lv_groupIndex] ) {

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

    auto4BF17532_ai = 1;
    while (auto4BF17532_ai <= auto4BF17532_ae) {
        lv_indexMission = libVoiC_gf_PC_MapDataFromUserDataInstance(UserDataInstance("Maps", auto4BF17532_ai));
        if (lv_indexMission != null && CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission") {
            if ((lv_indexMission == lp_mission)) {

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

    autoF9C1F36E_ai = 1;
    while (autoF9C1F36E_ai <= autoF9C1F36E_ae) {
        lv_indexMission = libVoiC_gf_PC_MapDataFromUserDataInstance(UserDataInstance("Maps", autoF9C1F36E_ai));
        if (lv_indexMission != null && CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission") {
            lv_indexArc = libVoiC_gf_StoryMapPlanet(lv_indexMission);

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

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

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

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

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

            autoC368E7AC_ae = UserDataInstanceCount("CampaignPerk")+1;
            while (autoC368E7AC_ai < autoC368E7AC_ae) {    
                lv_indexPerk = UserDataInstance("CampaignPerk", autoC368E7AC_ai);
                autoC368E7AC_ai = autoC368E7AC_ai+1;
                if( libVoiC_gf_PC_PerkGroupOfPerk(lv_indexPerk) == lv_indexPerkGroup ) {

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

        autoD89F2D02_ae = UserDataInstanceCount("CampaignPerk")+1;
        while (autoD89F2D02_ai < autoD89F2D02_ae) {
            lv_indexPerk = UserDataInstance("CampaignPerk", autoD89F2D02_ai);
            autoD89F2D02_ai = autoD89F2D02_ai+1;
            if ((libVoiC_gf_PC_PerkStateCheck(lv_indexPerk, libVoiC_ge_PC_PerkState_Active) == true)) {

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

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

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

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

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

    autoAFC1BA1E_ae = UserDataInstanceCount("CampaignPerk")+1;
    while (autoAFC1BA1E_ai < autoAFC1BA1E_ae) {
        lv_indexPerk = UserDataInstance("CampaignPerk", autoAFC1BA1E_ai);
        autoAFC1BA1E_ai = autoAFC1BA1E_ai+1;
        if ((libVoiC_gf_PC_PerkStateCheck(lv_indexPerk, libVoiC_ge_PC_PerkState_Active) == true)) {

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

    lv_index = 1;
    for ( ; ( (auto88925A07_ai >= 0 && lv_index <= auto88925A07_ae) || (auto88925A07_ai < 0 && lv_index >= auto88925A07_ae) ) ; lv_index += auto88925A07_ai ) {
        lv_indexScene = UserDataInstance("Scenes", lv_index);
        libVCST_gf_PS_DebugStoryAddListItem((lv_indexScene), lv_indexScene, "Scenes");
    }

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

    lv_index = 1;
    for ( ; ( (auto34730C5A_ai >= 0 && lv_index <= auto34730C5A_ae) || (auto34730C5A_ai < 0 && lv_index >= auto34730C5A_ae) ) ; lv_index += auto34730C5A_ai ) {
        lv_indexConvo = UserDataInstance("Conversations", lv_index);
        libVCST_gf_PS_DebugStoryAddListItem(("(Conv) " + UserDataGetString("Conversations", lv_indexConvo, "Name", 1)), lv_indexConvo, "Conversations");
    }

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

    auto792D16C3_ae = UserDataInstanceCount("Clickable")+1;
    while (auto792D16C3_ai < auto792D16C3_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto792D16C3_ai);
        lv__SectionName = "ClickableType";
        if ((libVCST_gf_PS_ClickableType(lv_indexClickable) != libVCST_ge_ClickableType_RoomChange) && (libVCST_gf_PS_ClickableType(lv_indexClickable) != libVCST_ge_ClickableType_Custom)) {

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

    auto741B8B93_ae = UserDataInstanceCount("Clickable")+1;
    while (auto741B8B93_ai < auto741B8B93_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto741B8B93_ai);
        lv__SectionName = "ClickableType";
        BankValueSetFromInt(lv_storyBank, lv__SectionName, (lv_indexClickable), UserDataGetInt("Clickable", lv_indexClickable, "Type", 1));

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

    auto67314A6A_ae = UserDataInstanceCount("Clickable")+1;
    while (auto67314A6A_ai < auto67314A6A_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto67314A6A_ai);
        ConversationDataSaveNodeState(libVCST_gf_PS_ClickableConversation(lv_indexClickable), lp_bank, lp_section);
        ConversationDataSaveNodeState(libVCST_gf_PS_ClickableAmbientConversation(lv_indexClickable), lp_bank, lp_section);

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

    auto2104D7CD_ae = UserDataInstanceCount("Clickable")+1;
    while (auto2104D7CD_ai < auto2104D7CD_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto2104D7CD_ai);
        ConversationDataLoadNodeState(libVCST_gf_PS_ClickableConversation(lv_indexClickable), lp_bank, lp_section);
        ConversationDataLoadNodeState(libVCST_gf_PS_ClickableAmbientConversation(lv_indexClickable), lp_bank, lp_section);

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

    lv_stateIndex = 1;
    for ( ; ( (auto2637DB5C_ai >= 0 && lv_stateIndex <= auto2637DB5C_ae) || (auto2637DB5C_ai < 0 && lv_stateIndex >= auto2637DB5C_ae) ) ; lv_stateIndex += auto2637DB5C_ai ) {
        lv_indexState = UserDataInstance("WriterStates", lv_stateIndex);
        if ((UserDataGetInt("StoryStates", lv_indexState, "Snapshot", 1) == 1)) {
            lv_newValue = UserDataGetInt("StoryStates", lv_indexState, "Value", 1);

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

    lv_stateIndex = 1;
    for ( ; ( (auto36AC1F96_ai >= 0 && lv_stateIndex <= auto36AC1F96_ae) || (auto36AC1F96_ai < 0 && lv_stateIndex >= auto36AC1F96_ae) ) ; lv_stateIndex += auto36AC1F96_ai ) {
        lv_indexState = UserDataInstance("StoryStates", lv_stateIndex);
        if ((UserDataGetInt("StoryStates", lv_indexState, "Snapshot", 1) == 1)) {
            UserDataSaveInstance("StoryStates", lv_indexState, libVCST_gf_PS_TempConversationBank(), ("WriterStates"));

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

    lv_stateIndex = 1;
    for ( ; ( (auto6F9608EF_ai >= 0 && lv_stateIndex <= auto6F9608EF_ae) || (auto6F9608EF_ai < 0 && lv_stateIndex >= auto6F9608EF_ae) ) ; lv_stateIndex += auto6F9608EF_ai ) {
        lv_indexState = UserDataInstance("StoryStates", lv_stateIndex);
        if ((UserDataGetInt("StoryStates", lv_indexState, "Snapshot", 1) == 1)) {
            UserDataSaveInstance("StoryStates", lv_indexState, libVoiC_gf_StoryBank(), ("WriterStateSnapshot"));

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

    lv_stateIndex = 1;
    for ( ; ( (auto39AB0444_ai >= 0 && lv_stateIndex <= auto39AB0444_ae) || (auto39AB0444_ai < 0 && lv_stateIndex >= auto39AB0444_ae) ) ; lv_stateIndex += auto39AB0444_ai ) {
        lv_indexState = UserDataInstance("StoryStates", lv_stateIndex);
        if ((UserDataGetInt("StoryStates", lv_indexState, "Snapshot", 1) == 1)) {
            UserDataLoadInstance("StoryStates", lv_indexState, libVoiC_gf_StoryBank(), ("WriterStateSnapshot"));

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

    lv_clickableIndex = 1;
    for ( ; ( (autoE665DE91_ai >= 0 && lv_clickableIndex <= autoE665DE91_ae) || (autoE665DE91_ai < 0 && lv_clickableIndex >= autoE665DE91_ae) ) ; lv_clickableIndex += autoE665DE91_ai ) {
        if ((((libVoiC_gf_PC_ClickableConversationLink(UserDataInstance("Clickable", lv_clickableIndex)) == "char_Artanis") && (lp_mission != "PMoebius01") && (lp_mission != "PAiur02") && (lp_mission != "SC2Epilogue02") && (lp_mission != "SC2Epilogue03")) || ((libVoiC_gf_PC_ClickableConversationLink(UserDataInstance("Clickable", lv_clickableIndex)) == "char_Smith") && (lp_mission == "PMoebius01")))) {
            ConversationDataRegisterPortrait(libVoiC_gf_PC_ClickableConversationLink(UserDataInstance("Clickable", lv_clickableIndex)), c_invalidPortraitId);
        }

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

    lv_clickableIndex = 1;
    for ( ; ( (autoE665DE91_ai >= 0 && lv_clickableIndex <= autoE665DE91_ae) || (autoE665DE91_ai < 0 && lv_clickableIndex >= autoE665DE91_ae) ) ; lv_clickableIndex += autoE665DE91_ai ) {
        if ((((libVoiC_gf_PC_ClickableConversationLink(UserDataInstance("Clickable", lv_clickableIndex)) == "char_Artanis") && (lp_mission != "PMoebius01") && (lp_mission != "PAiur02") && (lp_mission != "SC2Epilogue02") && (lp_mission != "SC2Epilogue03")) || ((libVoiC_gf_PC_ClickableConversationLink(UserDataInstance("Clickable", lv_clickableIndex)) == "char_Smith") && (lp_mission == "PMoebius01")))) {
            ConversationDataRegisterPortrait(libVoiC_gf_PC_ClickableConversationLink(UserDataInstance("Clickable", lv_clickableIndex)), c_invalidPortraitId);
        }

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

    for ( ; ( (autoE665DE91_ai >= 0 && lv_clickableIndex <= autoE665DE91_ae) || (autoE665DE91_ai < 0 && lv_clickableIndex >= autoE665DE91_ae) ) ; lv_clickableIndex += autoE665DE91_ai ) {
        if ((((libVoiC_gf_PC_ClickableConversationLink(UserDataInstance("Clickable", lv_clickableIndex)) == "char_Artanis") && (lp_mission != "PMoebius01") && (lp_mission != "PAiur02") && (lp_mission != "SC2Epilogue02") && (lp_mission != "SC2Epilogue03")) || ((libVoiC_gf_PC_ClickableConversationLink(UserDataInstance("Clickable", lv_clickableIndex)) == "char_Smith") && (lp_mission == "PMoebius01")))) {
            ConversationDataRegisterPortrait(libVoiC_gf_PC_ClickableConversationLink(UserDataInstance("Clickable", lv_clickableIndex)), c_invalidPortraitId);
        }
        else {

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

        }
        else {
            ConversationDataRegisterPortrait(libVoiC_gf_PC_ClickableConversationLink(UserDataInstance("Clickable", lv_clickableIndex)), PortraitGetTriggerControl(libVCUI_gv_pU_MissionPortraitFrame));
        }
        ConversationDataRegisterUnit(libVoiC_gf_PC_ClickableConversationLink(UserDataInstance("Clickable", lv_clickableIndex)), null);

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

            ConversationDataRegisterPortrait(libVoiC_gf_PC_ClickableConversationLink(UserDataInstance("Clickable", lv_clickableIndex)), PortraitGetTriggerControl(libVCUI_gv_pU_MissionPortraitFrame));
        }
        ConversationDataRegisterUnit(libVoiC_gf_PC_ClickableConversationLink(UserDataInstance("Clickable", lv_clickableIndex)), null);
    }
    if ((libVCUI_gv_pU_Mission2DBackground != c_invalidDialogControlId)) {

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

    autoF43AEDEA_ae = UserDataInstanceCount("SpearofAdunUpgrade")+1;
    while (autoF43AEDEA_ai < autoF43AEDEA_ae) {
        lv_indexUpgrade = UserDataInstance("SpearofAdunUpgrade", autoF43AEDEA_ai);
        autoF43AEDEA_ai = autoF43AEDEA_ai+1;
        if ((libVoiC_gf_PC_SoAUpgradeSlotUnlocked(lv_indexUpgrade) == false)) {

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

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

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

        auto52E4901E_ae = UserDataInstanceCount("CampaignPerk")+1;
        while (auto52E4901E_ai < auto52E4901E_ae) {    
            lv_indexPerk = UserDataInstance("CampaignPerk", auto52E4901E_ai);
            auto52E4901E_ai = auto52E4901E_ai+1;
            if( libVoiC_gf_PC_PerkGroupOfPerk(lv_indexPerk) == lv_indexGroup ) {

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

    auto8B731360_ae = UserDataInstanceCount("Clickable")+1;
    while (auto8B731360_ai < auto8B731360_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto8B731360_ai);
        ConversationDataRegisterPortrait(libVoiC_gf_PC_ClickableConversationLink(lv_indexClickable), lp_portrait);
        ConversationDataRegisterUnit(libVoiC_gf_PC_ClickableConversationLink(lv_indexClickable), null);

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

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

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

    lv_index = 1;
    for ( ; ( (autoD00D9D69_ai >= 0 && lv_index <= autoD00D9D69_ae) || (autoD00D9D69_ai < 0 && lv_index >= autoD00D9D69_ae) ) ; lv_index += autoD00D9D69_ai ) {
        if ((UserDataInstance(lp_userType, lv_index) == lp_instance)) {
            return lv_index;
        }

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

    lv_i = 1;
    for ( ; ( (auto65AE22CB_ai >= 0 && lv_i <= auto65AE22CB_ae) || (auto65AE22CB_ai < 0 && lv_i >= auto65AE22CB_ae) ) ; lv_i += auto65AE22CB_ai ) {
        lv_instance = UserDataInstance(libGame_gv_wheelCmdUserType, lv_i);
        lv_pingIndex = UserDataGetInt(libGame_gv_wheelCmdUserType, lv_instance, "PingIndex", 1);
        lv_cmd = UserDataGetAbilCmd("TheWheelOfCommand", lv_instance, "Command", 1);

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

    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));
        lv_itEnd = StringToDateTime(UserDataGetString(libLbty_gv_starCraftEventsEventTable, lv_itInstance, "End", 1));

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

    autoEE21E2F4_ai = 1;
    while (autoEE21E2F4_ai <= autoEE21E2F4_ae) {
        lv_indexMision = libComC_gf_CC_MapDataFromUserDataInstance(UserDataInstance("Maps", autoEE21E2F4_ai));
        if (lv_indexMision != null && CatalogFieldValueGet(c_gameCatalogMap, lv_indexMision, "Kind", 1) == "Mission" && libComC_gf_CC_MapInternal(lv_indexMision) == false ) {
            if ((libComC_gf_MissionStatusCheck(lv_indexMision, libComC_ge_MissionStatus_Completed) == true)) {

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

        lv_index = 1;
        for ( ; ( (auto6FC17B41_ai >= 0 && lv_index <= auto6FC17B41_ae) || (auto6FC17B41_ai <= 0 && lv_index >= auto6FC17B41_ae) ) ; lv_index += auto6FC17B41_ai ) {
            if ((UserDataInstance("MissionObjective", lv_index) == lv_objectiveInstance)) {
                DataTableSetInt(true, ("PObjIndex_" + (lp_objective)), lv_index);
                break;

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

    }
    else {
        lv_objectiveInstance = UserDataInstance("MissionObjective", lv_index);
    }
    return lv_objectiveInstance;

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

    lv_index = 1;
    for ( ; ( (auto2A108C07_ai >= 0 && lv_index <= auto2A108C07_ae) || (auto2A108C07_ai <= 0 && lv_index >= auto2A108C07_ae) ) ; lv_index += auto2A108C07_ai ) {
        lv_convoTimestamp = UserDataInstance("Timestamps", lv_index);
        if ((UserDataGetGameLink("Timestamps", lv_convoTimestamp, "Conversation", 1) == lp_conversation)) {
            if ((UserDataGetInt("Timestamps", lv_convoTimestamp, "Wait", 1) == 1)) {

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

    lv_index = 1;
    for ( ; ( (autoF75EEEC7_ai >= 0 && lv_index <= autoF75EEEC7_ae) || (autoF75EEEC7_ai <= 0 && lv_index >= autoF75EEEC7_ae) ) ; lv_index += autoF75EEEC7_ai ) {
        lv_sceneTimestamp = UserDataInstance("Timestamps", lv_index);
        if ((UserDataGetUserInstance("Timestamps", lv_sceneTimestamp, "Scene", 1) == lp_scene)) {
            if ((UserDataGetInt("Timestamps", lv_sceneTimestamp, "FromBookmark", 1) == 1) && (lp_fromBookmark == false)) {

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

    auto1802D124_ae = UserDataInstanceCount("CampaignPerk")+1;
    while (auto1802D124_ai < auto1802D124_ae) {
        lv_indexPerk = UserDataInstance("CampaignPerk", auto1802D124_ai);
        auto1802D124_ai = auto1802D124_ai+1;
        if( libComC_gf_CC_PerkGroupOfPerk(lv_indexPerk) == lp_perkGroup ) {

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

    auto3E2E736C_ae = UserDataInstanceCount("CampaignPerk")+1;
    while (auto3E2E736C_ai < auto3E2E736C_ae) {
        lv_indexPerk = UserDataInstance("CampaignPerk", auto3E2E736C_ai);
        auto3E2E736C_ai = auto3E2E736C_ai+1;
        libComC_gf_CC_PerkEnableDisable(false, lv_indexPerk, lp_player);

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

    auto25F557A7_ae = UserDataInstanceCount("CampaignPerk")+1;
    while (auto25F557A7_ai < auto25F557A7_ae) {
        lv_indexPerk = UserDataInstance("CampaignPerk", auto25F557A7_ai);
        auto25F557A7_ai = auto25F557A7_ai+1;
        if ((libComC_gf_CC_PerkStateCheck(lv_indexPerk, libComC_ge_CC_PerkState_Active) == true)) {

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

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

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

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

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

    auto8C73AC62_ae = UserDataInstanceCount("CampaignPerk")+1;
    while (auto8C73AC62_ai < auto8C73AC62_ae) {
        lv_indexEquipment = UserDataInstance("CampaignPerk", auto8C73AC62_ai);
        auto8C73AC62_ai = auto8C73AC62_ai+1;
        if ((libComC_gf_CC_PerkStateCheck(lv_indexEquipment, libComC_ge_CC_PerkState_Missed) == true)) {

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

    auto833582E7_ae = UserDataInstanceCount("CampaignPerk")+1;
    while (auto833582E7_ai < auto833582E7_ae) {
        lv_indexPerk = UserDataInstance("CampaignPerk", auto833582E7_ai);
        auto833582E7_ai = auto833582E7_ai+1;
        if ((libComC_gf_CC_PerkStateCheck(lv_indexPerk, libComC_ge_CC_PerkState_Active) == false) && (libComC_gf_CC_PerkStateCheck(lv_indexPerk, libComC_ge_CC_PerkState_Unlocked) == true)) {

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

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

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

    lv_index = 1;
    for ( ; ( (auto88925A07_ai >= 0 && lv_index <= auto88925A07_ae) || (auto88925A07_ai <= 0 && lv_index >= auto88925A07_ae) ) ; lv_index += auto88925A07_ai ) {
        lv_indexScene = UserDataInstance("Scenes", lv_index);
        libNCST_gf_NS_DebugStoryAddListItem((lv_indexScene), lv_indexScene, "Scenes");
    }

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

    lv_index = 1;
    for ( ; ( (auto34730C5A_ai >= 0 && lv_index <= auto34730C5A_ae) || (auto34730C5A_ai <= 0 && lv_index >= auto34730C5A_ae) ) ; lv_index += auto34730C5A_ai ) {
        lv_indexConvo = UserDataInstance("Conversations", lv_index);
        libNCST_gf_NS_DebugStoryAddListItem(("(Conv) " + UserDataGetString("Conversations", lv_indexConvo, "Name", 1)), lv_indexConvo, "Conversations");
    }

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

    auto792D16C3_ae = UserDataInstanceCount("Clickable")+1;
    while (auto792D16C3_ai < auto792D16C3_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto792D16C3_ai);
        lv__SectionName = "ClickableType";
        if ((libNCST_gf_NS_ClickableType(lv_indexClickable) != libNCST_ge_ClickableType_RoomChange) && (libNCST_gf_NS_ClickableType(lv_indexClickable) != libNCST_ge_ClickableType_Custom)) {

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

    auto741B8B93_ae = UserDataInstanceCount("Clickable")+1;
    while (auto741B8B93_ai < auto741B8B93_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto741B8B93_ai);
        lv__SectionName = "ClickableType";
        BankValueSetFromInt(lv_storyBank, lv__SectionName, (lv_indexClickable), UserDataGetInt("Clickable", lv_indexClickable, "Type", 1));

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

    auto67314A6A_ae = UserDataInstanceCount("Clickable")+1;
    while (auto67314A6A_ai < auto67314A6A_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto67314A6A_ai);
        ConversationDataSaveNodeState(libNCST_gf_NS_ClickableConversation(lv_indexClickable), lp_bank, lp_section);
        ConversationDataSaveNodeState(libNCST_gf_NS_ClickableAmbientConversation(lv_indexClickable), lp_bank, lp_section);

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

    auto2104D7CD_ae = UserDataInstanceCount("Clickable")+1;
    while (auto2104D7CD_ai < auto2104D7CD_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto2104D7CD_ai);
        ConversationDataLoadNodeState(libNCST_gf_NS_ClickableConversation(lv_indexClickable), lp_bank, lp_section);
        ConversationDataLoadNodeState(libNCST_gf_NS_ClickableAmbientConversation(lv_indexClickable), lp_bank, lp_section);

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

    lv_stateIndex = 1;
    for ( ; ( (auto2637DB5C_ai >= 0 && lv_stateIndex <= auto2637DB5C_ae) || (auto2637DB5C_ai <= 0 && lv_stateIndex >= auto2637DB5C_ae) ) ; lv_stateIndex += auto2637DB5C_ai ) {
        lv_indexState = UserDataInstance("WriterStates", lv_stateIndex);
        if ((UserDataGetInt("StoryStates", lv_indexState, "Snapshot", 1) == 1)) {
            lv_newValue = UserDataGetInt("StoryStates", lv_indexState, "Value", 1);

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

    lv_stateIndex = 1;
    for ( ; ( (auto36AC1F96_ai >= 0 && lv_stateIndex <= auto36AC1F96_ae) || (auto36AC1F96_ai <= 0 && lv_stateIndex >= auto36AC1F96_ae) ) ; lv_stateIndex += auto36AC1F96_ai ) {
        lv_indexState = UserDataInstance("StoryStates", lv_stateIndex);
        if ((UserDataGetInt("StoryStates", lv_indexState, "Snapshot", 1) == 1)) {
            UserDataSaveInstance("StoryStates", lv_indexState, libNCST_gf_NS_TempConversationBank(), ("WriterStates"));

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

    lv_stateIndex = 1;
    for ( ; ( (auto6F9608EF_ai >= 0 && lv_stateIndex <= auto6F9608EF_ae) || (auto6F9608EF_ai <= 0 && lv_stateIndex >= auto6F9608EF_ae) ) ; lv_stateIndex += auto6F9608EF_ai ) {
        lv_indexState = UserDataInstance("StoryStates", lv_stateIndex);
        if ((UserDataGetInt("StoryStates", lv_indexState, "Snapshot", 1) == 1)) {
            UserDataSaveInstance("StoryStates", lv_indexState, libComC_gf_CC_StoryBank(), ("WriterStateSnapshot"));

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

    lv_stateIndex = 1;
    for ( ; ( (auto39AB0444_ai >= 0 && lv_stateIndex <= auto39AB0444_ae) || (auto39AB0444_ai <= 0 && lv_stateIndex >= auto39AB0444_ae) ) ; lv_stateIndex += auto39AB0444_ai ) {
        lv_indexState = UserDataInstance("StoryStates", lv_stateIndex);
        if ((UserDataGetInt("StoryStates", lv_indexState, "Snapshot", 1) == 1)) {
            UserDataLoadInstance("StoryStates", lv_indexState, libComC_gf_CC_StoryBank(), ("WriterStateSnapshot"));

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

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

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

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

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

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

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

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

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

    auto8B731360_ae = UserDataInstanceCount("Clickable")+1;
    while (auto8B731360_ai < auto8B731360_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto8B731360_ai);
        ConversationDataRegisterPortrait(libNovC_gf_NC_ClickableConversationLink(lv_indexClickable), lp_portrait);
        ConversationDataRegisterUnit(libNovC_gf_NC_ClickableConversationLink(lv_indexClickable), null);

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

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

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

            auto808FC461_ae = UserDataInstanceCount("CampaignTechItem")+1;
            while (auto808FC461_ai < auto808FC461_ae) {
                lv_indexTechItem = UserDataInstance("CampaignTechItem", auto808FC461_ai);
                auto808FC461_ai = auto808FC461_ai+1;
                if (((libNovC_gf_NC_ArmyTechItemStateCheck(lv_indexTechItem, libNovC_ge_NC_ArmyTechItemState_Unlocked) == true) || (libNovC_gf_NC_ArmyTechItemStateCheck(lv_indexTechItem, libNovC_ge_NC_ArmyTechItemState_Missed) == true))) {

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

    auto02DE18CB_ae = UserDataInstanceCount("CampaignPerk")+1;
    while (auto02DE18CB_ai < auto02DE18CB_ae) {
        lv_indexEquipment = UserDataInstance("CampaignPerk", auto02DE18CB_ai);
        auto02DE18CB_ai = auto02DE18CB_ai+1;
        if ((libComC_gf_CC_PerkStateCheck(lv_indexEquipment, libComC_ge_CC_PerkState_Locked) != true) && (libComC_gf_CC_PerkStateCheck(lv_indexEquipment, libComC_ge_CC_PerkState_Missed) != true)) {

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

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

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

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

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

    autoF251B207_ae = UserDataInstanceCount("CampaignTechItem")+1;
    while (autoF251B207_ai < autoF251B207_ae) {
        lv_indexTechItem = UserDataInstance("CampaignTechItem", autoF251B207_ai);
        autoF251B207_ai = autoF251B207_ai+1;
        lv_x = (160 + (210 * ModI(lv_techItemIndex, 5)));

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

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

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

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

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

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