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?

Welcome to Twine Q&A, where you can ask questions and receive answers from other members of the community.

You can also find hints and information on Twine on the official wiki and the old forums archive.

See a spam question? Flag it instead of downvoting. A question flagged enough times will automatically be hidden while moderators review it.