# 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.stormmod

LibPBUI.galaxy

// L496
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.stormmod

LibIGHS.galaxy

// L1280
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.stormmod

UILib.galaxy

// L2812
libNtve_gf_SetDialogItemPlayerId(DialogControlLastCreated(), 0, PlayerGroupAll())
// L2948
libNtve_gf_SetDialogItemPlayerId(libUIUI_gv_uIMVPSecondaryPanels[0].lv_heroCutscene, libGame_gv_mVPPlayer, PlayerGroupAll())
// L2971
libNtve_gf_SetDialogItemPlayerId(libUIUI_gv_uIMVPSecondaryPanels[lv_iterator].lv_heroCutscene, lv_winnerPlayerId, PlayerGroupAll())