# Set Dialog Item Actor

Grammar — Set dialogItem actor to actor for players
FlagsAction

This sets the actor for the dialog item. Supported for Dialog Items of type Portrait

# Arguments

  • int<control> — Dialog Item
  • string<gamelink::Actor> — Actor
  • playergroup — Players

Returns — void

void libNtve_gf_SetDialogItemActor(
	int lp_dialogItem,
	string lp_actor,
	playergroup lp_players,
);

Category: Dialog / Dialog Item Tools

# Examples

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:1771

    libNtve_gf_SetDialogItemModel(libVCUI_gv_pU_MissionPortraitFrame, libVoiC_gf_PC_CampaignMapContactPortrait(lp_mission), PlayerGroupAll());
    if ((libVoiC_gf_PC_CampaignMapContactActor(lp_mission) == null)) {
        libNtve_gf_SetDialogItemActor(libVCUI_gv_pU_MissionPortraitFrame, "PortraitActor", PlayerGroupAll());
    }
    else {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:1774

    }
    else {
        libNtve_gf_SetDialogItemActor(libVCUI_gv_pU_MissionPortraitFrame, libVoiC_gf_PC_CampaignMapContactActor(lp_mission), PlayerGroupAll());
    }
    autoE665DE91_ae = UserDataInstanceCount("Clickable");

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:1011

    libNtve_gf_SetDialogItemModel(libNCUI_gv_nU_MissionPortrait, libComC_gf_CC_MapContactPortrait(lp_mission), PlayerGroupAll());
    if ((libComC_gf_CC_MapContactActor(lp_mission) == null)) {
        libNtve_gf_SetDialogItemActor(libNCUI_gv_nU_MissionPortrait, "PortraitActor", PlayerGroupAll());
    }
    else {

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:1014

    }
    else {
        libNtve_gf_SetDialogItemActor(libNCUI_gv_nU_MissionPortrait, libComC_gf_CC_MapContactActor(lp_mission), PlayerGroupAll());
    }
    ConversationDataRegisterPortrait("char_Nova", PortraitGetTriggerControl(libNCUI_gv_nU_MissionPortrait));

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:1418

    libNtve_gf_SetDialogItemModel(libNCUI_gv_nU_MissionPortrait, libComC_gf_CC_MapContactPortrait(libNCUI_gf_NU_NextAvailableMission()), PlayerGroupAll());
    if ((libComC_gf_CC_MapContactActor(libNCUI_gf_NU_NextAvailableMission()) == null)) {
        libNtve_gf_SetDialogItemActor(libNCUI_gv_nU_MissionPortrait, "PortraitActor", PlayerGroupAll());
    }
    else {

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:1421

    }
    else {
        libNtve_gf_SetDialogItemActor(libNCUI_gv_nU_MissionPortrait, libComC_gf_CC_MapContactActor(libNCUI_gf_NU_NextAvailableMission()), PlayerGroupAll());
    }
    libNtve_gf_SetDialogItemText(libNCUI_gv_nU_MissionPortraitTitle, libComC_gf_CC_MapContactName(libNCUI_gf_NU_NextAvailableMission()), PlayerGroupAll());