Can't Extract another Token - Help!


#1

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

*set name ${name}

Help?


#2

You’re trying to set a variable as itself.

Do

*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.


#3

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


#4

You can’t

*set name ${name}

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


#5

I’m trying to put in a name variable.

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

The exact coding.


#6

You don’t need

*set name ${Name}

you’ve already set it here

*input_text Name


#7

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.


#8

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.


#9

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!