Yes, BTs are far more powerfull for decision making that FSMs 🙂
Regarding your question,
I would personaly handle this in code since creating a Battle Manager BT, although its certainly possible, I think it will get complicated especialy due to the fact of “registering” combatants.
Furthermore there is nothing there really that has to be decided on a number of facts, other than their Initiative Time.
So, personaly I would create a Battle Manager class, which on initialization will register all combatants along with their initiative score, do the math required (based on your game) and execute the combatant’s BT in order of their score if it’s an NPC or simply give control to the Player if it’s not. Or something similar to that 🙂
Some things are just better handled in code 🙂
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.