Skip to reading
PCA Script Programming

execute_preposition()

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

Execute Two-Object Command | Action ID: ExecutePreposition

Perform a two-target verb interaction using a source, target and verb.

Source table from execute_preposition(), page 85
Option key / fieldMeaning and accepted inputDefault
Verb verbIdChoose a Verb Designer ID.Blank
First Object (entity:id or inventory:id) sourceIdText.Blank
Second Object (entity:id or inventory:id) targetIdText.Blank

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

Code example
execute_preposition({"verbId": "", "sourceId": "", "targetId": "archive_door"})

In use. For Use Key On Door, supply the source item/record reference, the door reference, and the Use verb. Configure the verb's preposition rules and the matching interaction first. A normal scene entity ID and an inventory reference are different kinds of target.

cancel_preposition()#

Cancel Two-Object Command | Action ID: CancelPreposition

Cancel the currently assembled two-object interaction.

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
cancel_preposition({})

In use. Let a Cancel button clear Use Key On ... when the player changes their mind. It clears the pending combination, rather than deleting the item or disabling the verb permanently.

Page 85 of 357Permalink
Go to page