Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How do i fix my name input problem

Hey i really need help with this!
I use harlowe.
This is the problem:

(put: (prompt: "What's your name?") into $name)
Your name is $name.

When i do it just says 0 instead of the name.

Comments

  • edited August 2016
    I don't know how to fix it but I know what's causing it, $ creates a variable (a number basically), you can't make a number into a name just doesn't make sense
  • You need to state which Story Format you are using when you ask a question, as answers can be different for each one. Based on the syntax of your example I will assume you are using Harlowe.

    Try using the (set:) macro instead
    (set: $name to (prompt: "What's your name?"))
    
    name: $name
    
Sign In or Register to comment.