my rpg
Author |
Message |
Palindine
|
Posted: Thu Sep 30, 2004 11:15 am Post subject: my rpg |
|
|
i've been working on an rpg for about the past 4 months off and on, but there is still something that i cant do, which all rpgs should have, and thats items. i cant seem to figure out how to sort, add and delete an entry properly, so that i can include items. but other then that i'm almost done. i just need to finish up the combat.
Planning to have it done by next week. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Genesis
|
Posted: Thu Sep 30, 2004 2:14 pm Post subject: (No subject) |
|
|
Firstly, this probably isn't the right section as your not actually submitting anything.
But in response to your question, the best way to store and sort items is with arrays. If you don't know arrays, read this, and this.
You just store each item in a different element of the array, which can be set back to empty whenever the item is used. The array(s) can also be sorted in many ways. Check the tutorials for more info on sorting as I'm not going to explain it all here. It isn't too difficult, and the size of the array can always be changed (Say your character will be able to carry more items as the game goes on.) |
|
|
|
|
|
Palindine
|
Posted: Fri Oct 01, 2004 10:47 am Post subject: (No subject) |
|
|
Genesis wrote:
But in response to your question, the best way to store and sort items is with arrays. If you don't know arrays, read this, and this.
You just store each item in a different element of the array, which can be set back to empty whenever the item is used. The array(s) can also be sorted in many ways. Check the tutorials for more info on sorting as I'm not going to explain it all here. It isn't too difficult, and the size of the array can always be changed (Say your character will be able to carry more items as the game goes on.)
i've read the tutorials over and over, its the matter of proper sorting that i cant do. i can do it with a 1D array, but seeing that it would be items, it would have to be a multi dimentional array, not just a 1d or a 2d array.
BTW 3 days till i post the project
question to the mods: why was my topic moved? |
|
|
|
|
|
wtd
|
Posted: Fri Oct 01, 2004 1:17 pm Post subject: (No subject) |
|
|
I know I've been poopooed for suggesting this recently, but you may want to look into the Records tutorial here. Each "Item" in your game sounds like it could be described well by a record, and then you would have to keep several arrays synched up when it comes to sorting.
Something like:
code: | type Item : record
name : string
attack : int
defense : int
magic : int
% ...
end record |
|
|
|
|
|
|
Palindine
|
Posted: Fri Oct 01, 2004 1:23 pm Post subject: (No subject) |
|
|
I DONT CARE TO ADD ITEMS. ITS TAKEN LONG ENOUGH TO DO WHAT I HAVE. THIS POST WAS ORIGINALLY POSTED UNDER SUBMISSIONS, AND WHY IT WAS MOVED ONLY THE MODS KNOW. I DONT NEED HELP WITH ANYTHING. |
|
|
|
|
|
McKenzie
|
Posted: Fri Oct 01, 2004 1:30 pm Post subject: (No subject) |
|
|
I'm no mod, but if you read your first post it sounds a lot like you are asking for help. In which case this is the place for the post, even if later you plan to make a submission. |
|
|
|
|
|
Palindine
|
Posted: Fri Oct 01, 2004 1:32 pm Post subject: (No subject) |
|
|
McKenzie, did u even read my last post. I DONT NEED HELP, I NEVER DID. I SIMPLY MADE A STATEMENT. |
|
|
|
|
|
McKenzie
|
Posted: Fri Oct 01, 2004 1:34 pm Post subject: (No subject) |
|
|
Don't ask me how, but no, somehow I didn't manage to make it to the end of the list. Thus the very quick edit.
... I figured it out. I started my post before you posted. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
wtd
|
Posted: Fri Oct 01, 2004 1:36 pm Post subject: (No subject) |
|
|
Just a note: All caps makes you "sound" very hostile. Such a response to a request for help, even if you didn't think it was ( ) probably won't endear you to others, and may have a negative result the next time you actually want help. |
|
|
|
|
|
Genesis
|
Posted: Fri Oct 01, 2004 2:05 pm Post subject: (No subject) |
|
|
Palandine wrote: i cant seem to figure out how to sort, add and delete an entry properly, so that i can include items.
Well usually when you "make statements" like that it's assumed that your asking if any of us can help you with it. Which is why your topic was moved to the help section. It's no big deal.
There's no problem with posting your game in the submissions section when it's done.
And wtd's right, the caps are making you sound very hostile. |
|
|
|
|
|
Andy
|
Posted: Fri Oct 01, 2004 2:52 pm Post subject: (No subject) |
|
|
why the hell would u post in the submissions when ur not submiting anything? |
|
|
|
|
|
|
|