Can't Extract another Token - Help!

I’m trying to insert a variable name with ${name}, but it says Can’t extract another token when I put

*set name ${name}


You’re trying to set a variable as itself.


*set name “Bob”

If you’re trying to include a variable in the text then just do

Hello ${name}!

I’ve a tutorial on this.

1 Like

@FairyGodfeather No, the name is currently set an “Unknown”. I’m trying to get it to set the name as the variable.

You can’t

*set name ${name}

Can you explain in more detail what you’re trying to do.

I’m trying to put in a name variable.

*input_text Name
Your name is ${Name}?
  #As I said.
    Very well then.
    *set name ${Name}

The exact coding.

You don’t need

*set name ${Name}

you’ve already set it here

*input_text Name

1 Like

Just another thought, i recommend using lower case for variables. Name and name are different and it makes it harder to track which you’ve used for different variables causing more headaches later into the story.


Like @FairyGodFeather said *input_text Name already set the name.

${name} is just used to display the variable.

Basically when you’re doing *set name %{name} you’re trying to set the variable as the variable, which makes no sense.

1 Like

Thank you very much, that worked! Now anyone who plays the game is welcome to name themselves Billy Bob Jim Bob Joe Bob if they so please~Much appreciated!