I can figure out which rooms are sister rooms easy enough, it's how to connect rooms that were split further that I'm having trouble with. I'll get an example up in a minute, in the mean time:
Version 0.27 Released (D-load in first post)Internal Changes
- Equipment is now stored as "item"s instead of pointers to them.
- Changed enemy "struct" to a "class".
- Added int() conversion to several places to prevent some of the warnings.
- Cut parts of map display out and made them their own function, for readability.
- Added functions for some of the stat calculations I use, so they can be changed easier.
Visual Changes
- Added "Weight Carried" display to the inventory screen
Gameplay Changes
- Equipment really works now, I'm sure this time!
- Equipment is now saved/loaded properly.
- Enemies won't always miss.
Because of that last one, you may need to tone the difficulty down in the settings file. I haven't done much difficulty checking, cause I tend to cheat to test specific things (I.E. Kill button so I can test drops and equipment...)... anyways, thanks for all the support so far guys! I had an idea at school for a temporary way to set up room connections, so I may or may not be able to get it working for the next version...
[EDIT]: On the topic of goals for the next version, I'm hoping to get items with multiple effects set up (ideally, any combination of existing effects you want), so that when I move on to magic and such it'll be a little easier to set up. I'm thinking some form of flags, so I'm looking into figuring them out. I remember from back when I did a lot of Zombie Master (HL2) mapping, you could set a bunch of flags for various things. Each one was a power of two, so the game could figure out which flags were on, as there would be a unique number for each combination.
I.E. You'd have flags numbered 1, 2, 4, 8, 16, 32, 64, 128, etc. And no matter how you add them up, you cannot get the same number with more than one combination (I think). Parsing something like that could be a pain though... (How would I go about determining that the number 57 represented the flags 1, 2, 4, 8 and 32...)
Anyways, that's the plan, until I can figure out the rooms thing, that's what I'll (probably) be working on.
[EDIT2]: Well, due to some help from a guy at the
cprogramming forums, I discovered (accidentally, at that) that I can probably do this a lot easier with some bitwise operators. I'd been interested by the way PDCurses has functions that let me pass what appear to be multiple arguments separated by |'s as a single argument.
Well, now I know. I actually found some interesting information on the subject after I figured out the name of the things (bitwise operators, that is). The CProgramming website has some interesting information
on the subject, for anyone interested.
Thanks for all your help guys, it's invaluable