# Data Conversation State Name

Grammar — Name of conversation stateIndex|State
FlagsNative | Function

Returns the display name of the given conversation state.

# Arguments

  • string<convstateindex> — State Index

Returns — text

native text ConversationDataStateName(string stateIndex);

Category: Conversation / Data Conversation Tools

# Examples

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

    }

    gf__AddFlashingTextTag(lp_unit, ConversationDataStateName(lp_conversationStateIndex), ConversationDataStateAttachPoint(lp_conversationStateIndex), lp_offsetX, lp_offsetY, ConversationDataStateImagePath(lp_conversationStateIndex), ConversationDataStateImageEdge(lp_conversationStateIndex), lp_edgeOffsetX, lp_edgeOffsetY);
}

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

    }

    gf__AddFlashingTextTag(gf_ActorUnit(lp_actor), ConversationDataStateName(lp_conversationStateIndex), ConversationDataStateAttachPoint(lp_conversationStateIndex), lp_offsetX, lp_offsetY, ConversationDataStateImagePath(lp_conversationStateIndex), ConversationDataStateImageEdge(lp_conversationStateIndex), lp_edgeOffsetX, lp_edgeOffsetY);
}

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

        DialogControlSetPositionRelative(DialogControlLastCreated(), PlayerGroupAll(), c_anchorBottomRight, gv_aBChoiceFrame, c_anchorTopRight, -140, 56);
    }
    libNtve_gf_SetDialogItemText(DialogControlLastCreated(), TextCase(ConversationDataStateName(lp_convoID), true), PlayerGroupAll());
    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 500, 120);
    libNtve_gf_SetDialogItemStyle(DialogControlLastCreated(), "ABChoiceButtonText", PlayerGroupAll());

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

    }

    gf__AddFlashingTextTag(lp_unit, ConversationDataStateName(lp_conversationStateIndex), ConversationDataStateAttachPoint(lp_conversationStateIndex), lp_offsetX, lp_offsetY, ConversationDataStateImagePath(lp_conversationStateIndex), ConversationDataStateImageEdge(lp_conversationStateIndex), lp_edgeOffsetX, lp_edgeOffsetY);
}

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

    }

    gf__AddFlashingTextTag(gf_ActorUnit(lp_actor), ConversationDataStateName(lp_conversationStateIndex), ConversationDataStateAttachPoint(lp_conversationStateIndex), lp_offsetX, lp_offsetY, ConversationDataStateImagePath(lp_conversationStateIndex), ConversationDataStateImageEdge(lp_conversationStateIndex), lp_edgeOffsetX, lp_edgeOffsetY);
}

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

        DialogControlSetPositionRelative(DialogControlLastCreated(), PlayerGroupAll(), c_anchorBottomRight, gv_aBChoiceFrame, c_anchorTopRight, -140, 56);
    }
    libNtve_gf_SetDialogItemText(DialogControlLastCreated(), TextCase(ConversationDataStateName(lp_convoID), true), PlayerGroupAll());
    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 500, 120);
    libNtve_gf_SetDialogItemStyle(DialogControlLastCreated(), "ABChoiceButtonText", PlayerGroupAll());

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

    // Automatic Variable Declarations
    // Implementation
    HelpPanelAddTip(lp_players, libNtve_gf_FormatTipTitle(ConversationDataStateName(lp_convoState), lp_tipType), ConversationDataStateText(lp_convoState, "Description"), ConversationDataStateName(lp_convoState), ConversationDataStateImagePath(lp_convoState));
    ConversationDataStateSetValue(lp_convoState, 1);
}

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

    // Automatic Variable Declarations
    // Implementation
    HelpPanelAddTip(lp_players, libNtve_gf_FormatTipTitle(ConversationDataStateName(lp_convoState), lp_tipType), ConversationDataStateText(lp_convoState, "Description"), ConversationDataStateName(lp_convoState), ConversationDataStateImagePath(lp_convoState));
    ConversationDataStateSetValue(lp_convoState, 1);
}

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

    // Automatic Variable Declarations
    // Implementation
    return ConversationDataStateName(libCamp_gv_tS_ResearchConvoID[(lp_researchID)]);
}

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

    // Automatic Variable Declarations
    // Implementation
    return ConversationDataStateName(libCamp_gf_TS_StoryTechConvoID(lp_tech));
}