Because I can't seem to stop needing the forum's help...
I am using pretty much all of Yanfly's plugins - this question focuses on his Battle Engine and Element Core.
I want to build a skill that checks an enemy for state A, and if they have it, adds element A to the skill, otherwise it checks for state B, and if it finds it, adds element B, and if not then checks for state C .... you see where I'm going with this. Every enemy in the game will have one of these states, so there's no need for any == nil stuff....
Here's a non-JS version of what I think it should look like. I'm just not sure how to reflect this using actual JS (I'm learning, but I honestly am having trouble finding a good repository where I can clearly see exactly what JS string references what...)
<setup action>
If target has state A, then ADD ELEMENT: A
else target has state B then ADD ELEMENT: B
else target has state C then ADD ELEMENT: C
...
...
</setup action>
Anyone able to point me at how I check this using JS? Thank you guysssss.
I am using pretty much all of Yanfly's plugins - this question focuses on his Battle Engine and Element Core.
I want to build a skill that checks an enemy for state A, and if they have it, adds element A to the skill, otherwise it checks for state B, and if it finds it, adds element B, and if not then checks for state C .... you see where I'm going with this. Every enemy in the game will have one of these states, so there's no need for any == nil stuff....
Here's a non-JS version of what I think it should look like. I'm just not sure how to reflect this using actual JS (I'm learning, but I honestly am having trouble finding a good repository where I can clearly see exactly what JS string references what...)
<setup action>
If target has state A, then ADD ELEMENT: A
else target has state B then ADD ELEMENT: B
else target has state C then ADD ELEMENT: C
...
...
</setup action>
Anyone able to point me at how I check this using JS? Thank you guysssss.