Skip to reading
BASIC Scripting

Choose the action the story needs

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 illustrations

BASIC IN YOUR GAME

For a simple notice, ShowMessage is enough. When the story calls for a conversation, a camera change or a journey to another room, pick the action that owns that job.

The running game shows “Last train at midnight.” after BASIC calls ShowMessage.

Action fragments for use inside Run#

Code example
AWAIT StartDialogue({"dialogueId": "ticket_clerk"})
AWAIT PlaySound({"assetId": "station_chime"})
AWAIT StartCutscene({"cutsceneId": "train_arrival"})

These are separate examples. Replace each quoted ID with an existing record of the matching kind in your game. A sound needs an imported audio asset. A dialogue and a cutscene each need their own authored record.

Source table from Choose the action the story needs, page 29
Change roomsChangeScene takes a destination sceneId. Set spawnId when the player should arrive at a particular named spawn.
Move a characterCharacterWalkTo can use characterId and targetId. Choose an existing character and a reachable target in the correct room.
Advance a questStartQuest takes questId and can take stageId. Use an objective action when the event only completes one part of an ongoing quest.
Page 29 of 86Permalink
Go to page