Omnimaga
Calculator Community => TI Calculators => TI-BASIC => Topic started by: Insanity on March 29, 2007, 01:26:00 am
-
If you're writing a MUD-like RPG in BASIC, how would you go about making it so you can pick up, wield or equip, drop, sell, put into a bag, etc. items, and have new objects spawned automatically in the game?
Also, how would enemies, friends, etc, work? How would you keep track of those? Even make them be able to follow and move around?
-
Well, lists would be the optimal thing for inventory, etc.
People moving around... Not totally sure on that yet for pokemon, though they will require their own movement/detection system.
-
Yeah I always ran into problems with this. It become very unwiedly very fast for me when I got a lot of things. So I started a file system where I would log what everything does and all that and I still do. It helps a lot when you want to organize things or if you go on leave for a break and then get back into to it a month later or something. In the end its better to keep a log of routines, comments, variables, characters, attributes, anything that is worth writing down. You would be surprised if you saw how my room looked filled with all my organized crap that isn't organized lol. I might post a picture of it.
-
a list is the way to go, as you can create your own for your purpose.
-
Acutally I don't know. A list is good for some things but I had quite the bit of success with strings.
-
true, but remember, a list is good for in game, leave the game, and any number of programs can change the string. Don't store any save data there, you only have a few of them.
-
oh yeah your right there list is good for long term
-
im pretty sure lists is about the only thing that makes sence, matrices are big and unwieldy, strings get overwritten, and you can create your own lists which can then be archived and stuff. another thing you can do if you want in game fast storage is use real,image,ipart, and fpart, for data, then if you still need more you can do rounding and stuff with ipart. this can all go in like the main chars finance var like, terrain,x,y or something.
-
strings are good and although they are overwritten it takes a simple string to list translator. But they are the best storage wise for in game if you know how to use them.
-
String to list translation... hmm... expr(string?
-
that's what I used to use
-
I store most of my RPG data to lists (even while ingame except the map is in strings (which a program has a reference of all the strings needed, so I don't lose them).