0 votes
asked 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
answered by (22.3k 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>

 

commented by (150 points)
Thank you so much!
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.
...