# Data Conversation Can Be Run

Grammarconversation conversation can be run, checking unpickedOnly|All/Only Unpicked lines and choices
FlagsNative | Function

Returns true if the conversation has any active lines or choices to be run using the current state.

# Arguments

  • string<gamelink::Conversation> — Conversation
  • bool<preset::UnpickedOnlyOption> — Unpicked Only

Returns — bool

native bool ConversationDataCanRun(
	string convId,
	bool unpickedOnly,
);

Category: Conversation / Data Conversation Tools

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:5360

    else {
    }
    if ((ConversationDataCanRun(lv_convo, false) == false)) {
        lv_convo = null;
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:9538

    // Implementation
    lv_convo = gf_ActorConversation(lp_actor);
    if (((lv_convo == null) || (ConversationDataCanRun(lv_convo, true) == false))) {
        gf_LoadActorComplexAnimation(lp_actor);
        return ;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:15643

    }

    if ((ConversationDataCanRun("Valerian", true) == true)) {
        ConversationDataStateSetValue("Hotspots|BridgeCommunicator", 0);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:16359

    gv_labDoor = UnitFromId(205);
    gv_labStageLight = UnitFromId(519);
    if ((ConversationDataCanRun("LabFidgetsArtifact", true) == true)) {
        gv_labArtifactsClickable = true;
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:5360

    else {
    }
    if ((ConversationDataCanRun(lv_convo, false) == false)) {
        lv_convo = null;
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:9538

    // Implementation
    lv_convo = gf_ActorConversation(lp_actor);
    if (((lv_convo == null) || (ConversationDataCanRun(lv_convo, true) == false))) {
        gf_LoadActorComplexAnimation(lp_actor);
        return ;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:15643

    }

    if ((ConversationDataCanRun("Valerian", true) == true)) {
        ConversationDataStateSetValue("Hotspots|BridgeCommunicator", 0);
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:16359

    gv_labDoor = UnitFromId(205);
    gv_labStageLight = UnitFromId(519);
    if ((ConversationDataCanRun("LabFidgetsArtifact", true) == true)) {
        gv_labArtifactsClickable = true;
    }

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

            lv_character = UserDataInstance("Character", auto2DC3C7B3_ai);
            lv__SectionName = "CharacterUnlocked";
            lib281DEC45_gf_ZSS_CharacterSetAmbient(lv_character, !(ConversationDataCanRun(lib281DEC45_gf_ZSS_CharacterConversation(lv_character), false)));
            lib281DEC45_gf_SetCharacterNew(lv_character, ConversationDataCanRun(lib281DEC45_gf_ZSS_CharacterConversation(lv_character), true));
            UserDataSetInt("Character", lv_character, "Unlocked", 1, BankValueGetAsInt(lv_storyBank, lv__SectionName, (lv_character)));

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

            lv__SectionName = "CharacterUnlocked";
            lib281DEC45_gf_ZSS_CharacterSetAmbient(lv_character, !(ConversationDataCanRun(lib281DEC45_gf_ZSS_CharacterConversation(lv_character), false)));
            lib281DEC45_gf_SetCharacterNew(lv_character, ConversationDataCanRun(lib281DEC45_gf_ZSS_CharacterConversation(lv_character), true));
            UserDataSetInt("Character", lv_character, "Unlocked", 1, BankValueGetAsInt(lv_storyBank, lv__SectionName, (lv_character)));
            auto2DC3C7B3_ai = auto2DC3C7B3_ai+1;

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

        lv_indexCharacter = UserDataInstance("Character", auto7D6EB66D_ai);
        if ((lib281DEC45_gf_CharacterKnown(lv_indexCharacter) == true)) {
            if ((ConversationDataCanRun(lib281DEC45_gf_ZSS_CharacterConversation(lv_indexCharacter), false) == false)) {
                ConversationDataSimulateRun(lib281DEC45_gf_ZSS_CharacterAmbientConversation(lv_indexCharacter));
            }

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

    lv_index = 1;
    for ( ; ( (auto278E2963_ai >= 0 && lv_index <= auto278E2963_ae) || (auto278E2963_ai <= 0 && lv_index >= auto278E2963_ae) ) ; lv_index += auto278E2963_ai ) {
        if ((lib281DEC45_gv_zSS_DebugStoryInteractiveType[lv_index] == "Character") && ((lib281DEC45_gf_ZSS_CharacterIsAmbient(lib281DEC45_gv_zSS_DebugStoryInteractiveInstance[lv_index]) == true) || (ConversationDataCanRun(lib281DEC45_gf_ZSS_CharacterConversation(lib281DEC45_gv_zSS_DebugStoryInteractiveInstance[lv_index]), false) == false))) {
            libNtve_gf_SetDialogItemChecked(lib281DEC45_gv_zSS_DebugStoryAmbientCheckbox[lv_index], true, PlayerGroupAll());
        }

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

    autoED65E9FB_val = lp_targetRoom;
    if (autoED65E9FB_val == lib281DEC45_ge_Rooms_StoryRoomEggRoom) {
        if ((ConversationDataCanRun("zScripted_EvolutionMaster_First", true) == true) && (UserDataGetInt("StoryStates", "Army UI Visited", "value", 1) == 0)) {
            lib281DEC45_gf_PlayScriptedScene("Scene26");
        }

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

    if (((gf_EnteringFromStoryRoom(false) == true) || (gv_debugRoomGreetingMustPlay == true))) {
        if (((libVCST_gf_ClickableInRoom("TaldarimHero", libVCST_ge_Rooms_StoryRoomBridge) == true) || (libVCST_gf_ClickableInRoom("DTLeader", libVCST_ge_Rooms_StoryRoomBridge) == true))) {
            if ((((ConversationDataCanRun("pAmbientGreeting_DTLeader", false) == true) && (libVCST_gf_NextAvailableMission("Ulnar") != "PUlnar03")) || (ConversationDataCanRun("pAmbientGreeting_TaldarimHero", false) == true))) {
                if ((libVCST_gf_ClickableInRoom("DTLeader", libVCST_ge_Rooms_StoryRoomBridge) == true)) {
                    gf_PlayGreeting("DTLeader");

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

    if (((gf_EnteringFromStoryRoom(false) == true) || (gv_debugRoomGreetingMustPlay == true))) {
        if (((libVCST_gf_ClickableInRoom("TaldarimHero", libVCST_ge_Rooms_StoryRoomBridge) == true) || (libVCST_gf_ClickableInRoom("DTLeader", libVCST_ge_Rooms_StoryRoomBridge) == true))) {
            if ((((ConversationDataCanRun("pAmbientGreeting_DTLeader", false) == true) && (libVCST_gf_NextAvailableMission("Ulnar") != "PUlnar03")) || (ConversationDataCanRun("pAmbientGreeting_TaldarimHero", false) == true))) {
                if ((libVCST_gf_ClickableInRoom("DTLeader", libVCST_ge_Rooms_StoryRoomBridge) == true)) {
                    gf_PlayGreeting("DTLeader");

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

    // Implementation
    if (((gf_EnteringFromStoryRoom(false) == true) || (gv_debugRoomGreetingMustPlay == true))) {
        if (((ConversationDataCanRun("pAmbientGreeting_Preserver", false) == true) || ((ConversationDataCanRun("pAmbientGreeting_DTLeader", false) == true) && (libVCST_gf_ClickableInRoom("DTLeader", libVCST_ge_Rooms_StoryRoomWarCouncil) == true) && (libVCST_gf_NextAvailableMission(libVoiC_gf_CurrentLocation()) != "PUlnar03")))) {
            if ((ConversationDataCanRun("pAmbientGreeting_Preserver", false) == true)) {
                gf_PlayGreeting("Preserver");

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

    // Implementation
    if (((gf_EnteringFromStoryRoom(false) == true) || (gv_debugRoomGreetingMustPlay == true))) {
        if (((ConversationDataCanRun("pAmbientGreeting_Preserver", false) == true) || ((ConversationDataCanRun("pAmbientGreeting_DTLeader", false) == true) && (libVCST_gf_ClickableInRoom("DTLeader", libVCST_ge_Rooms_StoryRoomWarCouncil) == true) && (libVCST_gf_NextAvailableMission(libVoiC_gf_CurrentLocation()) != "PUlnar03")))) {
            if ((ConversationDataCanRun("pAmbientGreeting_Preserver", false) == true)) {
                gf_PlayGreeting("Preserver");

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

    if (((gf_EnteringFromStoryRoom(false) == true) || (gv_debugRoomGreetingMustPlay == true))) {
        if (((ConversationDataCanRun("pAmbientGreeting_Preserver", false) == true) || ((ConversationDataCanRun("pAmbientGreeting_DTLeader", false) == true) && (libVCST_gf_ClickableInRoom("DTLeader", libVCST_ge_Rooms_StoryRoomWarCouncil) == true) && (libVCST_gf_NextAvailableMission(libVoiC_gf_CurrentLocation()) != "PUlnar03")))) {
            if ((ConversationDataCanRun("pAmbientGreeting_Preserver", false) == true)) {
                gf_PlayGreeting("Preserver");
            }

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

                gf_PlayGreeting("Preserver");
            }
            else if ((ConversationDataCanRun("pAmbientGreeting_DTLeader", false) == true)) {
                gf_PlayGreeting("DTLeader");
            }

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

    // Implementation
    if (((gf_EnteringFromStoryRoom(false) == true) || (gv_debugRoomGreetingMustPlay == true))) {
        if (((ConversationDataCanRun("pAmbientGreeting_Smith", false) == true) || (ConversationDataCanRun("pAmbientGreeting_ProtossAI", false) == true))) {
            if ((ConversationDataCanRun("pAmbientGreeting_Smith", false) == true)) {
                gf_PlayGreeting("Smith");

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

    // Implementation
    if (((gf_EnteringFromStoryRoom(false) == true) || (gv_debugRoomGreetingMustPlay == true))) {
        if (((ConversationDataCanRun("pAmbientGreeting_Smith", false) == true) || (ConversationDataCanRun("pAmbientGreeting_ProtossAI", false) == true))) {
            if ((ConversationDataCanRun("pAmbientGreeting_Smith", false) == true)) {
                gf_PlayGreeting("Smith");

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

    if (((gf_EnteringFromStoryRoom(false) == true) || (gv_debugRoomGreetingMustPlay == true))) {
        if (((ConversationDataCanRun("pAmbientGreeting_Smith", false) == true) || (ConversationDataCanRun("pAmbientGreeting_ProtossAI", false) == true))) {
            if ((ConversationDataCanRun("pAmbientGreeting_Smith", false) == true)) {
                gf_PlayGreeting("Smith");
            }

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

                gf_PlayGreeting("Smith");
            }
            else if ((ConversationDataCanRun("pAmbientGreeting_ProtossAI", false) == true)) {
                gf_PlayGreeting("ProtossAI");
            }

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

    if (((gf_EnteringFromStoryRoom(false) == true) || (gv_debugRoomGreetingMustPlay == true))) {
        if (((libVCST_gf_ClickableInRoom("TaldarimHero", libVCST_ge_Rooms_StoryRoomBridge) == true) || (libVCST_gf_ClickableInRoom("DTLeader", libVCST_ge_Rooms_StoryRoomBridge) == true))) {
            if ((((ConversationDataCanRun("pAmbientGreeting_DTLeader", false) == true) && (libVCST_gf_NextAvailableMission("Ulnar") != "PUlnar03")) || (ConversationDataCanRun("pAmbientGreeting_TaldarimHero", false) == true))) {
                if ((libVCST_gf_ClickableInRoom("DTLeader", libVCST_ge_Rooms_StoryRoomBridge) == true)) {
                    gf_PlayGreeting("DTLeader");

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

    if (((gf_EnteringFromStoryRoom(false) == true) || (gv_debugRoomGreetingMustPlay == true))) {
        if (((libVCST_gf_ClickableInRoom("TaldarimHero", libVCST_ge_Rooms_StoryRoomBridge) == true) || (libVCST_gf_ClickableInRoom("DTLeader", libVCST_ge_Rooms_StoryRoomBridge) == true))) {
            if ((((ConversationDataCanRun("pAmbientGreeting_DTLeader", false) == true) && (libVCST_gf_NextAvailableMission("Ulnar") != "PUlnar03")) || (ConversationDataCanRun("pAmbientGreeting_TaldarimHero", false) == true))) {
                if ((libVCST_gf_ClickableInRoom("DTLeader", libVCST_ge_Rooms_StoryRoomBridge) == true)) {
                    gf_PlayGreeting("DTLeader");

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

    // Implementation
    if (((gf_EnteringFromStoryRoom(false) == true) || (gv_debugRoomGreetingMustPlay == true))) {
        if (((ConversationDataCanRun("pAmbientGreeting_Preserver", false) == true) || ((ConversationDataCanRun("pAmbientGreeting_DTLeader", false) == true) && (libVCST_gf_ClickableInRoom("DTLeader", libVCST_ge_Rooms_StoryRoomWarCouncil) == true) && (libVCST_gf_NextAvailableMission(libVoiC_gf_CurrentLocation()) != "PUlnar03")))) {
            if ((ConversationDataCanRun("pAmbientGreeting_Preserver", false) == true)) {
                gf_PlayGreeting("Preserver");

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

    // Implementation
    if (((gf_EnteringFromStoryRoom(false) == true) || (gv_debugRoomGreetingMustPlay == true))) {
        if (((ConversationDataCanRun("pAmbientGreeting_Preserver", false) == true) || ((ConversationDataCanRun("pAmbientGreeting_DTLeader", false) == true) && (libVCST_gf_ClickableInRoom("DTLeader", libVCST_ge_Rooms_StoryRoomWarCouncil) == true) && (libVCST_gf_NextAvailableMission(libVoiC_gf_CurrentLocation()) != "PUlnar03")))) {
            if ((ConversationDataCanRun("pAmbientGreeting_Preserver", false) == true)) {
                gf_PlayGreeting("Preserver");

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

    if (((gf_EnteringFromStoryRoom(false) == true) || (gv_debugRoomGreetingMustPlay == true))) {
        if (((ConversationDataCanRun("pAmbientGreeting_Preserver", false) == true) || ((ConversationDataCanRun("pAmbientGreeting_DTLeader", false) == true) && (libVCST_gf_ClickableInRoom("DTLeader", libVCST_ge_Rooms_StoryRoomWarCouncil) == true) && (libVCST_gf_NextAvailableMission(libVoiC_gf_CurrentLocation()) != "PUlnar03")))) {
            if ((ConversationDataCanRun("pAmbientGreeting_Preserver", false) == true)) {
                gf_PlayGreeting("Preserver");
            }

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

                gf_PlayGreeting("Preserver");
            }
            else if ((ConversationDataCanRun("pAmbientGreeting_DTLeader", false) == true)) {
                gf_PlayGreeting("DTLeader");
            }

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

    // Implementation
    if (((gf_EnteringFromStoryRoom(false) == true) || (gv_debugRoomGreetingMustPlay == true))) {
        if (((ConversationDataCanRun("pAmbientGreeting_Smith", false) == true) || (ConversationDataCanRun("pAmbientGreeting_ProtossAI", false) == true))) {
            if ((ConversationDataCanRun("pAmbientGreeting_Smith", false) == true)) {
                gf_PlayGreeting("Smith");

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

    // Implementation
    if (((gf_EnteringFromStoryRoom(false) == true) || (gv_debugRoomGreetingMustPlay == true))) {
        if (((ConversationDataCanRun("pAmbientGreeting_Smith", false) == true) || (ConversationDataCanRun("pAmbientGreeting_ProtossAI", false) == true))) {
            if ((ConversationDataCanRun("pAmbientGreeting_Smith", false) == true)) {
                gf_PlayGreeting("Smith");

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

    if (((gf_EnteringFromStoryRoom(false) == true) || (gv_debugRoomGreetingMustPlay == true))) {
        if (((ConversationDataCanRun("pAmbientGreeting_Smith", false) == true) || (ConversationDataCanRun("pAmbientGreeting_ProtossAI", false) == true))) {
            if ((ConversationDataCanRun("pAmbientGreeting_Smith", false) == true)) {
                gf_PlayGreeting("Smith");
            }

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

                gf_PlayGreeting("Smith");
            }
            else if ((ConversationDataCanRun("pAmbientGreeting_ProtossAI", false) == true)) {
                gf_PlayGreeting("ProtossAI");
            }

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

        lv_indexClickable = UserDataInstance("Clickable", autoCF818BE1_ai);
        if (((libVCST_gf_PS_ClickableType(lv_indexClickable) == libVCST_ge_ClickableType_Ambient) || (libVCST_gf_PS_ClickableType(lv_indexClickable) == libVCST_ge_ClickableType_Conversation))) {
            if ((ConversationDataCanRun(libVCST_gf_PS_ClickableConversation(lv_indexClickable), true) == true)) {
                libVCST_gf_ClickableSetType(lv_indexClickable, libVCST_ge_ClickableType_Conversation);
                libVCST_gf_ClickableSetNew(lv_indexClickable, true);

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

            lv_indexClickable = UserDataInstance("Clickable", autoC23605A7_ai);
            if ((libVCST_gf_ClickableInRoom(lv_indexClickable, libVCST_gf_CurrentRoom()) == true)) {
                if ((ConversationDataCanRun(UserDataGetGameLink("Clickable", lv_indexClickable, "Ambient Conversation", 1), false) == true)) {
                    lv_numberOfTalkingClickables = (lv_numberOfTalkingClickables + 1);
                    lv_listOfTalkingClickables[lv_numberOfTalkingClickables] = lv_indexClickable;

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

        lv_indexClickable = UserDataInstance("Clickable", autoCF818BE1_ai);
        if (((libNCST_gf_NS_ClickableType(lv_indexClickable) == libNCST_ge_ClickableType_Ambient) || (libNCST_gf_NS_ClickableType(lv_indexClickable) == libNCST_ge_ClickableType_Conversation))) {
            if ((ConversationDataCanRun(libNCST_gf_NS_ClickableConversation(lv_indexClickable), true) == true)) {
                libNCST_gf_ClickableSetType(lv_indexClickable, libNCST_ge_ClickableType_Conversation);
                libNCST_gf_ClickableSetNew(lv_indexClickable, true);

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

            lv_indexClickable = UserDataInstance("Clickable", autoC23605A7_ai);
            if ((libNCST_gf_ClickableInRoom(lv_indexClickable, libNCST_gf_CurrentRoom()) == true)) {
                if ((ConversationDataCanRun(UserDataGetGameLink("Clickable", lv_indexClickable, "Ambient Conversation", 1), false) == true)) {
                    lv_numberOfTalkingClickables = (lv_numberOfTalkingClickables + 1);
                    lv_listOfTalkingClickables[lv_numberOfTalkingClickables] = lv_indexClickable;

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:6880

    // Automatic Variable Declarations
    // Implementation
    if ((ConversationDataCanRun(libA3DDD02B_gf_MissionPitch(libA3DDD02B_gv_pP_NextMission), false) == true)) {
        DialogControlSetVisible(libA3DDD02B_gv_pP_MLPitchPlayButton, PlayerGroupAll(), false);
        DialogControlSetVisible(libA3DDD02B_gv_pP_MLPitchStopButton, PlayerGroupAll(), true);