PDA

View Full Version : Making a Text-Based RPG



Bitter Sweet
November 19th, 2004, 21:35
Apparently, these are popular. I was actually quite interested, seeing how I know some coding, but apparently not enough. Does anyone know where I could get some templetes to help me along? So some good sites that will help me figure out what coding to use and the such? Thanks. :classic2:
- Cameron.

S.Clause
November 20th, 2004, 07:56
Just ask mister Google:
"Yow, Mister Google?!"
Mister Google: "WHADDUP !" (http://www.google.be/search?hl=nl&q=tutorial+%22text-based+RPG%22&meta=)

Click the first link for instance. One of the replies says:
"We recently discovered a book that is like a tutorial in creating exactly what we are about to. I think it is a big step for those who want to do the same thing. It is called: Games C++ - Programing RPGs with DirectX 2002. You can find it on eMule."

DarkBlood
November 22nd, 2004, 17:16
A Text-Based RPG is one that's based off of text, and not Images. First off, you should ask yourself is this really what I want... if it's not, you should try integrating you Text-RPG with images to make it look better. Also, if you want to make a level-up calculator... it's easy to do so in JavaScript, but you'll need to know how your STR/DEF/NEW STR/NEW DEF/MP/HP/NEW MP/NEW HP, all works.

For example:



<script>
// JS

$level = prompt("What is your current level?", ""); // The blank quotes indicate the value of the text box.

$str = ($level * 10);
$def = (($level * 25) - $str);

$hp = (($str + $level) - $def);
$mp = ($def + $level);
</script>

Your Level: <script> document.write($level) </script><br /><br />
Your HP / MP: <script> document.write($hp) </script> / <script> document.write($mp) </script><br /><br />
Your STR: ... <!-- and so forth. -->

it is up to you how your RPG works and feels.