# Save Data Conversation State Values

Grammar — Save the state values of conversation state to bank bank within the section section
FlagsNative | Action

Saves all state values within the given conversation state to a bank section.

# Arguments

  • string<gamelink::ConversationState> — State
  • bank — Bank
  • string — Section

Returns — void

native void ConversationDataSaveStateValues(
	string stateId,
	bank b,
	string section,
);

Category: Conversation / Data Conversation Tools

# Examples

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:9147

                autoD7277012_i = autoD7277012_i + 1;
            }
            ConversationDataSaveStateValues("MissionObjective", lp_targetBank, lv__SectionName);
            auto4289BA5C_i = libCamp_gv_TSC_OBJECTIVE_FIRST;
            while (auto4289BA5C_i <= libCamp_gv_TSC_OBJECTIVE_LAST) {

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:9267

    }
    lv__SectionName = libCamp_gf_TS_BankSectionName("ObjectiveProgress");
    ConversationDataSaveStateValues("MissionObjective", lp_targetBank, lv__SectionName);
    lv__SectionName = libCamp_gf_TS_BankSectionName("ObjectiveCreditsEarnedLastMission");
    libCamp_gf_TS_SaveTransitionVarInteger(lp_targetBank, lv__SectionName, IntToString(0), libCamp_gv_tSX_MissionObjRewardsEarnedCurrent, 0);

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:9333

    }
    lv__SectionName = libCamp_gf_TS_BankSectionName("StoryState");
    ConversationDataSaveStateValues("StoryState", lp_targetBank, lv__SectionName);
    if ((lp_saveType == libCamp_ge_TS_BankSavingType_Normal)) {
        lv__SectionName = libCamp_gf_TS_BankSectionName("ScenePlayed");

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:9343

        }
        lv__SectionName = libCamp_gf_TS_BankSectionName("SceneExtraObjects");
        ConversationDataSaveStateValues("SceneExtraObjects", lp_targetBank, lv__SectionName);
        lv__SectionName = libCamp_gf_TS_BankSectionName("NewsPlayed");
        ConversationDataSaveStateValues("StoryNews", lp_targetBank, lv__SectionName);

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:9345

        ConversationDataSaveStateValues("SceneExtraObjects", lp_targetBank, lv__SectionName);
        lv__SectionName = libCamp_gf_TS_BankSectionName("NewsPlayed");
        ConversationDataSaveStateValues("StoryNews", lp_targetBank, lv__SectionName);
        lv__SectionName = libCamp_gf_TS_BankSectionName("StoryMisc");
        libCamp_gf_TS_SaveTransitionVarString(lp_targetBank, lv__SectionName, IntToString((libCamp_ge_TS_BankStoryMiscKey_TStoryBankMiscKeyRoomStates)), libCamp_gv_tSX_RoomStates, "");

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:9355

        libCamp_gf_TS_SaveTransitionVarInteger(lp_targetBank, lv__SectionName, IntToString((libCamp_ge_TS_BankStoryMiscKey_TStoryBankMiscKeyLoadingImageChar)), libCamp_gv_tSX_LoadingImageCurrentChar, 0);
        lv__SectionName = libCamp_gf_TS_BankSectionName("Tips");
        ConversationDataSaveStateValues("StoryTips", lp_targetBank, lv__SectionName);
        lv__SectionName = libCamp_gf_TS_BankSectionName("Conversation");
        autoDB4CFAF2_ae = libCamp_gv_tS_ConvoCount;

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:9363

        }
        lv__SectionName = libCamp_gf_TS_BankSectionName("Hotspots");
        ConversationDataSaveStateValues("Hotspots", lp_targetBank, lv__SectionName);
        lv__SectionName = libCamp_gf_TS_BankSectionName("ArcadeGame");
        ConversationDataSaveStateValues("ArcadeGameVariables", lp_targetBank, lv__SectionName);

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:9365

        ConversationDataSaveStateValues("Hotspots", lp_targetBank, lv__SectionName);
        lv__SectionName = libCamp_gf_TS_BankSectionName("ArcadeGame");
        ConversationDataSaveStateValues("ArcadeGameVariables", lp_targetBank, lv__SectionName);
    }

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:9512

    libCamp_gf_TS_OpenCampaignBank();
    lv_sectionName = libCamp_gf_TS_BankSectionName("ArcadeGame");
    ConversationDataSaveStateValues("ArcadeGameVariables", BankLastCreated(), lv_sectionName);
    BankSave(BankLastCreated());
}