• Add Review
  • Subscribe
  • Nominate
  • Submit Media
  • RSS

More combat plugin progress

Things continue to chug along nicely. I managed to get the Fight skill working, for both actors and enemies. In the case of enemies, I also had to implement the code which decides what the enemies' actions are, which I'd only made a general outline of up until now. Right now it simply selects an action at random, with all possible actions having equal probability. Eventually I want it to weigh the advantages of possible actions, have rules about individual monsters' behaviors, and give the current narrator some influence (one narrator might favor multi-target techniques, another might have mercy on the player by limiting enemy mana usage to a certain maximum per combat ticks, etc.).

One thing that hung me up for a little while in getting things to work properly was the fact that the enemies were transforming shortly after the start of combat. This caused some of my systems to fall behind what was actually going on. Once I figured out what was going wrong, I had to add comment commands to notify my plugin when an enemy is transformed.