# Set Dialog Item PlayerId

Grammar — Set dialogItem PlayerId to playerId for players
FlagsAction

Sets the target playerId for a dialog item. Only used by Hero Cutscene dialog items.

# Arguments

  • int<control> — Dialog Item
  • int — PlayerId
  • playergroup — Players

Returns — void

void libNtve_gf_SetDialogItemPlayerId(
	int lp_dialogItem,
	int lp_playerId,
	playergroup lp_players,
);

Category: Dialog / Dialog Item Tools

# Examples

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawluimod.stormmodbase.stormdata/LibPBUI.galaxy:496

            }

            libNtve_gf_SetDialogItemPlayerId(libPBUI_gv_curateHeroSelectionUI.lv_voiceChatFrame[lv_itSlot], libCore_gf_GetPlayerIDfromTeamSlot(lv_player, libGame_gf_TeamNumberOfPlayer(lv_player)), libCore_gv_playerGroupFromPlayer[lv_itViewer]);
        }
    }

mods/heroesbrawlmods/heroselectionmods/ingameheroselection.stormmodbase.stormdata/LibIGHS.galaxy:1280

                }
            }
            libNtve_gf_SetDialogItemPlayerId(libIGHS_gv_shuffleUI.lv_voiceChatFrame[lv_displayColumn], libCore_gf_GetPlayerIDfromTeamSlot(lv_updatedPlayer, libGame_gf_TeamNumberOfPlayer(lv_viewer)), PlayerGroupSingle(lv_viewer));
        }
    }

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

    if ((lp_bestLabel != null)) {
        DialogControlHookup(lv_bestInGameFrame, c_triggerControlTypeLabel, "Label");
        libNtve_gf_SetDialogItemPlayerId(DialogControlLastCreated(), 0, PlayerGroupAll());
        lv_bestInGameLabel = DialogControlLastCreated();
        DialogControlSetVisible(lv_bestInGameFrame, PlayerGroupAll(), true);

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

        DialogControlSetVisible(libUIUI_gv_EndofGameAwardsPanel.lv_mVPSecondaryPlayerBoostIcon, PlayerGroupAll(), false);
    }
    libNtve_gf_SetDialogItemPlayerId(libUIUI_gv_uIMVPSecondaryPanels[0].lv_heroCutscene, libGame_gv_mVPPlayer, PlayerGroupAll());
    libNtve_gf_SetDialogItemBannerLink(libUIUI_gv_uIMVPSecondaryPanels[0].lv_BannerCutscne, PlayerBanner(libGame_gv_mVPPlayer), PlayerGroupAll());
    libNtve_gf_SetDialogItemText(libUIUI_gv_uIMVPWinnerPanel.lv_killsValueLabel, FixedToText(libGame_gv_mVPStats[libGame_gv_mVPPlayer].lv_kills, c_fixedPrecisionAny), PlayerGroupAll());

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

        if ((libGame_gv_finalSecondaryAwardsList[lv_iterator].lv_winner != 0)) {
            lv_winnerPlayerId = libGame_gv_finalSecondaryAwardsList[lv_iterator].lv_winner;
            libNtve_gf_SetDialogItemPlayerId(libUIUI_gv_uIMVPSecondaryPanels[lv_iterator].lv_heroCutscene, lv_winnerPlayerId, PlayerGroupAll());
            libNtve_gf_SetDialogItemText(libUIUI_gv_uIMVPSecondaryPanels[lv_iterator].lv_awardTitleLabel, libGame_gv_finalSecondaryAwardsList[lv_iterator].lv_name, PlayerGroupAll());
            libNtve_gf_SetDialogItemText(libUIUI_gv_uIMVPSecondaryPanels[lv_iterator].lv_awardStatLabel, libGame_gf_GetFinalAwardValueInfo(lv_winnerPlayerId, lv_iterator), PlayerGroupAll());