Skip to reading
PCA Script Programming

open_interaction_coin()

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

Open Interaction Coin | Action ID: OpenInteractionCoin

Open the interaction coin for a target entity when that feature is configured.

Source table from open_interaction_coin(), page 188
Option key / fieldMeaning and accepted inputDefault
Object / Character entityIdChoose a scene entity ID. May be blank.Blank

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
open_interaction_coin({"entityId": "archive_door"})

In use. Open a coin from a dedicated Inspect button or a hotspot interaction. The target must have useful verbs. A coin opened with no meaningful target cannot invent responses.

close_interaction_coin()#

Close Interaction Coin | Action ID: CloseInteractionCoin

Close the currently open interaction coin.

No options in the standard shared schema.

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
close_interaction_coin({})

In use. Close the coin when a menu takes over. It hides the coin, rather than disabling the feature for the rest of the game.

Page 188 of 357Permalink
Go to page