Skip to content

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.

OpenPlayerScreen(pid, screen)
Parameter Type
pid number the player
screen string "inventory", "character", "map", "codex" or "journal"

boolean - false before the player is in the world, for another name, a screen refused to them, or a game that cannot

-- a quest giver's last word: the journal opens on the new quest
StartPlayerQuest(pid, "abbots_errand")
OpenPlayerScreen(pid, "journal")

ClosePlayerScreens · OnPlayerScreenChange · the The game’s screens group of the index