Skip to content

A small JavaScript application that lets you create simple storys for inspiration.

Notifications You must be signed in to change notification settings

christopher-kleine/SimpleStoryCreator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

SimpleStoryCreator

Overview

The SimpleStoryCreator creates a simple story that can be used as a source of inspiration if no other idea is avaible. The Usage is quite simple: Just call the "new" operator and it's all done.

Example:

  var MyStory = new SimpleStoryCreator();

This creates a new instance of TSimpleStoryCreator and it also generates a first story. You can get the story-text by calling GetStoryText.

Example:

  MyStory.getStoryText();

This returns an array of strings containing the story. If the story doesn't fit your taste/need, you can always create a new story. This can easily achived by calling NewStory.

Example:

  MyStory.createStory();

This way you get a new story that (hopefully) fits your needs/taste better. If you want, you can specify a plot. Currently these are the possible plots:

  • Destroy ("destroy")
  • Kidnap ("kidnap")
  • Mind Control ("mindcontrol")
  • Revenge ("revenge")

Example:

  MyStory.createStory( "revenge" );

The story would be something like this:

Before you were born there lived a merchant.
There came a day a necromancer killed the lover of the merchant.
He was able to trick the necromancer.
Finally the merchant manged to escape.

Credits

About

A small JavaScript application that lets you create simple storys for inspiration.

Resources

Stars

Watchers

Forks

Packages

No packages published