Skip to reading
GDScript Programming & Godot

ChangeSceneDescription()

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

Change the description stored for a scene.

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

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await ChangeSceneDescription({"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.

Page 131 of 378Permalink
Go to page