So, I ran into a minor issue while putting together my Escape skill, in the fact that my actors will disappear, but if the escape fails, they are still gone (Opacity 0%). I've set up the skill exactly like this previous post: https://forums.rpgmakerweb.com/index.php?threads/escape-skill.97976/ , so Yanfly's Battle Engine Core and action sequences are present. I am using a different battle menu script, but that shouldn't matter. What I'd like to do, is if the escape is successful, this works exactly as intended, but if it fails, the actors go back to Opacity 100%.
How can you have a skill evaluate whether escape was successful or not?
RPG Maker MV SupportI can't see any of the setup in the thread you linked (I think there's a video that's supposed to display but won't), but that topic says "Bobstah's Battle Commands" is a necessary plugin to have, too.
If that has nothing to do with it, then what I'd ask is - why not just set the party's Opacity to 100% at the end of the skill, after the "Escape" (or "Action Effect" if that action's feature is Escape) line in your action sequence? That way, if the party is still in battle as the action sequence finishes up, the Opacity will return to 100%, whereas if you escape mid-sequence, I assume the Opacity 100% won't trigger.
EDIT: As one other option, consider making Escape something that doesn't randomly succeed or fail. Here's a recent GMD thread where we discussed the design of escapes. You could make escape 100% reliable, or you could do something like add a state to the party that causes the battle to end one turn later if they're still alive (you could do this easily through Yanfly's Buffs & States Core).
If that has nothing to do with it, then what I'd ask is - why not just set the party's Opacity to 100% at the end of the skill, after the "Escape" (or "Action Effect" if that action's feature is Escape) line in your action sequence? That way, if the party is still in battle as the action sequence finishes up, the Opacity will return to 100%, whereas if you escape mid-sequence, I assume the Opacity 100% won't trigger.
EDIT: As one other option, consider making Escape something that doesn't randomly succeed or fail. Here's a recent GMD thread where we discussed the design of escapes. You could make escape 100% reliable, or you could do something like add a state to the party that causes the battle to end one turn later if they're still alive (you could do this easily through Yanfly's Buffs & States Core).
Here is the skill note field:
I did try changing the opacity back to 100% after the eval call, but it doesn't seem to work. However, if I place it before the eval call, complete with waits and such, it will work just fine. I did notice several threads talking about changing escape to always work, or never work, but I want to keep the randomized feel of escape success, following very closely to the old school final fantasy stuff.
Edit: I have tried both the follow action and finish action commands as well, trying to reset the opacity back to 100% and no change. Its almost as if after the battlemanager call it refuses to do anything else.
<SETUP ACTION>
clear battle log
display action
OPACITY all actors: 0%, 30
eval: BattleManager.processEscape()
</SETUP ACTION>
clear battle log
display action
OPACITY all actors: 0%, 30
eval: BattleManager.processEscape()
</SETUP ACTION>
I did try changing the opacity back to 100% after the eval call, but it doesn't seem to work. However, if I place it before the eval call, complete with waits and such, it will work just fine. I did notice several threads talking about changing escape to always work, or never work, but I want to keep the randomized feel of escape success, following very closely to the old school final fantasy stuff.
Edit: I have tried both the follow action and finish action commands as well, trying to reset the opacity back to 100% and no change. Its almost as if after the battlemanager call it refuses to do anything else.
Bump. Still trying to figure out a solution to this problem.
Original thread: https://forums.rpgmakerweb.com/threads/how-can-you-have-a-skill-evaluate-whether-escape-was-successful-or-not.112297/