Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 text based RPG needs some pointers
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
pluckster




PostPosted: Thu Oct 21, 2004 3:48 pm   Post subject: text based RPG needs some pointers

so far i have(to the fullest extent) : village code(shop, inn, etc.), save code, the intro(name state; attack,defence and hp delcaration, etc) and battle engine.
Stuff i have basically finished are : the town procedures(which declare the towns shop items and cost and which direction towns are from it), the load code and leave town code in a procedure(uses the village variables to decide which village procedure to run next)
Soon to come random encounters and special building in villages.

just wondering what you might recommend for my game. Don't forget i am self taught and dont know all the really difficult codes. just basic if then procedures and stuff
Sponsor
Sponsor
Sponsor
sponsor
Cervantes




PostPosted: Thu Oct 21, 2004 4:18 pm   Post subject: (No subject)

learn to use the case structure. It will be your friend.
pluckster




PostPosted: Thu Oct 21, 2004 4:52 pm   Post subject: (No subject)

ok maybe i should put a list of the functions i know how to use

if then
loop
procedure
case
file
put
get
open
read
elsif
else
booleans

maybe some more
Tony




PostPosted: Thu Oct 21, 2004 5:49 pm   Post subject: (No subject)

i'm not sure what you're asking... I'd recommend learning some new programming techniques because your current knowledge is very limited.

browse around our Tutorials, its very useful.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
wtd




PostPosted: Thu Oct 21, 2004 6:06 pm   Post subject: (No subject)

Arrays and Records will make you a happy programmer.
Delos




PostPosted: Thu Oct 21, 2004 6:29 pm   Post subject: (No subject)

Tutuorials tony?

Arrays by Dodge
Arrays by tony
Very useful for storing items...if you find that you've mastered these then I suggest loooking into flexible arrays.

Records by Dodge
These will make you smile like a banana, or something thereof.

Procedures Functions Processes by tony
Modules by Delos
Compartmentalization.

Basic Random Numbers by Delos
Randomization is always useful if you want to create shops that don't keep selling the same things over and over...or for enemies that may inflict variable amounts of damage...the list goes on.


One thing I would suggest: create a procedure/module/other form of compartmentalization that will allow you to create various instances of say, a conversation, or a movement to a town, and henceforth. The last thing you want to be doing is hardcoding every possible movement through your 'map'. In other words, design an engine on which your game will run. For something like this, it's not as tough as it may sound. Really.
All it will require is a standardization of possibilities and good manipulation of variables.

Good luck.
Flea




PostPosted: Thu Oct 21, 2004 9:11 pm   Post subject: (No subject)

Oh! Something short and helpful, and its not a link! =)

If youve been using get, then you might have noticed it only recognizes the first word. That creates problems when you want to type in a phrase or sentence, which might have been bugging you.

Use
code:
get (string)..*

to 'get' the whole line. Wink
Delos




PostPosted: Thu Oct 21, 2004 9:51 pm   Post subject: (No subject)

Oh, something short and helpful and not a link either!

Links are not that bad, all the ones above are quality controlled links, i.e., I've checked through all of them to make sure they're worth clicking on... Laughing

code:

get stringVariableName : *


What you've posted up there is...umm...erroneous...come now flea, check your work before you post!
Sponsor
Sponsor
Sponsor
sponsor
Andy




PostPosted: Fri Oct 22, 2004 2:32 pm   Post subject: (No subject)

Flea wrote:

code:
get (string)..*



err if im not mistaken.. shouldnt it be get :*??
Delos




PostPosted: Fri Oct 22, 2004 2:58 pm   Post subject: (No subject)

dodge_tomahawk wrote:
Flea wrote:

code:
get (string)..*



err if im not mistaken.. shouldnt it be get :*??


And in the post directly above you...

Delos wrote:

Oh, something short and helpful and not a link either!

Links are not that bad, all the ones above are quality controlled links, i.e., I've checked through all of them to make sure they're worth clicking on...

code:

Code:

get stringVariableName : *



What you've posted up there is...umm...erroneous...come now flea, check your work before you post!




Wink
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 10 Posts ]
Jump to:   


Style:  
Search: