# Reset Data Conversation Lines And Choices

Grammar — Reset the line and choice state of conversation conversation
FlagsNative | Action

Resets the picked states of all choices and lines for the given conversation back to the default unread state.

# Arguments

  • string<gamelink::Conversation> — Conversation

Returns — void

native void ConversationDataResetNodeState(string convId);

Category: Conversation / Data Conversation Tools

# Examples

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

        lv_index = 1;
        for ( ; ( (auto1D6D0375_ai >= 0 && lv_index <= auto1D6D0375_ae) || (auto1D6D0375_ai < 0 && lv_index >= auto1D6D0375_ae) ) ; lv_index += auto1D6D0375_ai ) {
            ConversationDataResetNodeState(libCamp_gv_tS_Convos[lv_index]);
        }
        ConversationDataResetStateValues("ABChoice");

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

    SoundLengthQueryWait();
    ConversationDataSaveNodeState(lib281DEC45_gf_ZSS_CharacterConversation(lp_character), lib281DEC45_gf_ZSS_TempConversationBank(), ("StoryConversations"));
    ConversationDataResetNodeState(lib281DEC45_gf_ZSS_CharacterConversation(lp_character));
    ConversationDataLoadNodeState(lib281DEC45_gf_ZSS_CharacterConversation(lp_character), libSwaC_gf_StoryBank(), ("ConversationSnapshot"));
    lib281DEC45_gf_ZSS_BackupWriterStates();

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

    while (auto6DF3941C_ai < auto6DF3941C_ae) {
        lv_indexCharacter = UserDataInstance("Character", auto6DF3941C_ai);
        ConversationDataResetNodeState(lib281DEC45_gf_ZSS_CharacterConversation(lv_indexCharacter));
        ConversationDataResetNodeState(lib281DEC45_gf_ZSS_CharacterAmbientConversation(lv_indexCharacter));
        UserDataResetValue("Character", lv_indexCharacter, "Unlocked", 1);

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

        lv_indexCharacter = UserDataInstance("Character", auto6DF3941C_ai);
        ConversationDataResetNodeState(lib281DEC45_gf_ZSS_CharacterConversation(lv_indexCharacter));
        ConversationDataResetNodeState(lib281DEC45_gf_ZSS_CharacterAmbientConversation(lv_indexCharacter));
        UserDataResetValue("Character", lv_indexCharacter, "Unlocked", 1);
        auto6DF3941C_ai = auto6DF3941C_ai+1;

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

    while (auto3B640459_ai < auto3B640459_ae) {
        lv_indexCharacter = UserDataInstance("Character", auto3B640459_ai);
        ConversationDataResetNodeState(lib281DEC45_gf_ZSS_CharacterConversation(lv_indexCharacter));
        ConversationDataLoadNodeState(lib281DEC45_gf_ZSS_CharacterConversation(lv_indexCharacter), BankLastCreated(), "Conversations");
        auto3B640459_ai = auto3B640459_ai+1;

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

        if ((EventDialogControl() == lib281DEC45_gv_zSS_DebugStoryInteractiveReset[lv_index])) {
            if ((lib281DEC45_gv_zSS_DebugStoryInteractiveType[lv_index] == "Character")) {
                ConversationDataResetNodeState(lib281DEC45_gf_ZSS_CharacterConversation(lib281DEC45_gv_zSS_DebugStoryInteractiveInstance[lv_index]));
                lib281DEC45_gf_ZSS_CharacterSetAmbient(lib281DEC45_gv_zSS_DebugStoryInteractiveInstance[lv_index], false);
            }

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

    while (autoC24CAF3A_ai < autoC24CAF3A_ae) {
        lv_indexCharacter = UserDataInstance("Character", autoC24CAF3A_ai);
        ConversationDataResetNodeState(lib281DEC45_gf_ZSS_CharacterConversation(lv_indexCharacter));
        autoC24CAF3A_ai = autoC24CAF3A_ai+1;
    }

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

    // Implementation
    ConversationDataSaveNodeState(lp_conversation, libVCST_gf_PS_TempConversationBank(), ("StoryConversations"));
    ConversationDataResetNodeState(lp_conversation);
    ConversationDataLoadNodeState(lp_conversation, libVoiC_gf_StoryBank(), ("ConversationSnapshot"));
    libVCST_gf_PS_BackupSnapshotStates();

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

    while (auto3A2971A6_ai < auto3A2971A6_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto3A2971A6_ai);
        ConversationDataResetNodeState(libVCST_gf_PS_ClickableConversation(lv_indexClickable));
        ConversationDataLoadNodeState(libVCST_gf_PS_ClickableConversation(lv_indexClickable), BankLastCreated(), "Conversations");
        auto3A2971A6_ai = auto3A2971A6_ai+1;

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

    while (auto2E4312ED_ai < auto2E4312ED_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto2E4312ED_ai);
        ConversationDataResetNodeState(libVCST_gf_PS_ClickableConversation(lv_indexClickable));
        ConversationDataResetNodeState(libVCST_gf_PS_ClickableAmbientConversation(lv_indexClickable));
        UserDataResetValue("Clickable", lv_indexClickable, "Unlocked", 1);

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

        lv_indexClickable = UserDataInstance("Clickable", auto2E4312ED_ai);
        ConversationDataResetNodeState(libVCST_gf_PS_ClickableConversation(lv_indexClickable));
        ConversationDataResetNodeState(libVCST_gf_PS_ClickableAmbientConversation(lv_indexClickable));
        UserDataResetValue("Clickable", lv_indexClickable, "Unlocked", 1);
        auto2E4312ED_ai = auto2E4312ED_ai+1;

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

    // Implementation
    ConversationDataSaveNodeState(lp_conversation, libNCST_gf_NS_TempConversationBank(), ("StoryConversations"));
    ConversationDataResetNodeState(lp_conversation);
    ConversationDataLoadNodeState(lp_conversation, libComC_gf_CC_StoryBank(), ("ConversationSnapshot"));
    libNCST_gf_NS_BackupSnapshotStates();

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

    while (auto3A2971A6_ai < auto3A2971A6_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto3A2971A6_ai);
        ConversationDataResetNodeState(libNCST_gf_NS_ClickableConversation(lv_indexClickable));
        ConversationDataLoadNodeState(libNCST_gf_NS_ClickableConversation(lv_indexClickable), BankLastCreated(), "Conversations");
        auto3A2971A6_ai = auto3A2971A6_ai+1;

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

    while (auto2E4312ED_ai < auto2E4312ED_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto2E4312ED_ai);
        ConversationDataResetNodeState(libNCST_gf_NS_ClickableConversation(lv_indexClickable));
        ConversationDataResetNodeState(libNCST_gf_NS_ClickableAmbientConversation(lv_indexClickable));
        UserDataResetValue("Clickable", lv_indexClickable, "Unlocked", 1);

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

        lv_indexClickable = UserDataInstance("Clickable", auto2E4312ED_ai);
        ConversationDataResetNodeState(libNCST_gf_NS_ClickableConversation(lv_indexClickable));
        ConversationDataResetNodeState(libNCST_gf_NS_ClickableAmbientConversation(lv_indexClickable));
        UserDataResetValue("Clickable", lv_indexClickable, "Unlocked", 1);
        auto2E4312ED_ai = auto2E4312ED_ai+1;