Skip to content

OpenScreen

Opens one of the game’s player screens.

Switches to it when one of them is open already. Nothing opens while another screen of the game’s own is up (a dialogue, a minigame, the Esc menu), or for a screen the server refuses the player. true says the request was made - OnScreenChange says what came of it.

OpenScreen(screen)
Parameter Type
screen string "inventory", "character", "map", "codex" or "journal"

boolean, string - true; false and the reason for another name

function OnKey(key, pressed)
if key == "f6" and pressed then OpenScreen("codex") end
end

CloseScreens · GetOpenScreen · the The game’s screens group of the index