Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

[Harlowe]Convert a string from (prompt:) into a number

$
0
0
Heal Up(click: "Heal Up")[(set: $Hgain to (prompt: "How many of your crumbs would you like to use?"))(set: $Health to it + $Hgain)(set: $Crumbs to it - $Hgain)]

So the user inputs the number of $Crumbs they want to use to heal. The issue is that (prompt:) takes the input as a string. I need it as a number. Anything I can do, or should I go a different route? I have an alt way prepped, but I wanted to see if I could do something a little more special

Viewing all articles
Browse latest Browse all 1844

Trending Articles