Skip to reading
GDScript Programming & Godot

ActivePlayer()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page
On this page
Code example
ActivePlayer() -> String

Read the active player character ID.

Returns: String.

Code example
ActivePlayer()

QuestState()#

Code example
QuestState(quest_id: String) -> String

Read a quest’s runtime state.

Returns: State String.

Code example
QuestState("signal_quest")

ObjectiveState()#

Code example
ObjectiveState(quest_id: String, objective_id: String) -> String

Read an objective’s runtime state within its quest.

Returns: State String.

Code example
ObjectiveState("signal_quest", "find_key")

HasVisited()#

Code example
HasVisited(scene_id: String, character_id: String = "player") -> bool

Query recorded character/room visit history.

Returns: Boolean.

Code example
HasVisited("lab", "ada")
Page 74 of 378Permalink
Go to page