Tracery for GameMaker Studio 2
A downloadable tool
About
Tracery is a story-grammar generation library originally developed by Kate Compton.
More information can be found on the original GitHub readme.
With this port, you can read JSON Tracery grammars straight from an included file or a stringified variable and create generative text.
How to use
1. Create a file with a JSON-formatted grammar (example grammars can be found on the original GitHub page)
2. Create an obj_grammar object
3. Call grammar_load_from with the grammar object and the json_decode of the JSON input
4. Set your result to grammar_flatten of the grammar, which will default to the #origin# tag, but can be defined as another root.
Examples of the above can be found in the obj_example object included in the project.
Download
Click download now to get access to the following files:
Leave a comment
Log in with itch.io to leave a comment.