GetPlayerPortrait

Prototype: GemRB.GetPlayerPortrait (Slot[, SmallOrLarge])

Description: Queries the player’s portrait. To set the portrait of a new character you must use FillPlayerInfo().

Parameters:

  • Slot - the PC’s position in the party
  • SmallOrLarge - boolean, specify 1 if you want to get the large portrait

Return value: the player’s portrait name (image resref)

See also: FillPlayerInfo


Back to function index, GUIScript introduction.