# Data Conversation State Count

Grammar — Number of states in conversation state
FlagsNative | Function

Returns the number of individual state values within a state definition.

# Arguments

  • string<gamelink::ConversationState> — State

Returns — int

native int ConversationDataStateIndexCount(
	string inStateId,
);

Category: Conversation / Data Conversation Tools

# Examples

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

    while (auto83C0223C_ai < auto83C0223C_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto83C0223C_ai);
        auto6F10283C_ae = ConversationDataStateIndexCount("Cameras");
        lv_index = 1;
        for ( ; ( (auto6F10283C_ai >= 0 && lv_index <= auto6F10283C_ae) || (auto6F10283C_ai < 0 && lv_index >= auto6F10283C_ae) ) ; lv_index += auto6F10283C_ai ) {

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

    if ((libVCST_gf_NextAvailableMission(libVoiC_gf_CurrentLocation()) != "PAiur02") && (libVCST_gf_NextAvailableMission(libVoiC_gf_CurrentLocation()) != "SC2Epilogue02") && (libVCST_gf_NextAvailableMission(libVoiC_gf_CurrentLocation()) != "SC2Epilogue03")) {
        libVCUI_gv_pU_ArtanisAnimScene = lp_animCutscene;
        auto68A62B65_ae = ConversationDataStateIndexCount("Cameras");
        lv_index = 1;
        for ( ; ( (auto68A62B65_ai >= 0 && lv_index <= auto68A62B65_ae) || (auto68A62B65_ai < 0 && lv_index >= auto68A62B65_ae) ) ; lv_index += auto68A62B65_ai ) {

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

    while (auto83C0223C_ai < auto83C0223C_ae) {
        lv_indexClickable = UserDataInstance("Clickable", auto83C0223C_ai);
        auto6F10283C_ae = ConversationDataStateIndexCount("Cameras");
        auto6F10283C_ai = 1;
        lv_index = 1;