Library Card skill (force escape from ANY battle)

Hello!


I'm trying to make a skill, that allows you to escape from any battle, even evented battles, while also transporting you home. It's called Library Card, because this item in Castlevania SOTN did the same thing - allowed to teleport to library even during boss battles.


I haven't been able to replicate that though! Not even the escape part!


If I use "Escape" effect on all my allies, the battle just continues forever, even without any actors. If I use common events and switches - nothing works at all. And I'm afraid to even ask "How do I revert events, if I want them to happen again after escaping".


Any help here? :C
Hi,


You can use the "Abort Battle" event command to end any battle on the spot.
If you initiated the battle within an event, the result is then treated as if the party escaped


As for reverting events: You will probably have to do that manually on a case by case basis. In general, after using "Battle processing", you would create a conditional branch to check whether the party escaped and restore the scenarios original state if necessary (most of the time you probably don't have to do anything since events return to their original position if the party leaves the map).


If escaping isn't allowed normally and you don't have a way to check whether the "Library Card" was used, you can use a conditional branch with the script


this._branch[this._indent] === 1


directly after the "Battle Processing" command to check if the party escaped.
Hi,


You can use the "Abort Battle" event command to end any battle on the spot.
If you initiated the battle within an event, the result is then treated as if the party escaped


As for reverting events: You will probably have to do that manually on a case by case basis. In general, after using "Battle processing", you would create a conditional branch to check whether the party escaped and restore the scenarios original state if necessary (most of the time you probably don't have to do anything since events return to their original position if the party leaves the map).


If escaping isn't allowed normally and you don't have a way to check whether the "Library Card" was used, you can use a conditional branch with the script


this._branch[this._indent] === 1


directly after the "Battle Processing" command to check if the party escaped.

Yes, I found the "Abort Battle" event command before, but for whatever reason - it won't work. It just plays the casting animation twice when I use the skill, and that's it.


Currently I'm doing this: 


1) Upon use, the skill calls a common event. There are no triggers for it, until it's called. All it does is it aborts the battle and then turns Switch1 on.


2) Second common event runs automatically, it's on Autorun, and it transports the player to a specified location, and then turns the Switch1 off.


It's supposed to work, yet it doesn't even end the battle...


As for eventing: I'll try doing that when the escape part will work. It sounds a little bit hard (not too hard if I use YF's engine), but I should at least give it a go, thanks for an advice.
Bump?
Anyone? Please, I really need help.
I'm not trying to be rude, or backdoor Mod your thread, but sometimes responses will take some time.


Have patience. Hang in there. And try not to bump your thread without waiting the proper wait time between bumps. 🙂


Are you running any Plug-In's? Can you snap a screenshot of your event? Sometimes these things can be helpful.


-Mia
I'm not trying to be rude, or backdoor Mod your thread, but sometimes responses will take some time.


Have patience. Hang in there. And try not to bump your thread without waiting the proper wait time between bumps. 🙂


Are you running any Plug-In's? Can you snap a screenshot of your event? Sometimes these things can be helpful.


-Mia

I'm just a lil' bit scared of this topic going to the second page after no replying. The chances of people answering will fall drastically! Haha ^^'


Anyway, yes, I'm using YF's plugins, lots of them. Here's a quick shot of all plugins I currently have installed, but there will be more.

Spoiler
[IMG]http://puu.sh/sqtgE/a087fae856.jpg[/IMG]


And here's the skill I'm using and the common event it calls.

Spoiler
[IMG]http://puu.sh/sqtqv/7982bd7386.jpg[/IMG]
[IMG]http://puu.sh/sqtH2/020b1405ff.jpg[/IMG]
have you tried creating the skill/common event in a blank project (with no plugins) to replicate the problem?


are all your plugins and RMMV the latest versions?


i see lots of Yanfly, are all the plugins from Yanfly installed in the correct order (as listed on Yanfly.mo)?


sidenote, this community is a pretty helpful community. I notice you may be new here, so welcome! ?


