CFG Storygen
To generate a story, all you'll need to do is click the "generate" button.
If you want to know how this works, it uses a "context free grammar" to generate its stories. Look around in the grammar.txt file if you're interested in seeing what it looks like!
Status | Released |
Category | Other |
Platforms | HTML5 |
Rating | Rated 5.0 out of 5 stars (2 total ratings) |
Author | EPICPIKAGUY |
Tags | Generator, Procedural Generation, PROCJAM |
Comments
Log in with itch.io to leave a comment.
"The fight was so well written the generator wasn't able to write it. So enjoy this meta joke instead."
If you were to ask anyone who the most average bank robber was, that person would say Chell. And for Chell, this particular day started out like any other.
Chell woke up in her coffee shop. Then, Chell heard a knock on her door. Chell opened it.
There was a rather strange chair on the ground. Suddendly, it transforned into a vampire!
"My name is Chell, and I'm the most magical vampire in the universe!" the vampire said.
"Anyway, I think you would be better as a plumber, so I'm going to turn you into one." Chell said.
"No you won't!" Chell yelled. But it was too late. Chell cast a spell on Chell using her short orange wand. Chell swiftly transformed into a plumber.
Chell looked at Chell. "I think we should kiss!" Chell said.
"I'm sorry, but that's the dumbest thing I've ever heard." Chell said.
"Take that back!" yelled Chell.
Chell ran away, never to be seen again.
fin.
Confusing when two people have the same name
I believe the term "perfect" would fit better.
yes that works just as well
this was sweet lmao. it reminds me of a dream scenario.
First time pressing “generate” gave me the following:
This is amazing and hilarious.
laughing for -5 minuets sounds painful
" Anna was in her trailer park, watching tv. Anna only became a mermaid 3 days ago, and Anna was just getting used to it. Anna walked outside to admire the sky. On her walk, Anna noticed something strange in her neighbor's bushes, and went over to investigate.
There was a rather strange computer mouse on the ground. Suddendly, it transforned into a princess!
"My name is Galthur, and I'm the most magical princess in the universe!" the princess said.
"Anyway, I think you would be better as a mermaid, so I'm going to turn you into one." Galthur said.
"No you won't!" Anna yelled. But it was too late. Galthur ripped Anna's soul out of his body and put it into the body of a dumb mermaid. Anna was in shock.
Anna suddendly had a heart attack.
"Ooff... please... save me..." Anna said before his eyes closed and his body went limp.
Galthur rushed to save Anna. Galthur tried to use a nearby chair as a defibrillator. Suprisingly, it worked.
"Wow, thanks so much for saving me!" Anna said.
"No problem!" Galthur replied.
fin."
She was already a mermaid but then was transformed into a mermaid.
Ok then.
Also, when the text pops up claiming that it was all a dream, window is spelled winodw.
I don't think I had very many checks to prevent contradictions in generated stories, LOL. As you probably gathered, this was more of an experimental project that tends to be more fantastic than realistic.
Also, looking back at this project: I can't help but notice that younger me had some very... interesting ideas about what constitutes good and interesting storytelling. Regardless, a lot of people thought that this story generator was pretty good? Maybe I should do an updated an improved version...
It would be really cool if you made a new one, but I'm not sure how much work that would take. I just kinda found it funny that it decided to make a mermaid into a mermaid.
same thing happened to me
Melvin woke up in her dollar store. Being an elf was tough for Melvin, but rewarding in its own way. Then, Melvin heard a knock on her door. Melvin opened it.
There was a rather strange photo of Melvin on the ground. Suddendly, it transforned into a vampire!
"My name is Samus, and I'm the most magical vampire in the universe!" the vampire said.
"Anyway, I think you would be better as an elf, so I'm going to turn you into one." Samus said.
"No you won't!" Melvin yelled. But it was too late. Samus cast a spell on Melvin using her thin orange wand. Melvin swiftly transformed into an elf.
Melvin suddendly had a heart attack.
"Ooff... please... save me..." Melvin said before his eyes closed and his body went limp.
Samus rushed to save Melvin. Samus tried to use a nearby kitchen sink as a defibrillator. Suprisingly, it worked.
"Wow, thanks so much for saving me!" Melvin said.
"No problem!" Samus replied.
To be continued...
Nice work! The stories seem to make more sense relative to other story generators.
Thanks!
Interesting... the topic changes quickly over the story like a Simpsons' episode, but locally it remains consistent. Sentences are more complex that what I saw in other story generators, some would even say they are stylized. Where can I find the grammar.txt you're mentioning in the description?
I wonder if there is a gender check btw. I had a female clown ("she woke up in her prison") who turned into a male dragon ("him").
Gender gets assigned randomly. “Him” shouldn’t be there, that’s my mistake.
As for the grammar.txt, it’s in the source files. I guess you could find it in the “network” tab of inspect element? Let me know if you still need help.
For me it came from https://v6p9d9t4.ssl.hwcdn.net/html/1106973/0.6/grammar.txt, not sure whether it'll move around over time or not
Your structure seems to be
story
-exposition
--Name
--Occupation
--Transition
-action
--Info
--Insult (sometimes)
--Conflict
-climaxEndNote
Interesting, thanks!
That seems about right.
"My name is Trump, and I'm the most magical bank robber in the universe!" the bank robber said.
I almost dropped of my chair !
I’ve never gotten that one before. Interesting.
Have you got scrollbars turned on in the itch.io settings? I’m having trouble reading the whole story on my iPhone. Great job though! My story is about Trump ^_^
Yes, but it doesn't seem to work. You can try enabling reader view, or pinch to zoom out.
Fair enough, thanks