# Set Data Conversation Portrait

Grammar — Set portrait for conversation stateIndex|State to portrait
FlagsNative | Action

Sets a portrait to be used for a given character during data-driven conversations.

# Arguments

  • string [ convcharacter ] — State Index
  • int [ portrait ] — Portrait

Returns — void

native void ConversationDataRegisterPortrait(
	string stateIndex,
	int p,
);

Category: Conversation / Data Conversations

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L10636
ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorZeratul), c_invalidPortraitId)
// L25189
ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorAdjutant), PortraitGetPlanetPanel())
// L25190
ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorHanson), PortraitGetPlanetPanel())
// L25191
ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorHorner), PortraitGetPlanetPanel())
// L25192
ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorTosh), PortraitGetPlanetPanel())
// L25193
ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorTychus), PortraitGetPlanetPanel())
// L25194
ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorValerian), PortraitGetPlanetPanel())
// L25195
ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorZeratul), PortraitGetPlanetPanel())
// L25210
ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorAdjutant), c_invalidPortraitId)
// L25211
ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorHanson), c_invalidPortraitId)
// L10636
ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorZeratul), c_invalidPortraitId)
// L25189
ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorAdjutant), PortraitGetPlanetPanel())
// L25190
ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorHanson), PortraitGetPlanetPanel())
// L25191
ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorHorner), PortraitGetPlanetPanel())
// L25192
ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorTosh), PortraitGetPlanetPanel())
// L25193
ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorTychus), PortraitGetPlanetPanel())
// L25194
ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorValerian), PortraitGetPlanetPanel())
// L25195
ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorZeratul), PortraitGetPlanetPanel())
// L25210
ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorAdjutant), c_invalidPortraitId)
// L25211
ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorHanson), c_invalidPortraitId)

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L20864
ConversationDataRegisterPortrait("char_EvolutionMaster", PortraitGetTriggerControl(libSwaC_gv_zS_ArmyCustomMissionContactPortrait))
// L20866
ConversationDataRegisterPortrait("char_EvolutionMaster", c_invalidPortraitId)

# campaigns/swarmstoryutil.sc2mod

Lib281DEC45.galaxy

// L4885
ConversationDataRegisterPortrait(lib281DEC45_gv_zSS_Characters[lib281DEC45_gf_ZSS_CharacterIndex(lv_indexCharacter)].lv_conversationLink, lp_portrait)
// L4889
ConversationDataRegisterPortrait("char_Stukov02", lp_portrait)
// L4890
ConversationDataRegisterPortrait("char_DropShipAdjutant", lp_portrait)
// L4896
ConversationDataRegisterPortrait(lib281DEC45_gv_zSS_Characters[lib281DEC45_gf_ZSS_CharacterIndex(lv_indexCharacter)].lv_conversationLink, c_invalidPortraitId)

# campaigns/voidstory.sc2campaign

VoidCampaignStoryLib.galaxy

// L5366
ConversationDataRegisterPortrait(libVoiC_gf_PC_ClickableConversationLink(lv_indexClickable), c_invalidPortraitId)
// L6298
ConversationDataRegisterPortrait(libVoiC_gf_PC_ClickableConversationLink(lv_indexClickable), c_invalidPortraitId)
// L6333
ConversationDataRegisterPortrait(libVoiC_gf_PC_ClickableConversationLink(lv_indexClickable), c_invalidPortraitId)

# campaigns/voidstory.sc2campaign

VoidCampaignUILib.galaxy

// L1720
ConversationDataRegisterPortrait(libVoiC_gf_PC_ClickableConversationLink("Artanis"), PortraitGetPlanetPanel())
// L1780
ConversationDataRegisterPortrait(libVoiC_gf_PC_ClickableConversationLink(UserDataInstance("Clickable", lv_clickableIndex)), c_invalidPortraitId)
// L1783
ConversationDataRegisterPortrait(libVoiC_gf_PC_ClickableConversationLink(UserDataInstance("Clickable", lv_clickableIndex)), PortraitGetTriggerControl(libVCUI_gv_pU_MissionPortraitFrame))
// L3267
ConversationDataRegisterPortrait(libVoiC_gf_PC_ClickableConversationLink(lv_indexClickable), lp_portrait)

# mods/missionpacks/novacampaign.sc2mod

LibNCST.galaxy

// L4609
ConversationDataRegisterPortrait(libNovC_gf_NC_ClickableConversationLink(lv_indexClickable), c_invalidPortraitId)
// L5182
ConversationDataRegisterPortrait(libNovC_gf_NC_ClickableConversationLink(lv_indexClickable), c_invalidPortraitId)

# mods/missionpacks/novacampaign.sc2mod

LibNCUI.galaxy

// L1016
ConversationDataRegisterPortrait("char_Nova", PortraitGetTriggerControl(libNCUI_gv_nU_MissionPortrait))
// L1542
ConversationDataRegisterPortrait(libNovC_gf_NC_ClickableConversationLink(lv_indexClickable), lp_portrait)

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L9464
ConversationDataRegisterPortrait("char_TerranAdjutant", libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft))
// L9465
ConversationDataRegisterPortrait("char_ProtossExecutor", libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft))
// L9466
ConversationDataRegisterPortrait("char_Izsha", libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft))
// L9467
ConversationDataRegisterPortrait("char_SgtHammer", libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft))
// L9468
ConversationDataRegisterPortrait("char_ACScientist", libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft))
// L9469
ConversationDataRegisterPortrait("char_DominionOfficer", libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft))
// L9470
ConversationDataRegisterPortrait("char_ShakurasAlly", libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft))
// L9471
ConversationDataRegisterPortrait("char_Hill", libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft))
// L9472
ConversationDataRegisterPortrait("char_TDChampion", libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft))
// L9473
ConversationDataRegisterPortrait("char_Vermillion", libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft))

# mods/voidprologue.sc2mod

LibA3DDD02B.galaxy

// L6846
ConversationDataRegisterPortrait("char_RescuedTemplar", PortraitGetTriggerControl(libA3DDD02B_gv_pP_MLContactPortrait))