But believe you me, some patience will pay quite well.


its pretty late for me, but just from your pics, i can't see anything immediately that would cause that problem. After the holidays, I'll plug it into a blank project, and maybe my current main project, to see if I get the same error. 


-Mia
Well, I've fixed something. Aborting battle works alright now, but... The next battle to happen goes on forever, because my characters simply never appear again. And character transferring still doesn't work.
Please show us the event that creates the battle - it sounds as if you made a logic error there


And as far as the bumping goes:


DarkEspeon40K, please do not bump your topic unless it has been 72 hours later since your last post. You can review our forum rules here. Thank you.



You can bump, but only once every three days
Please show us the event that creates the battle - it sounds as if you made a logic error there


And as far as the bumping goes:


DarkEspeon40K, please do not bump your topic unless it has been 72 hours later since your last post. You can review our forum rules here. Thank you.



You can bump, but only once every three days

Okay, sure. As long as I reply to something and give additional info - it shouldn't be a problem.


Anyway, back to the problem: I'm not using an evented battle right now. I'm trying to make it work with random encounters, but it just won't. I can escape the battle, but I'm not transferred to the requested location and the next random encounter that happens starts with no menu appearing on the screen. Here's the video.
@DarkEspeon40K


I can suggest a workaround for you, and I've been meaning to get around to helping you solve this, but.. Holidays.. Family.. etc.


the video is great. 


The workaround I would suggest, is creating two common events, one to abort the battle and turn a switch on, and the second common event triggered as a parallel process that if switch [x] is on, transfer player to location [y], and then turn switch [x] off.


edit: That way it's set up to exit battle and then transfer, as two separate commands.


make sense? There could be a problem with the plugins or something.. which you'll probably want to figure out, but in the interim, try my suggestion out and see how it handles for ya? ????


-Mia

Wow, I tried that before, but it didn't work. Now it does.


Anyway, I am now transported, yay! But the fight still bugs, and no menu appears. Any idea how to solve that little problem?
I'm asking for clarification:


- so the skill now operates as you'd intended? It aborts the current battle and then xfers you to "home"?


- but the following battle you engage in, the menu is all funked up?
Yes, exactly what you said.
check your plugin configuration and make sure that you have no switch or variable assigned double.


I know that some of yanfly's plugins have the option of disabling the party menu, and that this option might be assigned to a switch.


And if you use the same switch somewhere else, you can disable that without knowing.
Did Andars suggestion fix it?
No...


But now I know that one of the plugins is causing it. I don't know which one exactly though. I tested the skill on the empty project, and the menu appeared just fine. It still won't work in my project...


I have tried changing the switches and common events I use, went over 100 just in case some of the plugins use the first 100 without me knowing it. But it didn't do anything.
Edit: Nevermind, didn't realize the discussion is about another problem by now 😀


Original Text:

Spoiler
Right now I can't confirm this is also the case for MV:


Aborting a battle will also cancel any currently active battle event. The wait and teleport commands after the "Abort Battle" command might not get executed. In addition, the "Transfer Player" command has no effect if it is executed during combat (like other map related commands).


If you tried the solution provided by Miacuro, make sure to turn on the switch before the "Abort Battle" command.


It probably won't matter in your case but in general I'd probably suggest using "Autostart" instead of "Parallel Process" for your common event. The latter isn't necessarily wrong, Autostart events will wait for other "main" events to complete and will not allow the player to move, trigger another event or open the menu while they are active.
@Another FenPlease, read the message above.


Thank you for your help, but I seem to have fixed the transportation bug, so that isn't a problem anymore. The problem now is that the next battle won't begin. I've located the problem - it's one of YanFly's plugins, but I can't check it right now, because I am not home. I will try turning on and off plugins one by one. Perhaps it will help.


Also I totally agree with you, that "Autorun" event suits the current situation better, but it works either way, so for now I'll leave it as is.

Original thread: https://forums.rpgmakerweb.com/threads/library-card-skill-force-escape-from-any-battle.71210/