0 votes
by (150 points)

When using Harlowe, I used the following:

(set: $name to (prompt: "Enter your name:", "Type your name here"))

$name, you have been chosen

 

But how would I transfer this so that it works in sugarcube?

1 Answer

+1 vote
by (23.6k points)

In sugarcube it would look something like this:

What is your name? <<textbox "$name" "Type your name here"  autofocus>><<button "Enter">><<replace "#name">>$name, you have been chosen<</replace>><</button>>
<span id="name"></span>

 

by (150 points)
Thank you so much!
by (200 points)
Hi I'm wanting to use the same thing but using Harlowe 3.0.1.

Any tips?

Cheers
...