create account

Text Based Role Playing Game (RPG) Authoring Tool by martin-stuessy

View this thread on: hive.blogpeakd.comecency.com
· @martin-stuessy · (edited)
$16.11
Text Based Role Playing Game (RPG) Authoring Tool
<center>![](http://i.imgur.com/rj3US4I.gif)</center>

Games like Colossal Cave Adventure and Zork, in my mind, encompass the purest form of gaming. Although I missed their prime because I was born in the 90s, I always felt like I would make one of my own one day.

Like most people I was introduced to coding with html. But the markup didn't do much for me so I looked further and tried C++. The language was hard and didn't sit too well, so even though I finished a tutorial for making a CLI calculator I tried my hand at Python because the syntax was said to be cleaner and easier to learn. I remember convincing my IT teacher at the time to let me write a tic-tac-toe program instead of doing a Flash MX project. 

So I went to work, and starting writing the thing one if-statement at a time.  Soon enough I realized that this was a fruitless task, and gave up for simpler programs that lent themselves to what little I knew.
 
A few years later I took a class with a very knowledgeable teacher. We liked to discuss text RPGs because he liked to play them when he was a student. So when the time came to pitch an idea for the course project, I suggested that I could make one of those games. And although he loved the idea, he told me to think of something else because a game wouldn't fulfill all of the project requirements. 

Despite my disappointment, I couldn't shake the feeling that **this was the time** to do it. The course project was going to keep me busy for months, which meant that the RPG would fall by the wayside.  So I went back to him and suggested an improved challenge. 

I told him that I would write a program that wouldn't just let me play one of those games, but that would also let me make one of those games. It would let any user make their own text world with monsters and items and descriptions of all the areas. 

My project was going to be a **text-based RPG authoring tool**.

*Little did I know what I was really getting myself into.*

So I went to work with Java Swing and tackled the challenge one step at a time. I settled on a hex-tree structure using a Random Access File. Each room had a description and nodes connecting to up to six other rooms. Creature and item objects could be saved within them, and those had descriptions too. Creatures could be customized in terms of damage and health and items could be used for battle and utility. 

Unfortunately, I never solved the problem of how to make utility items more dynamic. That's why my program doesn't allow for more intricate utility items like rockets and poison.

Either way,  I wrote everything up in a 170 page report (100 pages are source code), and decided to share it with the internet for the first time.

You can grab a copy over [here](https://dl.martinstuessy.com/) while the post is active. I removed the first page to keep the teacher anonymous.

I'm thinking of basing a new version of this program on Node, so stay tuned for some post about it the future!

----
[Image Source](https://www.flickr.com/photos/michaelgallagher/5099343246/in/photolist-8LBt69-38CeCK-39zV5j-qNn5yK-bbkbLZ-hbKck-dku8jE-a9RdTU-64WCeA-dSzJjD-soV81j-a9NriK-86toAu-6oqqBc-6sor6P-oXsdqx-698rYX-bUd7R3-6fe7JN-DCLUMi-2EZ91T-4heY2j-6uLAdH-8Vitk8-38SEMM-7LaeVx-2Vxon2-cnuxK3-s7uboJ-hbKcv-cjrqUq-2dG8Nm-qsaAku-m1qctZ-7LaeVT-a1vVqY-8Phd2w-9mCASw-VT8br-MhKmR-5Szbgf-5WtK4M-dyCAjE-8HnScr-qDZrXA-3iS1Ap-soV89W-9H7LQ4-8b7Wi7-5EciSt)

----
Check out my [Steemit profile](https://steemit.com/@martin-stuessy) for more prose, philosophical essays and tutorials!
If you want to know what I'm up to, or get in contact with me, check out my [portfolio website](https://martinstuessy.com).
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 496 others
properties (23)
authormartin-stuessy
permlinktext-based-role-playing-game-prg-authoring-tool
categorygaming
json_metadata{"tags":["gaming","technology","story","til","rpg"],"image":["http://i.imgur.com/rj3US4I.gif"],"links":["https://dl.martinstuessy.com/","https://www.flickr.com/photos/michaelgallagher/5099343246/in/photolist-8LBt69-38CeCK-39zV5j-qNn5yK-bbkbLZ-hbKck-dku8jE-a9RdTU-64WCeA-dSzJjD-soV81j-a9NriK-86toAu-6oqqBc-6sor6P-oXsdqx-698rYX-bUd7R3-6fe7JN-DCLUMi-2EZ91T-4heY2j-6uLAdH-8Vitk8-38SEMM-7LaeVx-2Vxon2-cnuxK3-s7uboJ-hbKcv-cjrqUq-2dG8Nm-qsaAku-m1qctZ-7LaeVT-a1vVqY-8Phd2w-9mCASw-VT8br-MhKmR-5Szbgf-5WtK4M-dyCAjE-8HnScr-qDZrXA-3iS1Ap-soV89W-9H7LQ4-8b7Wi7-5EciSt","https://steemit.com/@martin-stuessy","https://martinstuessy.com"],"app":"steemit/0.1","format":"markdown"}
created2016-12-15 23:44:42
last_update2016-12-16 00:58:39
depth0
children4
last_payout2017-01-16 04:53:09
cashout_time1969-12-31 23:59:59
total_payout_value12.101 HBD
curator_payout_value4.009 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,659
author_reputation19,100,061,932,073
root_title"Text Based Role Playing Game (RPG) Authoring Tool"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id2,014,785
net_rshares43,069,426,108,844
author_curate_reward""
vote details (560)
@martin-stuessy ·
I'll be keeping the link live for another 24 hours. In future leave a comment and we can find another way. Thank you :)
properties (22)
authormartin-stuessy
permlinkre-martin-stuessy-text-based-role-playing-game-prg-authoring-tool-20161217t052039793z
categorygaming
json_metadata{"tags":["gaming"]}
created2016-12-17 05:20:39
last_update2016-12-17 05:20:39
depth1
children0
last_payout2017-01-16 04:53:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length119
author_reputation19,100,061,932,073
root_title"Text Based Role Playing Game (RPG) Authoring Tool"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id2,024,685
net_rshares0
@noganoo ·
This may be of great help for my current text based RPG project.  Thank you for sharing your code!  I will keep you updated on my progress!
👍  
properties (23)
authornoganoo
permlinkre-martin-stuessy-text-based-role-playing-game-prg-authoring-tool-20161216t230903633z
categorygaming
json_metadata{"tags":["gaming"]}
created2016-12-16 23:09:03
last_update2016-12-16 23:09:03
depth1
children1
last_payout2017-01-16 04:53:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length139
author_reputation-12,409,054,499,907
root_title"Text Based Role Playing Game (RPG) Authoring Tool"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id2,022,908
net_rshares8,199,884,376
author_curate_reward""
vote details (1)
@martin-stuessy ·
Awesome! Please do!
properties (22)
authormartin-stuessy
permlinkre-noganoo-re-martin-stuessy-text-based-role-playing-game-prg-authoring-tool-20161216t231103934z
categorygaming
json_metadata{"tags":["gaming"]}
created2016-12-16 23:11:03
last_update2016-12-16 23:11:03
depth2
children0
last_payout2017-01-16 04:53:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length19
author_reputation19,100,061,932,073
root_title"Text Based Role Playing Game (RPG) Authoring Tool"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id2,022,927
net_rshares0
@rocktower ·
this is genius. 

Posted using [Partiko Android](https://play.google.com/store/apps/details?id=io.partiko.android)
properties (22)
authorrocktower
permlinkrocktower-re-martin-stuessy-text-based-role-playing-game-prg-authoring-tool-20180524t220911349z
categorygaming
json_metadata{"app":"partiko"}
created2018-05-24 22:09:12
last_update2018-05-24 22:09:12
depth1
children0
last_payout2018-05-31 22:09:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length114
author_reputation75,296,581
root_title"Text Based Role Playing Game (RPG) Authoring Tool"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id57,530,558
net_rshares0