Skip to reading
PCA Script Programming

change_scene_description()

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

Change Scene Description | Action ID: ChangeSceneDescription

Change the description stored for a scene.

Source table from change_scene_description(), page 122
Option key / fieldMeaning and accepted inputDefault
Scene sceneIdChoose a scene ID.Blank
Description descriptionText.Blank

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

Code example
change_scene_description({"sceneId": "lab", "description": ""})

In use. Replace the room description after the machine starts. This edits descriptive text; it is not an automatic speech line. Add Show Message or Player Say if the player should hear or read it immediately.

change_object_description()#

Change Object Description | Action ID: ChangeObjectDescription

Change an object's descriptive text.

Source table from change_scene_description(), page 122
Option key / fieldMeaning and accepted inputDefault
Scene sceneIdChoose a scene ID.Blank
Object entityIdChoose an entity in the selected scene.Blank
Description descriptionText.Blank

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

Code example
change_object_description({"sceneId": "lab", "entityId": "archive_door", "description": ""})

In use. After powering the lamp, change its description to "The signal is powered." The next Look response must use that description or the built-in fallback; a hard-coded Look message continues to say whatever you wrote in it.

Page 122 of 357Permalink
Go to page