is_valid()
On this page
is_valid(value)Check a record’s existence, an object’s validity or whether an ordinary value is non-null.
Returns: Boolean.
is_valid(0)False and 0 are valid values. This is not a truthiness test.
type_of()#
type_of(value)Return the PCA-facing type name of a value.
Returns: Text such as integer, number, text, array, dictionary, vector3, color, record or null.
type_of([1, 2])exists()#
exists(value)Test whether a record reference exists, or an ordinary value is non-null.
Returns: Boolean.
exists(objects.archive_door)For a text value it does not interpret that text as a record ID; use an actual reference or a specific lookup.
has_inventory() and aliases#
has_inventory(item, character = "player", count = 1)Check inventory possession through the game’s inventory route.
Returns: Boolean.
Aliases: player_has()
has_inventory("key", "player", 1)The item comes first. Character-owned and shared inventory modes affect the result.
