Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Putting variables into one sentence using the "Say/Think" blocks
- TheVaultBoy
-
3 posts
Putting variables into one sentence using the "Say/Think" blocks
I am creating something that is kind of like an rpg, and certain characters will call you by your name, which you input at the beginning of the game. In order to do that, I created a variable called “name”. When you input your name, it changes that variable to equal whatever you put in there. Assuming these images work, this is what I have set up.
What I want to do, is when people are talking to you, they can say: “Hello, {Whatever name is set to}, how are you?” Although I cannot seem to get it to do that. Putting the name variable into the text zone doesn't solve the problem, either, because all that does is overwrite what was already there. If anyone can help that would be really good. Thanks.
What I want to do, is when people are talking to you, they can say: “Hello, {Whatever name is set to}, how are you?” Although I cannot seem to get it to do that. Putting the name variable into the text zone doesn't solve the problem, either, because all that does is overwrite what was already there. If anyone can help that would be really good. Thanks.
- TheVaultBoy
-
3 posts
Putting variables into one sentence using the "Say/Think" blocks
edit: the images didnt work lol
- Dan0510
-
100+ posts
Putting variables into one sentence using the "Say/Think" blocks
Does this help? 
You could also use the username block instead of the variable

You could also use the username block instead of the variable
Last edited by Dan0510 (April 26, 2014 18:31:14)
- levtey
-
100+ posts
Putting variables into one sentence using the "Say/Think" blocks
Last edited by levtey (April 26, 2014 18:40:19)
- billk123
-
28 posts
Putting variables into one sentence using the "Say/Think" blocks
Levtey that was an exact copy of the one shown above.
- levtey
-
100+ posts
Putting variables into one sentence using the "Say/Think" blocks
Sorry, I posted it before I saw the post. Levtey that was an exact copy of the one shown above.
- pdpdizon
-
1 post
Putting variables into one sentence using the "Say/Think" blocks
This helped me with my project, thanks!
- BeeBoy10
-
48 posts
Putting variables into one sentence using the "Say/Think" blocks
Last edited by BeeBoy10 (Jan. 16, 2015 14:47:37)
- deck26
-
1000+ posts
Putting variables into one sentence using the "Say/Think" blocks
I think you mean
- d0lf1ns
-
47 posts
Putting variables into one sentence using the "Say/Think" blocks
These answers are great but isn't he asking how to change the name variable?
- deck26
-
1000+ posts
Putting variables into one sentence using the "Say/Think" blocks
Hopefully it should be obvious enough that you can remove all the username stuff if it's not required. So These answers are great but isn't he asking how to change the name variable?
- awesomedudesilas
-
100+ posts
Putting variables into one sentence using the "Say/Think" blocks
















- Discussion Forums
- » Help with Scripts
-
» Putting variables into one sentence using the "Say/Think" blocks