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?
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?
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.
@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}?
*choice
#As I said.
Very well then.
*set name ${Name}
*page_break
The exact coding.
You don’t need
*set name ${Name}
you’ve already set it here
*input_text Name
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.
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!