# Dialog Item Edit Value

Grammar — Edit value of dialogItem for player
FlagsFunction

Returns the string edit value for a dialog item.

# Arguments

  • int<control> — Dialog Item
  • int — Player

Returns — string

string libNtve_gf_DialogItemEditValue(
	int lp_dialogItem,
	int lp_player,
);

Category: Dialog / Dialog Item Values

# Examples

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


    if ((DialogControlGetSelectedItem(lib281DEC45_gv_zSS_DebugStoryStateList, 1) > UserDataInstanceCount("WriterStates"))) {
        UserDataSetInt("StoryStates", UserDataInstance("StoryStates", (DialogControlGetSelectedItem(lib281DEC45_gv_zSS_DebugStoryStateList, 1)-UserDataInstanceCount("WriterStates"))), "value", 1, StringToInt(libNtve_gf_DialogItemEditValue(EventDialogControl(), 1)));
    }
    else {

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

    }
    else {
        UserDataSetInt("WriterStates", UserDataInstance("WriterStates", DialogControlGetSelectedItem(lib281DEC45_gv_zSS_DebugStoryStateList, 1)), "Value", 1, StringToInt(libNtve_gf_DialogItemEditValue(EventDialogControl(), 1)));
    }
    return true;

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:6509

        if ((EventDialogControl() == libVCMI_gv_pM_MissionCheat_Cheats[lv_dialogIndex].lv_buttonDialog)) {
            if ((libVCMI_gv_pM_MissionCheat_Cheats[lv_dialogIndex].lv_uIType == libVCMI_ge_MissionCheatUIType_ButtonEditBoxCombo)) {
                lv_editBoxValue = libNtve_gf_DialogItemEditValue(libVCMI_gv_pM_MissionCheat_Cheats[lv_dialogIndex].lv_editBoxDialog, 1);
                if ((lv_editBoxValue != "")) {
                    DataTableSetString(true, ("PS_" + TriggerGetFunction(libVCMI_gv_pM_MissionCheat_Cheats[lv_dialogIndex].lv_trigger)), lv_editBoxValue);

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

    // Automatic Variable Declarations
    // Implementation
    if ((libNtve_gf_DialogItemEditValue(libVCST_gv_pS_DebugStoryFilterEditBox, 1) != "") && (StringContains(lp_name, libNtve_gf_DialogItemEditValue(libVCST_gv_pS_DebugStoryFilterEditBox, 1), c_stringAnywhere, c_stringNoCase) == false)) {
        return ;
    }

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

    // Automatic Variable Declarations
    // Implementation
    if ((libNtve_gf_DialogItemEditValue(libVCST_gv_pS_DebugStoryFilterEditBox, 1) != "") && (StringContains(lp_name, libNtve_gf_DialogItemEditValue(libVCST_gv_pS_DebugStoryFilterEditBox, 1), c_stringAnywhere, c_stringNoCase) == false)) {
        return ;
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:3496

    }

    lv_speedEditBoxContents = libNtve_gf_DialogItemEditValue(libSprt_gv_qACheatsControlsPanel.lv_speedCountEditbox, 1);
    lv_speedValue = StringToFixed(lv_speedEditBoxContents);
    if ((lv_speedValue > 8.0)) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:3906

    }

    lv_cameraAngleEditBoxContents = libNtve_gf_DialogItemEditValue(libSprt_gv_qACheatsControlsPanel.lv_cameraAngleEditbox, 1);
    lv_angleValue = StringToFixed(lv_cameraAngleEditBoxContents);
    if (((lv_angleValue > 90.0) || (lv_angleValue < 0.0))) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:3987

    }

    lv_itemCouintEditBoxContents = libNtve_gf_DialogItemEditValue(libSprt_gv_qACheatsControlsPanel.lv_itemCountEditbox, EventPlayer());
    lv_itemCount = StringToInt(lv_itemCouintEditBoxContents);
    lv_currentPos = CameraGetTarget(EventPlayer());

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:10800

    }
    else {
        lv_delay = StringToFixed(libNtve_gf_DialogItemEditValue(libUIUI_gv_uIDebugPanel.lv_soundVODelayEditor, lv_triggeringPlayer));
        auto39B1433C_ae = lv_listCountRight;
        lv_listIndexRight = 1;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:11073


    lv_player = EventPlayer();
    libUIUI_gv_uIDebugPanelDebugMetaXPValue = StringToInt(libNtve_gf_DialogItemEditValue(libUIUI_gv_uIDebugPanel.lv_metaXPEditBox, lv_player));
    if ((libUIUI_gv_uIDebugPanelDebugMetaXPValue <= 0)) {
        TextExpressionSetToken("Param/Expression/lib_UIUI_8002416C", "A", IntToText(libUIUI_gv_uIDebugPanelDebugMetaXPValue));

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:5449

        if ((EventDialogControl() == libNCMI_gv_NM_MissionCheat_Cheats[lv_dialogIndex].lv_buttonDialog)) {
            if ((libNCMI_gv_NM_MissionCheat_Cheats[lv_dialogIndex].lv_uIType == libNCMI_ge_MissionCheatUIType_ButtonEditBoxCombo)) {
                lv_editBoxValue = libNtve_gf_DialogItemEditValue(libNCMI_gv_NM_MissionCheat_Cheats[lv_dialogIndex].lv_editBoxDialog, 1);
                if ((lv_editBoxValue != "")) {
                    DataTableSetString(true, ("NS_" + TriggerGetFunction(libNCMI_gv_NM_MissionCheat_Cheats[lv_dialogIndex].lv_trigger)), lv_editBoxValue);

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

void libNCST_gf_NS_DebugStoryAddListItem (string lp_name, string lp_listInstance, string lp_listType) {
    // Implementation
    if ((libNtve_gf_DialogItemEditValue(libNCST_gv_nS_DebugStoryFilterEditBox, 1) != "") && (StringContains(lp_name, libNtve_gf_DialogItemEditValue(libNCST_gv_nS_DebugStoryFilterEditBox, 1), c_stringAnywhere, c_stringNoCase) == false)) {
        return ;
    }

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

void libNCST_gf_NS_DebugStoryAddListItem (string lp_name, string lp_listInstance, string lp_listType) {
    // Implementation
    if ((libNtve_gf_DialogItemEditValue(libNCST_gv_nS_DebugStoryFilterEditBox, 1) != "") && (StringContains(lp_name, libNtve_gf_DialogItemEditValue(libNCST_gv_nS_DebugStoryFilterEditBox, 1), c_stringAnywhere, c_stringNoCase) == false)) {
        return ;
    }