# Save Data Conversation State Value

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

Saves a specific conversation state value to a bank section.

# Arguments

  • string<convstateindex> — State
  • bank — Bank
  • string — Section

Returns — void

native void ConversationDataSaveStateValue(
	string stateIndex,
	bank b,
	string section,
);

Category: Conversation / Data Conversation Tools

# Examples

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

    if ((libCamp_gf_StoryState(libCamp_ge_StoryStateID_StoryStateAchievementDisabled) > 0)) {
        lv__SectionName = libCamp_gf_TS_BankSectionName("StoryState");
        ConversationDataSaveStateValue("StoryState|AchievementDisabled", lp_targetBank, lv__SectionName);
    }

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

        if ((libCamp_gf_StoryState(libCamp_ge_StoryStateID_StoryStateHorner05sUnlocked) > 0)) {
            lv__SectionName = libCamp_gf_TS_BankSectionName("StoryState");
            ConversationDataSaveStateValue("StoryState|HornerSecretMissionOn", lp_targetBank, lv__SectionName);
            lv__SectionName = libCamp_gf_TS_BankSectionName("MissionAvailableAge");
            lv_availableAge = libCamp_gf_TS_LoadTransitionVarInteger(lp_targetBank, lv__SectionName, IntToString((libCamp_ge_MapID_MapTHorner05S)), 0);