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

#1 2011-12-13 19:43:15

Garr8
Scratcher
Registered: 2011-08-10
Posts: 1000+

help with generator

i want to make a name generator, but i dont know how, what scripts do i need and what should my sprites look like?


What I scored on Pokemon Quiz: Porygon

Offline

 

#2 2011-12-13 20:12:11

Votre_espoir_et_les
New Scratcher
Registered: 2011-12-13
Posts: 10

Re: help with generator

I'm not too experienced with this kind of stuff but maybe you should do

When name trigger is on...
Pick number between 1 and 5
if 1 the first letter is B
if 2 the first letter is M
if 3 the first letter is T
if 4 the first letter is J
if 5 the first letter is K

and maybe have it random generate and at certain points it should only have vowels and at others, only consenants, and maybe one variable could be set in order to stop the name creation process. Sorry if this is unclear.

Offline

 

#3 2011-12-13 20:18:30

Garr8
Scratcher
Registered: 2011-08-10
Posts: 1000+

Re: help with generator

its unclear but thx for at least trying. What i mean is should i use variables, a list, or some other of the mathematical stuff that i do not understand?


What I scored on Pokemon Quiz: Porygon

Offline

 

#4 2011-12-13 20:42:07

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: help with generator

If you want to generate names without a defined list, that would require lots of calculations. Other wise, you can get a list, store a whole bunch of names on it, and use this:

http://img341.imageshack.us/img341/9601/lalalar.gif


Hai.

Offline

 

#5 2011-12-13 20:54:30

Garr8
Scratcher
Registered: 2011-08-10
Posts: 1000+

Re: help with generator

thx, but i made need help i only know Algebra 1 A math, i know nothing about calculus or trigonometry.


What I scored on Pokemon Quiz: Porygon

Offline

 

#6 2011-12-13 21:12:18

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: help with generator

If you want to generate names, that would definitely be difficult as there are many things to consider.

What is a name? Would it be pronounceable? How would the generator spit out names? Etc Etc.


Hai.

Offline

 

#7 2011-12-13 21:39:34

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: help with generator

Okay; here is something you can try:

Code:

Have the user input a list of vowels they want in the name:
aeiouy
Have the user input a list of constants they want:
bcdfghjklmnpqrstvwxz
Then ask can they want their name to be written (V = Vowel, C = Constant)
VCVCV
If the first letter of the "form" is "V" then pick a random vowel they put in the list above and add it to a variable ( name ) and if it's a constant, do the same thing, but with constants.
Output: acelo ( or something )
In case you are wondering how to use the variable use the "join" operator:

[set "name" to "(join 'name' with '[letter]')"]

There are probably other ways, but that's how I would probably do it.

Offline

 

#8 2011-12-13 21:42:48

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: help with generator

Magnie wrote:

Okay; here is something you can try:

Code:

Have the user input a list of vowels they want in the name:
aeiouy
Have the user input a list of constants they want:
bcdfghjklmnpqrstvwxz
Then ask can they want their name to be written (V = Vowel, C = Constant)
VCVCV
If the first letter of the "form" is "V" then pick a random vowel they put in the list above and add it to a variable ( name ) and if it's a constant, do the same thing, but with constants.
Output: acelo ( or something )
In case you are wondering how to use the variable use the "join" operator:

[set "name" to "(join 'name' with '[letter]')"]

There are probably other ways, but that's how I would probably do it.

Wow, never thought of that.  yikes  Nice idea!


Hai.

Offline

 

#9 2011-12-13 22:00:59

Garr8
Scratcher
Registered: 2011-08-10
Posts: 1000+

Re: help with generator

Magnie wrote:

Okay; here is something you can try:

Code:

Have the user input a list of vowels they want in the name:
aeiouy
Have the user input a list of constants they want:
bcdfghjklmnpqrstvwxz
Then ask can they want their name to be written (V = Vowel, C = Constant)
VCVCV
If the first letter of the "form" is "V" then pick a random vowel they put in the list above and add it to a variable ( name ) and if it's a constant, do the same thing, but with constants.
Output: acelo ( or something )
In case you are wondering how to use the variable use the "join" operator:

[set "name" to "(join 'name' with '[letter]')"]

There are probably other ways, but that's how I would probably do it.

That seems very perplexing=-(


What I scored on Pokemon Quiz: Porygon

Offline

 

#10 2011-12-14 00:38:02

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Offline

 

#11 2011-12-14 16:56:53

Garr8
Scratcher
Registered: 2011-08-10
Posts: 1000+

Re: help with generator

i downloaded the link, but i want to make a sci-fi/ fantasy name generator where the names are created by combining parts of words. For example, DreadedElk, which are two words combined to make one name. Does anybody have an idea on how to do it like that?


What I scored on Pokemon Quiz: Porygon

Offline

 

#12 2011-12-14 21:59:55

iTweak0r
Scratcher
Registered: 2011-07-30
Posts: 100+

Re: help with generator

fg123 wrote:

If you want to generate names without a defined list, that would require lots of calculations. Other wise, you can get a list, store a whole bunch of names on it, and use this:

http://img341.imageshack.us/img341/9601/lalalar.gif

Or (item (any) of [list])


Make it in Scratch! because it's cooler when it's made in scratch
http://i.imgur.com/D4iqPHR.png

Offline

 

#13 2011-12-15 07:17:49

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: help with generator

Garr8 wrote:

i want to make a name generator, but i dont know how, what scripts do i need and what should my sprites look like?

Sprites? Why would you ask US what YOUR sprites should look like? Isn’t that YOUR decision?

Scripts on the other hand, for a name generator it depends. You could either have it generate letters, with vowel sensors so that the name is speakable, or you could add a bunch of names to a list, and then have it choose random.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

Board footer