# Data Conversation State Image

Grammar — Image for conversation stateIndex|State
FlagsNative | Function

Returns the image associated with the given conversation state.

# Arguments

  • string<convstateindex> — State Index

Returns — string<filepath>

native string ConversationDataStateImagePath(
	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:13729

            DialogControlSetPositionRelative(DialogControlLastCreated(), PlayerGroupAll(), c_anchorLeft, lv_rewardsPanel, c_anchorLeft, 168, lv_labelYOffset);
        }
        gf_ABChoiceCreateIcon(ConversationDataStateImagePath(lp_convoID), "Terr", ConversationDataStateText(lp_convoID, "Tooltip"), lv_label, 10, (-1 * lv_labelYOffset), c_anchorLeft, c_anchorLeft);
        lv_icon = DialogControlLastCreated();
        DialogControlCreate(gv_aBChoicePanel, c_triggerControlTypeLabel);

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

        DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 90, 60);
        DialogControlSetPositionRelative(DialogControlLastCreated(), PlayerGroupAll(), c_anchorLeft, lv_icon, c_anchorRight, 15, lv_labelYOffset);
        gf_ABChoiceCreateIcon(ConversationDataStateImagePath(lp_convoID_Ability1), "Terr", ConversationDataStateText(lp_convoID_Ability1, "Tooltip"), lv_label, 0, (-1 * lv_labelYOffset), c_anchorLeft, c_anchorRight);
        lv_icon = DialogControlLastCreated();
        if ((lp_convoID_Ability2 != null)) {

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

        lv_icon = DialogControlLastCreated();
        if ((lp_convoID_Ability2 != null)) {
            gf_ABChoiceCreateIcon(ConversationDataStateImagePath(lp_convoID_Ability2), "Terr", ConversationDataStateText(lp_convoID_Ability2, "Tooltip"), lv_icon, 10, 0, c_anchorLeft, c_anchorRight);
            lv_icon = DialogControlLastCreated();
        }

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


        if ((lp_convoID_Ability3 != null)) {
            gf_ABChoiceCreateIcon(ConversationDataStateImagePath(lp_convoID_Ability3), "Terr", ConversationDataStateText(lp_convoID_Ability3, "Tooltip"), lv_icon, 10, 0, c_anchorLeft, c_anchorRight);
            lv_icon = DialogControlLastCreated();
        }

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


        if ((lp_convoID_Ability4 != null)) {
            gf_ABChoiceCreateIcon(ConversationDataStateImagePath(lp_convoID_Ability4), "Terr", ConversationDataStateText(lp_convoID_Ability4, "Tooltip"), lv_icon, 10, 0, c_anchorLeft, c_anchorRight);
            lv_icon = DialogControlLastCreated();
        }

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

            DialogControlSetPositionRelative(DialogControlLastCreated(), PlayerGroupAll(), c_anchorLeft, lv_rewardsPanel, c_anchorLeft, 168, lv_labelYOffset);
        }
        gf_ABChoiceCreateIcon(ConversationDataStateImagePath(lp_convoID_Ability1), "Terr", ConversationDataStateText(lp_convoID_Ability1, "Tooltip"), lv_label, 10, (-1 * lv_labelYOffset), c_anchorLeft, c_anchorRight);
        lv_icon = DialogControlLastCreated();
        if ((lp_convoID_Ability2 != null)) {

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

        lv_icon = DialogControlLastCreated();
        if ((lp_convoID_Ability2 != null)) {
            gf_ABChoiceCreateIcon(ConversationDataStateImagePath(lp_convoID_Ability2), "Terr", ConversationDataStateText(lp_convoID_Ability2, "Tooltip"), lv_icon, 10, 0, c_anchorLeft, c_anchorRight);
            lv_icon = DialogControlLastCreated();
        }

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:13729

            DialogControlSetPositionRelative(DialogControlLastCreated(), PlayerGroupAll(), c_anchorLeft, lv_rewardsPanel, c_anchorLeft, 168, lv_labelYOffset);
        }
        gf_ABChoiceCreateIcon(ConversationDataStateImagePath(lp_convoID), "Terr", ConversationDataStateText(lp_convoID, "Tooltip"), lv_label, 10, (-1 * lv_labelYOffset), c_anchorLeft, c_anchorLeft);
        lv_icon = DialogControlLastCreated();
        DialogControlCreate(gv_aBChoicePanel, c_triggerControlTypeLabel);

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

        DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 90, 60);
        DialogControlSetPositionRelative(DialogControlLastCreated(), PlayerGroupAll(), c_anchorLeft, lv_icon, c_anchorRight, 15, lv_labelYOffset);
        gf_ABChoiceCreateIcon(ConversationDataStateImagePath(lp_convoID_Ability1), "Terr", ConversationDataStateText(lp_convoID_Ability1, "Tooltip"), lv_label, 0, (-1 * lv_labelYOffset), c_anchorLeft, c_anchorRight);
        lv_icon = DialogControlLastCreated();
        if ((lp_convoID_Ability2 != null)) {

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

        lv_icon = DialogControlLastCreated();
        if ((lp_convoID_Ability2 != null)) {
            gf_ABChoiceCreateIcon(ConversationDataStateImagePath(lp_convoID_Ability2), "Terr", ConversationDataStateText(lp_convoID_Ability2, "Tooltip"), lv_icon, 10, 0, c_anchorLeft, c_anchorRight);
            lv_icon = DialogControlLastCreated();
        }

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


        if ((lp_convoID_Ability3 != null)) {
            gf_ABChoiceCreateIcon(ConversationDataStateImagePath(lp_convoID_Ability3), "Terr", ConversationDataStateText(lp_convoID_Ability3, "Tooltip"), lv_icon, 10, 0, c_anchorLeft, c_anchorRight);
            lv_icon = DialogControlLastCreated();
        }

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


        if ((lp_convoID_Ability4 != null)) {
            gf_ABChoiceCreateIcon(ConversationDataStateImagePath(lp_convoID_Ability4), "Terr", ConversationDataStateText(lp_convoID_Ability4, "Tooltip"), lv_icon, 10, 0, c_anchorLeft, c_anchorRight);
            lv_icon = DialogControlLastCreated();
        }

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

            DialogControlSetPositionRelative(DialogControlLastCreated(), PlayerGroupAll(), c_anchorLeft, lv_rewardsPanel, c_anchorLeft, 168, lv_labelYOffset);
        }
        gf_ABChoiceCreateIcon(ConversationDataStateImagePath(lp_convoID_Ability1), "Terr", ConversationDataStateText(lp_convoID_Ability1, "Tooltip"), lv_label, 10, (-1 * lv_labelYOffset), c_anchorLeft, c_anchorRight);
        lv_icon = DialogControlLastCreated();
        if ((lp_convoID_Ability2 != null)) {

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

        lv_icon = DialogControlLastCreated();
        if ((lp_convoID_Ability2 != null)) {
            gf_ABChoiceCreateIcon(ConversationDataStateImagePath(lp_convoID_Ability2), "Terr", ConversationDataStateText(lp_convoID_Ability2, "Tooltip"), lv_icon, 10, 0, c_anchorLeft, c_anchorRight);
            lv_icon = DialogControlLastCreated();
        }

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:4783

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

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

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