Skip to reading
PCA Script Programming

inventory_count()

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
inventory_count(item, character = "player")

Count copies of an inventory item for the selected owner/route.

Returns: Integer.

Code example
inventory_count("key", "player")

current_scene()#

Code example
current_scene()

Get the currently active room ID.

Returns: Text ID.

Code example
current_scene()

active_player()#

Code example
active_player()

Get the active player character ID.

Returns: Text ID.

Code example
active_player()

has_visited()#

Code example
has_visited(scene, character?)

Check recorded visit history.

Returns: Boolean.

Code example
has_visited("lab", "ada")

Omitting the character follows the runtime’s default player route.

Page 62 of 357Permalink
Go to page