(Using Yanfly plugins)
So, I have a skill I'm trying to make work called Bleeding Edge. There are 3 skills called Bleeding Edge, and they are *supposed* to swap out depending on what state the caster is affected with.
1. Bleeding Edge (Default): Appears in the skill list by default. This skill will disappear and be replaced by either of the following skills when their respective states are applied.
2. Bleeding Edge (X): This replaces the default when State X is applied. Default shouldn't even be visible at this point.
3. Bleeding Edge (Y): same as above, but state Y is applied. X and Y will never exist at the same time so that shouldn't be a concern.
Now I actually have a start on this, however it isn't complete. I can get it to do the swap correctly with the X skill with this:
Problem I'm having with this is trying to get state Y and skill Y involved. My JS knowledge is very limited, so if the answer is extremely obvious I apologize.
So, I have a skill I'm trying to make work called Bleeding Edge. There are 3 skills called Bleeding Edge, and they are *supposed* to swap out depending on what state the caster is affected with.
1. Bleeding Edge (Default): Appears in the skill list by default. This skill will disappear and be replaced by either of the following skills when their respective states are applied.
2. Bleeding Edge (X): This replaces the default when State X is applied. Default shouldn't even be visible at this point.
3. Bleeding Edge (Y): same as above, but state Y is applied. X and Y will never exist at the same time so that shouldn't be a concern.
Now I actually have a start on this, however it isn't complete. I can get it to do the swap correctly with the X skill with this:
JavaScript:
<Custom Show Eval>
if (!user.hasSkill(X)) user.learnSkill(X);
visible = !user.isStateAffected(X);
</Custom Show Eval>
JavaScript:
<Custom Show Eval>
visible = user.isStateAffected(X);
</Custom Show Eval>
Problem I'm having with this is trying to get state Y and skill Y involved. My JS knowledge is very limited, so if the answer is extremely obvious I apologize.