Pages

Friday, June 21, 2013

New Battle System and Inventory

Battle System!!

 I've finally made a little bit of progress on the game, I introduced a basic random-battle system.  I was stuck on how to make a turn based battle system, but after learning what a yield statement actually did it was fairly easy to get a basic "I attack then you attack" thing going. It isn't very pretty yet and all you can really do is attack (damage = attacker's strength - random number from 0 to victim's defense).

The game now also knows what type of biome the player is in.  I'm setting up a database of enemies with one of their properties being "type of biome" so that when a battle occurs in a certain biome, the game can select an appropriate random enemy.

I'll need to have a leveling system for the player of some sort and also appropriately generated loot that will drop from the monsters.  A problem with a "leveling system" for this game is that since the world is generated randomly there are no "zones" so no area will be harder than any other area.  The concept of leveling might not be direct experience and increased stats through time but perhaps how well your shop does.  You will also eventually be able to catch and train monsters as pets so that may factor in somehow as well.

Revised Inventory / The damn loading bug...

This is my new inventory so far, it looks much better than the old inventory and it functions virtually the same other than creating a grid of images rather than a list of words.  I haven't been able to get the items to drag or drop yet but I will. If you click on an item without dragging, it will do the default action, if you right click it will open a context menu, and if you click drag is should drag  The blank space to the left of the larger item image of the hovered item will be where the player will equip his armor, weapon, and accessory.  They may also be able to equip tools (things to gather things in the world) in this same area.

The only bad thing is that as soon as I changed how the inventory was laid out, it will  give me one of these whenever I try to load the inventory from file.  It saves fine, it just doesn't load, and it throws the error in a place that other scripts use all the time without error so I'm really confused...


and I'm sick of seeing it! Blah! All the objects exist, I know it I put them there! It's been a few days of seeing this error now so it made it into the blog, anyways, rant on the error from hell for now, hopefully I'll get to brag about fixing it in the next post.

No comments:

Post a Comment