Skip to reading
Adventure Mechanics & Effects

Make “ring the bell twice” do something

Edition 0.86.3.4

Build authored boxing, camera moves, weather, attachments, inspectable objects, a radio and two-object puzzles using the existing adventure tools and scripts.

Download PDFView illustrations

TEXT PARSER / A SECRET SIGNAL

Command Preview after typing “Please ring the bell twice!” It shows the cleaned wording and the matching script. The screenshot uses a visual script. The working text on page 29 uses a GDScript with the same ID.

01. Create a GDScript record called ring_signal. Paste the script from page 29. Replace station in the room check with the actual room ID where your bell lives. Save the script. Use the same project as the radio if you want the radio clue to unlock the signal.

02. Open Text Parser Designer and check Enable Text Parser. Under Words to Ignore, include please and the. Under Custom Commands click Add Command. Type ring bell twice in the command field. Select ring_signal in the script field. Click Apply Parser Settings and save.

03. In Command Preview type “Please ring the bell twice!” and select Parse Preview. You should see “ring bell twice” as the cleaned command. For “ring bell two times” to work too, add a second custom command with those words and choose the same script.

04. In the game’s GUI, add or select a Text Box. In its Type Settings Text Box section leave Multiline off and turn on Run Text Parser Command When Enter Is Pressed. Make the box reachable in play. Start Test Scene, click inside it, type the command and press Enter. Before the radio clue the porter tells you to listen first. After hearing 1140 kHz, he leaves. Ring again and only the pigeons answer.

Check it in play. Command Preview checks the words. Test Scene runs the story. If the words match but the porter never leaves, check the room ID and whether you actually pressed Listen at the right station. Page 25 explains how to make the porter visibly leave the room.

Page 17 of 29Permalink
Go to page