

It's pretty freeform, though you won't find quest NPCs or anything here. When you are going to use the program, a file called _internal_.json will be created to store some things, avoid touching it unless you know how it works.If you want to look at MUDs and the like, I can't fail to mention my absolute favorite: Lament: the Age of Wind and Wolves.Have you never seen this before? I know it's just to check if you read until the end :D If the field isn't filled, then the action will automatically succeed. Depending on the result, it will return the appropriate sentence (first or second sentence you filled). For example will check if in scene number 4, the action failed ( 1) or succeeded ( 2). If it is a string in the form of then the program will check the results of the previous scenes. If the value in this field is a number, then a number between 0 and 100 will be randomly chosen to determine if this number is greater than the one that is filled in. Last thing, the requirement field defines if the action of the protagonist will succeed. Notice there is a note field which is not visible in the examples but only works in the debug mode if you want to use this program on your side as a fork.
#Favorite text based rph free#
These fields must be added in the script part visible in the previous paragraph (if you still don't know where to put this, feel free to open the existing stories to get an idea, they are simple to understand). "You catch yourself just before you fall and resume your walk to the kitchen." "You are destabilized before falling to the ground, without severity.", "description": "Your fresh glass of water seems empty, you try to stand up but you almost fall to the ground.",

"Your wife is reading her favorite books." "The birds are singing, your children are running around and having fun.", Then copy/paste this before filling in your story information between "". For example, we will create the file sunday.json (if you can't change the extension, copy/paste an existing file or go here).
#Favorite text based rph code#
I created this program to learn this programming language and it's possible (even probable) that there are beginner and obvious mistakes, so I am quite open to improve this code via pull requests. However, you have all the necessary files to compile it manually if needed (see below). Later (maybe) the program will be able to handle more complex interactions.Īt the moment, the program is written entirely in Python and has been tested only on Windows, however due to the lack of compatibility with Linux/MacOS on some libraries, I will not provide an executable for these versions to avoid complaints. For the moment, the stories are quite simplistic and have no advanced interaction except the basics: narration, action, consequence and dialogues.

Here is a small program which will allow you to build and read interactive stories in text format.
