Thank you for a great script! I appreciate your work! I admire that you are working on many specific scripts for specific needs, Tsukihime. Utility scripts are the most under-appreciated things, honestly.
General question: May I kindly ask you to provide more examples for how to use your formula variables? How can I make a conditional state that checks to only apply a state to members of my party (not a specific member, but the whole hero party)? How can I make a conditional state that only applies to the enemy? How can I make a conditional state which only works if switch 001 is on? I'm trying to figure out the code, but, the conditional logic is confusing. Any help would be much appreciated.
Specific question: I'm trying to use a conditional state to determine if the battler that the state will be added to is a party member, and if so, apply x, if not, apply the else y. Your script seems like it will be tremendously powerful and useful for making this happen!
Here is my conditional formula:
<conditional state> if a = p 6 else 30 end </conditional state>Can you spot anything with your experienced eyes that is wrong? In this condition, when I use Sleep with the proper placeholder state in its Effects, against my party or my enemy, state 6 (Sleep) is always determined to be applied, even on enemies. State 30 (enemy-customized version of Sleep state) is never used.
It's my understanding that your Conditional State's formula variable p is equivalent to $game_party. I figure that I am making a mistake here and there is a difference between a global variable and its contents, I am guessing. However, I don't understand how to make conditional checks or what place I should check. If I introduce a p.battle_members?, I still need something to check, right? Even if I try to make more conditional methods for each member of my party, using awkwardly, clumsily and repeatedly "if a = p.battle_members.include?($game_actors[id])", the conditional is ignored and the "if" state (state 6) is always applied. I would prefer something more direct and smoother to use. I've read through resources here on formulae, but I've came up unsuccessfully short, so far. I tried the same formula in a blank project, as well, so I doubt it's a compatibility issue.
What do you think, Tsukihime?