Science Oxford Logo

Allow your reader to customise the story

You can use inputs to allow your reader to e.g. give the character a name.


Step 1: Creating a set-up passage.

Asking your reader to input information pops up a box over your story.

example dialog box screenshot

Open your first passage, then copy and paste the below code at the top, before your story starts.

(set: $name to (prompt: "Hello, what is your name?", ""))
Welcome to the story $name!

This does a few things:


Test it out, then edit the code so that it fits your story.


If you have asked your reader for their name, you should use it in your story! Look through all of your paragraphs, and add $name to put their name into the text.

What other questions could you ask your reader? How will you use this information throughout your story?