I'm wondering specifically about the best ways to pass variables to my primary combat events from formulas as well as the potential hangups. I know from testing that by making my variables global withing their formula chains I can access them in an event after running the 'Calculate' step, but I'm assuming that will cause a number of problems. If combatant A launches an attack for example that switches The 'AttackHandR" and 'PrimaryHand' Boolean variables to true and the "AtkType" string variable to Swing, I'm assuming it's changing those variables for all combatants to access and will run into problems when another attack is launched before their attack event has finished cycling. In my case, the formula steps will automatically set all its variables to a neutral value before changing anything, but I'm guessing that means they'd be reset (changed) before the event has finished using them and might even lead to some unforeseen infinite loop occurrences. Local variables won't pass to an event via the 'Calculate' step... unless I'm missing something.
My current solution is to call a global event directly after the calculate step to change the global variables back to neutral and create a local replacement variable within the event itself so that the event can check them and branch accordingly. This is less than ideal, though. For one thing, I've opted to run my 'hit chance' and 'damage' calculations as two separate steps (calculating different levels of the same ability, so they shouldn't run anything twice) and I'm not sure as yet whether the calculate step takes into account local variables from an event that calls it. If not, then this setup will need to be remapped, but aside from that it seems both a sloppy and less than ideal solution regardless. For one, it's a lot of extra steps to run that could end up putting a strain on processors in large battle scenarios, and for another it's twice as many variables to pollute my database. So, I have a few questions...
-Firstly, I'm wondering how feasible it would be to set up my variables in the ability itself and change them inside formulas using selected data.
-Are changes made to ability variables local for each instance as they're called by a combatant? If combatant A makes changes to their ability variables will those changes also be present when called by a separate combatant?
-Are ability variables changed within a formula retained, locally or globally, after the event has finished?
-Is their a way to customize the calculate node so that it checks for certain numerical and variable values, and/or create more branching options than the four (hit, critical, miss or block) that are available by default? Maybe, as an updated feature, you might simply include conditional checks to the user and target requirements and allow it to check against formula results before finishing.