Wednesday, October 8, 2025

After a mis-step...

Given the code I already had written up for controlling creatures, I had always thought it would be easy to allow the game to control player characters as well. So I've been working on making a nice interface for that in the settings, so you can set some (or all) characters to be game controlled.

And.... it mainly works.

There is a pretty basic setting that says "If the character is a fighter, make them use melee attacks..." and so on, which I will aim to improve later, with some options for you to select - as monsters are actually smarter, though they are set up properly in the editor. Now, I say... mainly works... There's some dumb-dumb stuff that I'll need to tweak. Currently, I am quite amused, as my mage hurls fireballs at the enemies.... then my healer follows that up with giving them delightful heals... so clearly somewhere in the code, I need to add a few "Don't be silly" conditions...

You can see the HUD showing the Wolf both on fire from my mage, and with a heal... from my healer.... 

Anyhow, for the most part, things seem to be working nicely, so I can tweak those things easily.

No comments:

Post a Comment

After a mis-step...

Given the code I already had written up for controlling creatures, I had always thought it would be easy to allow the game to control player...