OpenPlayerScreen
Opens one of the game’s player screens on a player’s screen.
Switches to it when one of them is open already. The game itself may still say no - while another screen of its own is up (a dialogue, a minigame, the Esc menu) nothing opens.
Syntax
Section titled “Syntax”OpenPlayerScreen(pid, screen)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
screen |
string | "inventory", "character", "map", "codex" or "journal" |
Returns
Section titled “Returns”boolean - false before the player is in the world, for another name, a screen refused to them, or a game that cannot
Example
Section titled “Example”-- a quest giver's last word: the journal opens on the new questStartPlayerQuest(pid, "abbots_errand")OpenPlayerScreen(pid, "journal")See also
Section titled “See also”ClosePlayerScreens · OnPlayerScreenChange · the The game’s screens group of the index
