Skip to reading
PCA Script Programming

first_visit()

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
first_visit(scene?)

Ask whether this is a first visit for a room, using the current event’s room when omitted.

Returns: Boolean.

Code example
first_visit("lab")

Use in the appropriate entry context. It is a visit-history query, not a persistent once-only wrapper for any arbitrary function.

animation_ended()#

Code example
animation_ended(character)

Check the actor’s current animation completion state.

Returns: Boolean.

Code example
animation_ended("player")

A looping clip does not naturally end. Use with wait until only when completion can occur.

quest_state()#

Code example
quest_state(quest)

Read the runtime state of a quest.

Returns: State text, such as inactive, active, completed or failed.

Code example
quest_state("signal_quest")

objective_state()#

Code example
objective_state(quest, objective)

Read the state of an objective within a quest.

Returns: State text.

Code example
objective_state("signal_quest", "find_key")
Page 63 of 357Permalink
Go to page