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.
Syntax
Section titled “Syntax”OpenScreen(screen)| Parameter | Type | |
|---|---|---|
screen |
string | "inventory", "character", "map", "codex" or "journal" |
Returns
Section titled “Returns”boolean, string - true; false and the reason for another name
Example
Section titled “Example”function OnKey(key, pressed) if key == "f6" and pressed then OpenScreen("codex") endendSee also
Section titled “See also”CloseScreens · GetOpenScreen · the The game’s screens group of the index
