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

Dynamically generated (runtime) stories with Cradle #66

Open
daterre opened this issue Jul 13, 2018 · 0 comments
Open

Dynamically generated (runtime) stories with Cradle #66

daterre opened this issue Jul 13, 2018 · 0 comments
Labels

Comments

@daterre
Copy link
Owner

daterre commented Jul 13, 2018

Question via email:

I wanted to ask you if in some way I will be able to modify Cradle in
order to create stories at runtime and not only in the unity editor.

The core of Cradle, the Story class, was made with other story formats in mind other than Twine. It is usually used by scripts that are automatically generated from pre-written Twine files, but it can also be used directly in a C# script that generates story content any way it chooses, including dynamically.

The basic idea is that you derive your script from the Story class, populate the Story.Passages dictionary with passages, and give each of those passages some logic that generates StoryOutput objects.

I added an example to the wiki but am opening an issue in case anyone wants to raise any questions/ideas!

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

No branches or pull requests

1 participant