Hey everyone,
I haven't been working on the code much lately (I have been working on
Open Street Map) but I finally got some more work done on OpenDungeons. The code I just added makes the creatures behave a bit better in battle. Most importantly they will try to "flee" from the battle if they are overwhelmed. I haven't really tuned the paramters for this yet so they might be too "brave" or possibly too "frightened", however it does at least seem to work. I also added an animation to the list on the wiki on the
Creature animations page (the flee animation). If I could get a model that has this then that would be cool so I can really test to see when creatures are "fleeing" vs just the normal walking around.
I also added a bit to the rules for how creatures gain experience in combat. Now, when they hit an enemy creature, the experience they gain is modified by the other creature's level. The difference between the level of the creature you hit and your own level is how much of an exp "modifier" you get. The modifier means you get more experience when you hit a creature who is higher level than you and you get less when the enemy creature has a lower level. This keeps the battles a bit more even. Before, if you let a couple of your creatures get killed because your initial charge was week you could lose the whole game since now the enemies are higher level meaning they are both harder to kill
and do more damage. Now however since they are higher level you get a bonus when you hit them and so your creatures will "catch up" to their level fairly quickly; this evens out the odds a bit.
-Buck