# Dialog Item Current Value

Grammar — Current value of dialogItem for player
FlagsFunction

Returns the current value that is set for a dialog item.

# Arguments

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

Returns — fixed

fixed libNtve_gf_DialogItemValue(
	int lp_dialogItem,
	int lp_player,
);

Category: Dialog / Dialog Item Values

# Examples

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:658

    DialogControlSetVisible(gv_tryMeModePanel.lv_levelFrame, PlayerGroupAll(), false);
    gv_setHeroLevelUIOn = false;
    gv_heroCurrentLevel = FixedToInt(libNtve_gf_DialogItemValue(gv_tryMeModePanel.lv_levelSlider, gv_pLAYER_TryMe_C));
    gf_SetHeroLevel(gv_heroCurrentLevel, false);
}

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:937

    DialogControlSetVisible(gv_tryMeModePanel.lv_gameSpeedFrame, PlayerGroupAll(), false);
    gv_setGameSpeedUIOn = false;
    lv_speed = gf_GameSpeedFromIndex(FixedToInt(libNtve_gf_DialogItemValue(gv_tryMeModePanel.lv_gameSpeedSlider, gv_pLAYER_TryMe_C)));
    GameSetSpeedValue(lv_speed);
    UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, StringExternal("Param/Value/A2085E1B"));

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:2014

    }

    TextExpressionSetToken("Param/Expression/06B55100", "A", IntToText(FixedToInt(libNtve_gf_DialogItemValue(gv_tryMeModePanel.lv_levelSlider, gv_pLAYER_TryMe_C))));
    libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_levelLabel, TextExpressionAssemble("Param/Expression/06B55100"), PlayerGroupAll());
    return true;

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:2258

    }

    libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_gameSpeedLabel, gf_GameSpeedText(gf_GameSpeedFromIndex(FixedToInt(libNtve_gf_DialogItemValue(gv_tryMeModePanel.lv_gameSpeedSlider, 1)))), PlayerGroupAll());
    return true;
}

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:2286


    gf_TemporarilyDisableButtonPressedTriggers(true);
    gv_heroCurrentLevel = FixedToInt(libNtve_gf_DialogItemValue(gv_tryMeModePanel.lv_levelSlider, gv_pLAYER_TryMe_C));
    gf_SetHeroLevel(gv_heroCurrentLevel, true);
    Wait(0.0625, c_timeGame);

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmapmap/MapScript.galaxy:658

    DialogControlSetVisible(gv_tryMeModePanel.lv_levelFrame, PlayerGroupAll(), false);
    gv_setHeroLevelUIOn = false;
    gv_heroCurrentLevel = FixedToInt(libNtve_gf_DialogItemValue(gv_tryMeModePanel.lv_levelSlider, gv_pLAYER_TryMe_C));
    gf_SetHeroLevel(gv_heroCurrentLevel, false);
}

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmapmap/MapScript.galaxy:937

    DialogControlSetVisible(gv_tryMeModePanel.lv_gameSpeedFrame, PlayerGroupAll(), false);
    gv_setGameSpeedUIOn = false;
    lv_speed = gf_GameSpeedFromIndex(FixedToInt(libNtve_gf_DialogItemValue(gv_tryMeModePanel.lv_gameSpeedSlider, gv_pLAYER_TryMe_C)));
    GameSetSpeedValue(lv_speed);
    UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, StringExternal("Param/Value/A2085E1B"));

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmapmap/MapScript.galaxy:2014

    }

    TextExpressionSetToken("Param/Expression/06B55100", "A", IntToText(FixedToInt(libNtve_gf_DialogItemValue(gv_tryMeModePanel.lv_levelSlider, gv_pLAYER_TryMe_C))));
    libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_levelLabel, TextExpressionAssemble("Param/Expression/06B55100"), PlayerGroupAll());
    return true;

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmapmap/MapScript.galaxy:2258

    }

    libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_gameSpeedLabel, gf_GameSpeedText(gf_GameSpeedFromIndex(FixedToInt(libNtve_gf_DialogItemValue(gv_tryMeModePanel.lv_gameSpeedSlider, 1)))), PlayerGroupAll());
    return true;
}

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmapmap/MapScript.galaxy:2286


    gf_TemporarilyDisableButtonPressedTriggers(true);
    gv_heroCurrentLevel = FixedToInt(libNtve_gf_DialogItemValue(gv_tryMeModePanel.lv_levelSlider, gv_pLAYER_TryMe_C));
    gf_SetHeroLevel(gv_heroCurrentLevel, true);
    Wait(0.0625, c_timeGame);

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

    BankValueSetFromFlag(lv_localBank, "Debug Menu Options", "SpawnAtCamera", libUIUI_gv_uIDebugPanelSpawnAtCamera);
    BankValueSetFromFlag(lv_localBank, "Debug Menu Options", "SavedHero", libUIUI_gv_uIDebugPanelSavedHero);
    BankValueSetFromFixed(lv_localBank, "Debug Menu Options", "HeroLevelXP", libCore_gf_GetTotalXPForLevel(FixedToInt(libNtve_gf_DialogItemValue(libUIUI_gv_uIDebugPanel.lv_levelSlider, lp_localPlayer))));
    BankValueSetFromInt(lv_localBank, "Debug Menu Options", "HeroIndex", DialogControlGetSelectedItem(libUIUI_gv_uIDebugPanel.lv_heroDropdown, 1));
    BankValueSetFromInt(lv_localBank, "Debug Menu Options", "SkinIndex", DialogControlGetSelectedItem(libUIUI_gv_uIDebugPanel.lv_skinDropdown, 1));

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

    }

    TextExpressionSetToken("Param/Expression/lib_UIUI_7777446E", "A", FixedToText(libNtve_gf_DialogItemValue(EventDialogControl(), EventPlayer()), 0));
    libNtve_gf_SetDialogItemText(libUIUI_gv_uIDebugPanel.lv_playerLabel, TextExpressionAssemble("Param/Expression/lib_UIUI_7777446E"), libCore_gv_playerGroupFromPlayer[EventPlayer()]);
    return true;

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

    }

    TextExpressionSetToken("Param/Expression/lib_UIUI_FA37F92E", "A", FixedToText(libNtve_gf_DialogItemValue(EventDialogControl(), EventPlayer()), 0));
    libNtve_gf_SetDialogItemText(libUIUI_gv_uIDebugPanel.lv_levelLabel, TextExpressionAssemble("Param/Expression/lib_UIUI_FA37F92E"), libCore_gv_playerGroupFromPlayer[EventPlayer()]);
    return true;

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

    lv_announcerPackIndex = DialogControlGetSelectedItem(libUIUI_gv_uIDebugPanel.lv_announcerPackDropdown, lv_triggeringPlayer);
    lv_voiceLineIndex = DialogControlGetSelectedItem(libUIUI_gv_uIDebugPanel.lv_voiceLineDropdown, lv_triggeringPlayer);
    lv_player = FixedToInt(libNtve_gf_DialogItemValue(libUIUI_gv_uIDebugPanel.lv_playerSlider, lv_triggeringPlayer));
    if ((libNtve_gf_DialogItemIsChecked(libUIUI_gv_uIDebugPanel.lv_useCurrentXPCheckbox, lv_triggeringPlayer) == true)) {
        lv_xP = UnitGetPropertyFixed(libGame_gv_players[lv_player].lv_heroUnit, c_unitPropXP, c_unitPropCurrent);

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

    }
    else {
        lv_xP = libCore_gf_GetTotalXPForLevel(FixedToInt(libNtve_gf_DialogItemValue(libUIUI_gv_uIDebugPanel.lv_levelSlider, lv_triggeringPlayer)));
    }
    libUIUI_gf_UIDebugPanelLoadLootContentIndexForPlayer(lv_triggeringPlayer, lv_heroIndex, lv_sprayIndex, lv_bannerIndex, lv_announcerPackIndex, lv_voiceLineIndex);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:632

    DialogControlSetSize(libCOUI_gv_cU_RandomMutationSelectLabel, PlayerGroupAll(), 450, 50);
    DialogControlSetPosition(libCOUI_gv_cU_RandomMutationSelectLabel, PlayerGroupAll(), c_anchorTop, 0, 240);
    libNtve_gf_SetDialogItemText(libCOUI_gv_cU_RandomMutationSelectLabel, StringToText(("Difficulty: [" + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, 1))) + ", " + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, 1))) + "]")), PlayerGroupAll());
    libNtve_gf_CreateDialogItemButton(libCOUI_gv_cU_RandomMutationSelectDialog, 75, 50, c_anchorBottom, 0, 25, StringToText(""), StringToText("OK"), "");
    libCOUI_gv_cU_RandomMutationSelectOKButton = DialogControlLastCreated();

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:632

    DialogControlSetSize(libCOUI_gv_cU_RandomMutationSelectLabel, PlayerGroupAll(), 450, 50);
    DialogControlSetPosition(libCOUI_gv_cU_RandomMutationSelectLabel, PlayerGroupAll(), c_anchorTop, 0, 240);
    libNtve_gf_SetDialogItemText(libCOUI_gv_cU_RandomMutationSelectLabel, StringToText(("Difficulty: [" + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, 1))) + ", " + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, 1))) + "]")), PlayerGroupAll());
    libNtve_gf_CreateDialogItemButton(libCOUI_gv_cU_RandomMutationSelectDialog, 75, 50, c_anchorBottom, 0, 25, StringToText(""), StringToText("OK"), "");
    libCOUI_gv_cU_RandomMutationSelectOKButton = DialogControlLastCreated();

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:6549

    }

    lv_mindifficulty = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, EventPlayer()));
    lv_maxdifficulty = MaxI(lv_mindifficulty, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, EventPlayer())));
    lv_minmutators = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinMutSlider, EventPlayer()));

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:6550


    lv_mindifficulty = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, EventPlayer()));
    lv_maxdifficulty = MaxI(lv_mindifficulty, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, EventPlayer())));
    lv_minmutators = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinMutSlider, EventPlayer()));
    lv_maxmutators = MaxI(lv_minmutators, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxMutSlider, EventPlayer())));

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:6551

    lv_mindifficulty = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, EventPlayer()));
    lv_maxdifficulty = MaxI(lv_mindifficulty, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, EventPlayer())));
    lv_minmutators = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinMutSlider, EventPlayer()));
    lv_maxmutators = MaxI(lv_minmutators, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxMutSlider, EventPlayer())));
    libCOUI_gf_CU_RandomMutationSelectClose(1);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:6552

    lv_maxdifficulty = MaxI(lv_mindifficulty, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, EventPlayer())));
    lv_minmutators = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinMutSlider, EventPlayer()));
    lv_maxmutators = MaxI(lv_minmutators, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxMutSlider, EventPlayer())));
    libCOUI_gf_CU_RandomMutationSelectClose(1);
    lv_mindifficulty = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, EventPlayer()));

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:6554

    lv_maxmutators = MaxI(lv_minmutators, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxMutSlider, EventPlayer())));
    libCOUI_gf_CU_RandomMutationSelectClose(1);
    lv_mindifficulty = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, EventPlayer()));
    lv_maxdifficulty = MaxI(lv_mindifficulty, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, EventPlayer())));
    if ((lv_maxdifficulty < lv_mindifficulty)) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:6555

    libCOUI_gf_CU_RandomMutationSelectClose(1);
    lv_mindifficulty = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, EventPlayer()));
    lv_maxdifficulty = MaxI(lv_mindifficulty, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, EventPlayer())));
    if ((lv_maxdifficulty < lv_mindifficulty)) {
        lv_maxdifficulty = lv_mindifficulty;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:6616

    }

    libNtve_gf_SetDialogItemText(libCOUI_gv_cU_RandomMutationSelectLabel, StringToText(("Difficulty: [" + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, 1))) + ", " + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, 1))) + "] Mutators: [" + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinMutSlider, 1))) + ", " + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxMutSlider, 1))) + "]")), PlayerGroupAll());
    return true;
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:6616

    }

    libNtve_gf_SetDialogItemText(libCOUI_gv_cU_RandomMutationSelectLabel, StringToText(("Difficulty: [" + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, 1))) + ", " + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, 1))) + "] Mutators: [" + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinMutSlider, 1))) + ", " + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxMutSlider, 1))) + "]")), PlayerGroupAll());
    return true;
}

mods/warcoop/warcoopdata.sc2modbase.sc2data/TriggerLibs/WarCoopData.galaxy:3321

    }

    lv_newdifficultylevel = libNtve_gf_ArithmeticIntClamp(RoundI(libNtve_gf_DialogItemValue(libWCdr_gv_debugHeroSelectUI.lv_optionsPanel.lv_difficultySlider, 1)), UserDataGetInt("LegionDifficultyScaling", "LevelRange", "MinLevel", 1), UserDataGetInt("LegionDifficultyScaling", "LevelRange", "MaxLevel", 1));
    if ((lv_newdifficultylevel == libWCdr_gv_legends.lv_difficultyLevel)) {
        return true;