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

#1 2008-06-05 14:03:47

Freestylin_Monkey
Scratcher
Registered: 2008-03-24
Posts: 100+

i have a question about talking

does anyone know the script to make someone randomly choose what to say? ( he has about 3 or 4 things to say, and when he touches something, i want him to choose randomly, every time)


I am Lord of Lords, I am King of Kings, I AM MASTERS OF ALL MASTERS!!!
-But I am a servant of my mother

Offline

 

#2 2008-06-05 14:06:20

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: i have a question about talking

Maybe like this: When touching the object, set say to a random number. Then have each number a different phrase, like this:

[blocks]<when green flag clicked>[/blocks]
[blocks]<forever if><( <{ say }> <=> 1 )>[/blocks]
[blocks]<say[  ]for(  )secs>[/blocks]
[blocks]<end>[/blocks]


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#3 2008-06-05 14:17:38

Freestylin_Monkey
Scratcher
Registered: 2008-03-24
Posts: 100+

Re: i have a question about talking

but how would i put the pick random, in the touching object loop?


I am Lord of Lords, I am King of Kings, I AM MASTERS OF ALL MASTERS!!!
-But I am a servant of my mother

Offline

 

#4 2008-06-05 14:19:44

Bobby500
Scratcher
Registered: 2008-04-19
Posts: 1000+

Re: i have a question about talking

If touching _______
Set Say to (Pick Random of ___ and ___)

Offline

 

#5 2008-06-05 14:22:30

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: i have a question about talking

[blocks]<when green flag clicked>[/blocks]
[blocks]<set{ Say }to( 0[/blocks]
[blocks]<forever if><touching[ [/blocks]
[blocks]<broadcast[ Start[/blocks]
[blocks]<stop script>[/blocks]


[blocks]<when I receive[ Start[/blocks]
[blocks]<set{ say }to( <pick random( 1 )to( 4[/blocks]


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#6 2008-06-05 14:31:45

Freestylin_Monkey
Scratcher
Registered: 2008-03-24
Posts: 100+

Re: i have a question about talking

ok thanks


I am Lord of Lords, I am King of Kings, I AM MASTERS OF ALL MASTERS!!!
-But I am a servant of my mother

Offline

 

#7 2008-06-05 14:33:44

Freestylin_Monkey
Scratcher
Registered: 2008-03-24
Posts: 100+

Re: i have a question about talking

wait, when i did it, it chooses it randomly, but it cycles through the choices, then stops when it picks one, how do i avoid that?


I am Lord of Lords, I am King of Kings, I AM MASTERS OF ALL MASTERS!!!
-But I am a servant of my mother

Offline

 

#8 2008-06-05 14:37:06

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: i have a question about talking

Freestylin_Monkey wrote:

wait, when i did it, it chooses it randomly, but it cycles through the choices, then stops when it picks one, how do i avoid that?

Did you copy it exactly? Maybe the forever loop is messing it up. I thought that adding the stop script would help though... hmm.... Well, lemme try making a quick demonstration of it. Ok? Then I can really test my scripts.


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#9 2008-06-05 14:45:53

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: i have a question about talking

http://scratch.mit.edu/projects/CFCRubiks/181266

I used that with my other account. Whenever the cat touches the color black, he says something random. You can use the scripts if you want


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#10 2008-06-05 14:46:51

Freestylin_Monkey
Scratcher
Registered: 2008-03-24
Posts: 100+

Re: i have a question about talking

It might be the say choices, i put them in a forever loop and he talks even when not touching the object, but if i dont put one, he doesnt talk at all,  the random loop works fine


I am Lord of Lords, I am King of Kings, I AM MASTERS OF ALL MASTERS!!!
-But I am a servant of my mother

Offline

 

#11 2008-06-05 14:48:20

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: i have a question about talking

Freestylin_Monkey wrote:

It might be the say choices, i put them in a forever loop and he talks even when not touching the object, but if i dont put one, he doesnt talk at all,  the random loop works fine

Just download the game and see what I did to prevent that from happening.


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#12 2008-06-05 14:51:29

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: i have a question about talking

http://scratch.mit.edu/projects/CFCRubiks/181266 <--- this one.


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#13 2008-06-05 14:54:18

Freestylin_Monkey
Scratcher
Registered: 2008-03-24
Posts: 100+

Re: i have a question about talking

i got it, i got it, thanks, you can erase it if you want

Last edited by Freestylin_Monkey (2008-06-05 14:54:46)


I am Lord of Lords, I am King of Kings, I AM MASTERS OF ALL MASTERS!!!
-But I am a servant of my mother

Offline

 

#14 2008-06-05 14:55:59

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: i have a question about talking

Freestylin_Monkey wrote:

i got it, i got it, thanks, you can erase it if you want

Cool. Post the project when your done. I think I'll leave it up for people who have that same question.


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#15 2008-06-05 20:01:14

Freestylin_Monkey
Scratcher
Registered: 2008-03-24
Posts: 100+

Re: i have a question about talking

puple dot has the script...

http://scratch.mit.edu/projects/Freestylin_Monkey/181347


I am Lord of Lords, I am King of Kings, I AM MASTERS OF ALL MASTERS!!!
-But I am a servant of my mother

Offline

 

Board footer