Forked is a system for scripting interactive narratives in DragonRuby. The project is in development but complete enough to make fully functional text games, for example My Death Story.
Forked uses a simplified markup similar to markdown. It is intended to be simple to use, easy to learn for people without programming experience and to make it easier to focus on writing.
Additional functionality can be added by writing commands in Ruby.
What it lets you do:
- Write stories in a readable format with minimal distraction
- Player navigates to different parts of your story with button clicks
- Issue commands from within your story
- Premade commands available for non-programmers
- Custom commands are simple to create using Ruby
- Conditions allow you to control what the player sees
- Show or hide text based on conditions
- Show or hide buttons based on conditions
- Buttons can link to other parts of the story or run code
- Track the player's progress through the story
- Automatically (or manually) save the player's progress so they can continue playing where they left off
To begin:
- Dowload the latest version of DragonRuby, if necessary. For help with DragonRuby visit the Discord server.
- Unzip a fresh copy of DragonRuby.
- Download Forked and unzip it (go here, click the green Code button and select Download Zip).
- Drag the contents of the
forked
folder to DragonRuby'smygame
folder, letting it overwrite the existing folders. - Run DragonRuby.
By default, the user manual will load up and be displayed. The user manual itself was created with Forked and you can look at the code to see how it was made.
When you're ready to make your own story:
- Create a new blank text file in the
mygame/app
folder. - Name the file however you like but it is recommended to end the filename with
.md
, for example,my-life-story.md
. - Edit the file
mygame/app/main.rb
. Change the line at the top of the file from...
STORY_FILE = 'app/story.md'
to the file you just created. Note that the file path should begin with app
and not mygame
.
STORY_FILE = 'app/my-life-story.md'
Now you can start writing your story in the my-life-story.md
file.
See the User Manual to learn how to use Forked. See the Quick Reference to see the formatting options and action commands available.
Forked makes use of dragonjson by leviongit