Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choice of Someone Else's Novel #164

Open
cvaneseltine opened this issue Nov 20, 2015 · 2 comments
Open

Choice of Someone Else's Novel #164

cvaneseltine opened this issue Nov 20, 2015 · 2 comments

Comments

@cvaneseltine
Copy link

My NaNoGenMo project will accept a .txt source file and use it to build an interactive novel in ChoiceScript. It extracts a vocabulary from the source, determines parts of speech by comparing against a dictionary, and then uses grammar-based Markov chains to write prose sequences.

It also attempts to recognize and extract characters (along with their pronouns of choice) from the original source, which will be repurposed as "relationship" characters in the game. It also randomly generates various stats based on adjectives used in the work.

I'm building this in C#, but I may pull in Unity at the end in order to make a web-based version.

@cvaneseltine
Copy link
Author

Hooray, I'm done!

This C# system accepts a chunk of source text, digests it, and spits out the files to build a working ChoiceScript interactive novel. The text is poetic at best, but it does at least bear some resemblance to the original. Characters do extract (sort of) and turn into statted relationships, but pronouns aren't recognized or used.

There's a working game at http://www.sibylmoon.com/nanogenmo15/mygame/index.html, under the name "Saving?". Source text: Caelyn Sandel's "Mara and the Bottleman" (cw: violence, bodily horror).

The chapters are extremely shallow due to a bug that hasn't been adequately squashed. This system hypothetically can build a 50k novel, but it would take about 50 shallow chapters to do so. That seemed unnecessary, so I didn't.

To build a ChoiceScript game with this system:

  1. Find some good source text. Save it in the same folder as NaNoGenMo.exe as "sample.txt".
  2. Download the latest ChoiceScript build from https://github.com/dfabulich/choicescript.
  3. Unzip the CS build to \choicescript-master in the same folder as NaNoGenMo.exe.
  4. Run NaNoGenMo.exe.
  5. Go to choicescript-master\web and then open index.html. Hooray! Your very own ChoiceScript game!

@cvaneseltine
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants