text based RPG needs some pointers
Author |
Message |
pluckster
|
Posted: 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

|
|
 |
Cervantes

|
Posted: Thu Oct 21, 2004 4:18 pm Post subject: (No subject) |
|
|
learn to use the case structure. It will be your friend. |
|
|
|
|
 |
pluckster
|
Posted: 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

|
Posted: 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. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
 |
wtd
|
Posted: Thu Oct 21, 2004 6:06 pm Post subject: (No subject) |
|
|
Arrays and Records will make you a happy programmer. |
|
|
|
|
 |
Delos

|
Posted: 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

|
Posted: 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
to 'get' the whole line.  |
|
|
|
|
 |
Delos

|
Posted: 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...
code: |
get stringVariableName : *
|
What you've posted up there is...umm...erroneous...come now flea, check your work before you post! |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Andy
|
Posted: Fri Oct 22, 2004 2:32 pm Post subject: (No subject) |
|
|
Flea wrote:
err if im not mistaken.. shouldnt it be get :*?? |
|
|
|
|
 |
Delos

|
Posted: Fri Oct 22, 2004 2:58 pm Post subject: (No subject) |
|
|
dodge_tomahawk wrote: Flea wrote:
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!
 |
|
|
|
|
 |
|
|