Game queries and interfaces
On this page
HasInventory()#
HasInventory(item_id: String, character_id: String = "player", amount: int = 1) -> boolCheck an inventory item, owner/route and required amount.
Returns: Boolean.
HasInventory("key", "player", 1)Shared versus character-owned inventory settings affect the result.
InventoryCount()#
InventoryCount(item_id: String, character_id: String = "player") -> intCount copies of an item for a character/inventory route.
Returns: Integer.
InventoryCount("key", "player")CurrentScene()#
CurrentScene() -> StringRead the active room ID.
Returns: String.
CurrentScene()This is a PCA room, not get_tree().current_scene.
