Start an event after battle processing ends

How would I make an event run after a non-random encounter happens? I can't quite seem to make it work.
You can just have a switch turn on after the battle event is over and

set the other event with the switch condition set to either autorun or parallel process.

When the switch is turned on, the other event should start right away so long as

the battle processing is the last thing in your event.
As said, you can have the event that contains the battle processing turn a switch that will activate the other event.

In a slightly different way that could even be done by having the troop event turn a switch and have it processed only after battle, that way it would even work with random battles.

The key is in all cases that you need to activate the other event on a switch, and then control that switch after or during battle.
I'll get back to you on that.
Okay, I think I get it now. Now, I need to figure out how to permanently disable it afterwards :\
Silent Darkness, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


What is the event, and what do you want it to do?


You can do a Battle Processing command and then have commands after it. When the battle ends, the other commands will be run. You don't HAVE to use a switch and another event unless you actually want something visual happening elsewhere on the map.


And as always, to permanently disable an event, you create a new page conditioned by a switch, and you turn that switch on when you want it permanently disabled.
Gah. Whoops, my bad.

Well, now i've got a new problem altogether. The stuff that's supposed to be conditioned after the battle process isn't working right. Here's some imgur links to explain what i'm looking for.

Spoiler
zmzshQb.jpg
             
tI4bm5J.jpg
What's supposed to happen is the following:

1. Player tries the only not-locked door in here. It opens, dialogue bit and a Dark Servant attacks.

2. Some mid-combat dialogue that doesn't quite work the way I want it to, but that's for another time.

3. After the fact, there's supposed to be some dialogue after that, and player followers are turned back on.

#3 isn't working right. It seems to be retaining the screen fade that I put in the first event page, and not including the proper text in the second event page.
Parallel process events are not needed for this. If that variable is incremented during the battle, just take everything in that event page and put it on the first one, after the Battle Processing call.


Why do you do that processing at the top of the first page, regardless of the condition? What happens in the ELSE? Followers will still be turned off, even if the battle doesn't happen.


As a side note, you shouldn't put a loop in a parallel process. They loop automatically. Break Loop will just move the index to the bottom of the command list, and it'll start over again.
Okay, I think I got it, finally. Lumping the two event pages together fixed the problem. And moving a variable to a different map.
Okay, I think I got it, finally. Lumping the two event pages together fixed the problem. And moving a variable to a different map.
Variables can't be moved to any map, because they have nothing to do with maps...

It looks like you're missing some basics of eventing, I would suggest you go back to some eventing tutorials (for example the variable guide) and see how others have done things.

If you don't have any tutorial links for that, simply follow the link in my signature - learning eventing the rightway might take one or two weeks off from your current project, but it will speed up everything for you and save you several months of coming here and asking questions...
Frankly, I feel like my problem was more of an intermediate issue, rather than a beginner. And, Andar, i've already read through your stuff 😛

Sorry if I wasn't being clear enough. I meant, moving the event that increments the variable to a different map.

EDIT: Hiss....

Okay, here's an update. I'm now trying to get a reinforcement script going in battle(I.E, after all enemies on-screen are defeated, a number of fresh ones appear. I managed to get it work if only one enemy is supposed to spawn in, but I haven't been able to make it work with two or more using a switch system.

I've also tried using a variable system, but when I try that, something even weirder happens.

Okay, so, there's two enemies onscreen. When they're both dead, another one is supposed to appear(yes, it's been set as halfway properly)

Instead, if I kill just one, the hidden enemy appears anyways. And the requirement is that the variable be incremented up to two.
Okay, here's an update. I'm now trying to get a reinforcement script going in battle(I.E, after all enemies on-screen are defeated, a number of fresh ones appear. I managed to get it work if only one enemy is supposed to spawn in, but I haven't been able to make it work with two or more using a switch system.
From the sound of it, I think what may be your problem is how the default battle system works.  Battles end immediately when the last enemy reaches 0 HP and this will take priority over any events you are trying to trigger.  That might explain why it works when you kill just one, but not both.

You can get around this by changing the state of your enemies to immortal.  Tsukihime also wrote a script for this purpose.

http://himeworks.wordpress.com/2013/03/06/end-phase-triggers/
Using the immortality state is not really effective the way I want it to be, because A, it only happens when the turn is over, and B. It doesn't work period for having multiple foes on the screen. But I have fixed my problem though.
Using the immortality state is not really effective the way I want it to be, because A, it only happens when the turn is over, and B. It doesn't work period for having multiple foes on the screen. But I have fixed my problem though.
I'm glad you fixed your problem.

I still use the immortal state when using multiple foes.  I just have to create my own death state to compensate.  But if that doesn't appeal to you then maybe that script will.  

I would consider one or the other though.  Because I think it limits too severely what you can and can't accomplish during your battle events unless you have a way to trigger events after all of the enemies have been dispatched.  It's likely to be an issue that keeps creeping up.
I can get what I want by simply being very particular with where the event pages are set up. Custom page conditions in combination with end phases works well for me.
I can get what I want by simply being very particular with where the event pages are set up. Custom page conditions in combination with end phases works well for me.
What are end phases?  I'm unfamiliar with that term.
I was referring to the end phase trigger script 😛
I was referring to the end phase trigger script 😛
Oh so you are using the script then.  Excellent.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/start-an-event-after-battle-processing-ends.21014/