This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-07-07 07:30:21

Lollypop454
New Scratcher
Registered: 2012-07-07
Posts: 1

Making interactive stories.

When making interactive stories, i know how to ask questions and put the answers in a speech but how do i make a story asking mulitple questions and not having the same answer like this.

Sprite: Say a Animal
answer: Pig
S: Now say a name
Answer: Lilly
S: last one, say a number
a: 10

s: there was a pig called lilly who was 10 years old


lol thats just an example x please help!!

Offline

 

#2 2012-07-07 09:52:45

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Making interactive stories.

ask [Say an animal] and wait
set [animal v] to (answer)
ask [now say an name] and wait
set [name v] to (answer)
ask [last one, say an number] and wait
set  [number v] to (answer)
say (join [there was a](join (animal)(join [who was] (join (number)[years old]))))

Last edited by TRocket (2012-07-07 09:57:36)


http://i.imgur.com/1QqnHxQ.png

Offline

 

Board footer