I've been using the titular plugin for my battle AI. For the most part it accomplishes what I want it to do, but there's a few things I'm not quite sure how to do with it.
The first thing that seems to be lacking is checking for buffs and debuffs. Checking the user's own buffs is relatively simple (Eval user._buffs[insertParamIDhere]), but there doesn't seem to be a way to check for the target's buffs and debuffs. I did try using this extension, but it didn't seem to work for me (the AI didn't seem to recognize the conditions as a valid and just passed over it, no matter how strict I made it) and furthermore I'm not sure if it'd work with the base plugin's multiple conditions. So I'm wondering if there's something I can plug into Eval that does the job, or failing that if there's another plugin that's better at handling it.
The second question is doing loops (e.g. on turn 1 do this, on turn 2 do another thing, on turn 3 do something else, and then go back to the first action; repeat until otherwise stated). The best idea I've come up with on my own is making a variable, increasing it by one, and then resetting it to restart the loop, but that seems rather clunky.
The first thing that seems to be lacking is checking for buffs and debuffs. Checking the user's own buffs is relatively simple (Eval user._buffs[insertParamIDhere]), but there doesn't seem to be a way to check for the target's buffs and debuffs. I did try using this extension, but it didn't seem to work for me (the AI didn't seem to recognize the conditions as a valid and just passed over it, no matter how strict I made it) and furthermore I'm not sure if it'd work with the base plugin's multiple conditions. So I'm wondering if there's something I can plug into Eval that does the job, or failing that if there's another plugin that's better at handling it.
The second question is doing loops (e.g. on turn 1 do this, on turn 2 do another thing, on turn 3 do something else, and then go back to the first action; repeat until otherwise stated). The best idea I've come up with on my own is making a variable, increasing it by one, and then resetting it to restart the loop, but that seems rather clunky.