Skip to reading
PCA Script Programming

Event filters and caller context

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

Earlier edition reference / Current 0.86.4.0 property paths > p. 329

Source table from Event filters and caller context, page 300
PCA headerFilter
when player enters labRoom-load hook filtered to lab; also available as when room lab loads.
when player talks to eliasInteraction hook, target character elias and talk verb.
when player interacts using lookInteraction hook filtered to look.
when player uses key on archive_doorInteraction hook filtered by item, target and use verb.
when event signal_poweredExact custom event name; inspect the body’s event data for finer filters.

An interaction event observes a hook; it does not automatically replace the object’s authored interaction response. Do not put a reward both in the response and an unguarded broad listener. Trigger enter/exit reports overlap, not every possible scene collision.

A GUI script caller can provide guiId, elementId and the GUI event name. Parser calls can provide command, cleanedCommand and customCommand. A function invoked manually may have none of these keys. Use a small diagnostic test to see the actual payload before depending on it.

Page 300 of 357Permalink
Go to page