An example turn-based Twine RPG has been requested a number of times on this forum and back in the old Google Groups. Recently, I threw together a rush job in about four hours for the Twine 23 Challenge
. It was horribly unbalanced, but served as a rough, unfinished example with answers to a number of common questions. However, in order to meet the passage requirements of the challenge, I used several loop passages
that, for those unfamiliar with them, made the game's code much harder to read than necessary.
I continued to work on it until it grew into a huge monster that far surpassed its original intent. So, I came back to the original version and created another branch. It's still rough and unfinished with unbalanced and monotonous game play, but it should better serve as a basic example of how to create a turn-based RPG in Twine. This is all Twine syntax; no script passages! (Well, the SugarCane version uses a config passage rather than StorySettings.) So, even the most novice Twine user should be able to follow this example or use it as a foundation to create his or her own basic turn-based RPG.
Again, this is not
really meant to be a fun, exciting, or interesting game. It's a mapa beginners guide to the very most basic aspects of creating such a game for those in totally unfamiliar territory.
To better understand this game's code, you may wish to fist review one of my tutorials on the use of objects
I made two editions. The first (TwineRPG-SCE) is made in SugarCube
. The second is in Sugarcane, the default header. The only real difference at all is that SugarCube has saves, which are essential for this type of game. Also, the textbox macro at the start of the game uses a different syntax style than Sugarcane's, and the sidebar CSS selector is different (#ui-bar in SugarCube, #sidebar
in Sugarcane). Those are really the only differences, but the ability to save from SugarCube is a big deal. The conversion back to Sugarcane was a bit of a rush job, so I hope I didn't miss anything. I noticed some minor whitespace and formatting issues, but I wasn't going to take the time to track them all down.
I doubt I'll continue to develop or release further versions of this example RPG, though I'll probably fix any reported bugs.
The full version of the game is much, much further along. It's massive. It has a lot of commissioned artwork as well as music and sound effects. It also has several features not present in this version. I have no idea when I'll finish it. Probably not this year.
If you have any questions, don't hesitate to ask. That's why I created this version in the first placeto show Twine beginners how to create a basic turn-based RPG.
Thanks for reading, playing, and commenting!
Richard D. Sharpe