Skip to reading
BASIC Scripting

Find an event by name

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

DESK REFERENCE

Use these names in the Event Functions list and in your BASIC handler. To see the exact fields supplied by an event in your version, print its context when the event happens.

Source table from Find an event by name, page 33
Starting a gameOnGameStart, OnGlobalReady
Changing roomsOnSceneLeaving, OnSceneLoaded
Player and controlOnPlayerChanged, OnCharacterControl
World interactionsOnInteraction, OnTriggerEntered, OnTriggerExited, OnAttachPointContact
Items and inventoryOnItemFound, OnInventoryChanged
DialogueOnDialogueStarted, OnDialogueEnded
Media playbackOnVideoEnd, OnMusicEnd
Loading a gameOnSaveLoaded
Your own messagesOnCustomEvent

Choose the event that answers the question directly. For example, to show a line when the player steps into a trigger, subscribe to OnTriggerEntered. A room-load handler would run much earlier, when the room first appears.

Page 33 of 86Permalink
Go to page