THE UNDERSCORIAN RANDOM SENTENCE GENERATOR
Hello! Today… I have a simple random sentence generator guide… which is beginner friendly.
BRIEF INTRODUCTION/EXPLANATION
For this random sentence generator, I’ll be using the pronoun
verb
noun
method, which is quite simple. Basically, there are 9 properties, made up of 3 pronoun properties, 3 verb properties, and 3 noun properties. NOTE THAT THE PRONOUNS WILL BE NOUNS (I know I sound like I never spoke English lol but for this system I be calling some nouns “pronouns” because it’s just the defining noun)
Here’s a list:
Pronouns:
pronoun1
pronoun2
pronoun3
Verbs:
verb1
verb2
verb3
Noun:
noun1
noun2
noun3
And, you can mix 'n match whatever you want, but for this tutorial I’ll be doing…
Pronouns:
pronoun1 - The dog
pronoun2 - The alien
pronoun3 - The penguin
Verbs:
verb1 - ate
verb2 - hugged
verb3 - replied to
Noun:
noun1 - Stitch
noun2 - a penguin
noun3 - a beehive
So… without further ado, let’s get into it!
Step 1: The Properties
So, there are 9 properties in total, which should be named like [type of word]+ [number]
. The value of the properties are text, which is WHAT the word is.
I have mine with labels, like this.
(NOTE THAT THE CODE IS INACTIVE.)
Alright… perfect! Now, let’s make this function!
Now, add a button with the settings:
Button message: "Generate Random Sentence"
When button pressed, broadcast: "generatesentence"
Perfect!
Now, add a notification device with the settings:
Notification title: [anything you want!]
LEAVE THE CONTENT BLANK!
Now, open a new block as such, running on “generatesentence”:
Alright… we’re on to the block code now!
Step 2: The block code
Feel free to just copy my block code, or, read more in-depth with an explanation.
So, basically, we are randomizing each type of word and combining it with the other words. We will not use the same random value for each, which is what I would reccomend because the number of possible sentences triples.
Anyways, that’s all, tell me how you do, or what random words you chose!
Here’s mine!
(don’t mind the extra notification, this was a mistake when I first tested)
I'll be lucky enough one day for the sentence to be "The penguin eats a penguin" lol
Here are some fun ways I use this in my game:EXTRAS
- An RPG character creates a random quest. (Try adding mechanics like that, I don’t have the energy to make the random sentence correspond with certain actions)
- Possibly some sort of wild card action in a random events game.
Come up with some more of your own!
Happy Gimkitting! Hope you use this in your game! đź‘‹