I was wondering if there's any way to limit a combatants movement range per turn in combat to max out based on a formula and then stop them if they exceed that range. Also, it it possible to instruct a a combatant either to move a certain distance in a direction based on the results of a formula, or to stop them at a certain distance from a target based on such results?
Second, is there a way to run a check loop while a combatant moves that will check distanced moved to stop it, and possibly alter a variable based on this distance rather than just using time and speed as the medium for determining things like Action Points cost?
Or more like Divinity controls?
I'd like to provide a separate move option for movement that isn't linked to an ability, but I also want to block the controls to prevent free roaming around the map. I think one way to achieve this would be to unblock controls during a combatant's turn, but prevent them from moving outside of a certain radius that a stat or formula would determine. I also need to figure out how to unlink my base attack from a combat menu so that it will launch directly by clicking on a hostile combatant rather than requiring a menu selection to trigger the event.
For base attack to work by hovering mouse on enemy I hacked together this monstrosity for my game :D
https://pastebin.com/Ri2hyGFr
I also want character to switch to movement as default action, so I had to do some additional checks along with that code running in update.
https://pastebin.com/yhHUu8s9
and I think I also had to edit source code to add AbilityCanceled notification.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!