No. Only one event page will be active at a time. When self switch A goes on, the second page will become active and the first will stop processing.
Make two events. The first will be your NPC and the dialogue. It will turn a regular switch on and off at those times, instead of a self switch.
The second will be what you have on the second page of the NPC event, conditioned by the switch, and run as a parallel process.
Sorry - my reply was to the OP, and directed specifically at the screenshots, not to your post 🙂 I should have been clearer.
I agree - the first approach (which is what I basically described as well) should work. If it didn't it's because your events were set up incorrectly. In that case, show us screenshots of the two-event method and we'll tell you where you've gone astray.
Ahh, okay. I wondered if I hadn't been clear what I was talking about or what.
You are using a variable to tell it what image to show, but you have it adding one to the variable at the start and resetting the variable to 0 at the end without ever adding any more to that variable between pictures, that would make it so only the first image ever displayed. If you just skip the variable completely and have it go by order only it should work. Show one picture, wait a few frames, show the next picture, etc... Just remember to erase the pictures when you are done so it doesn't leave them sitting there after it is done.
The event at start up is adding + 1 to the variable pool. At that point the pool is 1. The next part of the event says IF our variable is 1, show image 1. The next lines of events want to know if we have 2,3,4,5 or greater than 5 in our pool.
At the bottom we wait 3 frames and start again. Now when we add + 1 to the pool we are at 2, We are not at 1 anymore so we don't show image 1, we are at two so we show image two, we are not at three so we don't show three. so on and so on.
This keeps working like a chain till we have added above 5 to our pool and are at 6. At this point we are not showing any image and are now going to change the pool from 6 back down to 0. The script starts again and we add + 1, bringing us up to 1 in the pool thus showing image 1.
(Super sorry if that sounded rude I was not meaning to ONLY trying to show how the event works!)
Now the animation event works just fine if I have it start with the action button or auto run. Our Animation plays nice and smooth, have not got around to stopping it yet but I hope to do that with a switch haha. The problem is having the animation play WITH dialogue. If I put dialog right on top of it we will loop the dialog or only run the animation once and that's just not the end goal.
Sorry, I misread it. I thought the resetting it to 0 was outside of the conditions.
Though I'm still not sure why you are bothering with a variable for that at all. I never use one when setting up something like that and they work fine. Of course, that is a single event without the concurrent talking event going at the same time, but that shouldn't effect that aspect.
One reason is that it makes starting animations from a frame I want pretty easy. Lets say I have an animation loop of 15 frames . I want to start at 0 and work my way up to 15 and restart but start again at frame 5. The last part would be a control Variable = 4, start again add 1 and now we are at 5 and showing image 5. Do that over and over till we are done with talking and turn it all off and set variable to 0 so we could do it again if we wished. (I think that's how it would work anyway.)
Again I am pretty new to RPG maker and what I'm doing may be the wrong road to take. The goal is for animations (with some controls to it like starting from a frame IF I can) AND dialogue at the same time.
Separating it into multiple parts so you only show the beginning once does make sense. I hadn't thought of that. I was thinking you would be playing it all the way through each time which is why I couldn't see your reasoning. But for ones that will be played all the way through each times it just adds unnecessary steps to the setup.
Ill keep that in mind as I go on with the project. again if anyone thinks of a way to play the animations right along with show text I am all ears! Thanks again for your time.
Okay, first, get rid of the loop/repeat. Parallel process events repeat by default, so you don't have to tell it to inside the event.
At some point, you'll need to do an Erase Picture 1. You can't really do it in the parallel process event, because you want it to wait first, and if the switch is turned off while it's waiting, it won't process anything else. So I'd do that in the NPC event - turn the switch off, then erase picture 1.
Apart from that, I really don't see any reason why it isn't playing. MAYBE getting rid of the loop will fix the issue, as I do recall people having issues when combining a parallel process with an all-encompassing loop, and the issues have gone away when they've gotten rid of the loop. I just can't remember the specific details of any of them. So give that a go and see if it makes a difference.
No, bad idea. Avoid parallel processes when you can. Don't "try another parallel process" as a solution to a problem when you don't know what the cause is.
Go back to the original method with one action button event and one parallel process event (without the loop).
The problem is that many event commands will only run while there's no message being displayed. I tested this out by adding a Wait 60 Frames prior to each Show Text command. If you do the same (with the adjusted events as I've just described above), you will see the images flash quickly from one to another several times before the first text is shown. While the text is shown, the images won't change. As soon as you hit the enter button to close the text window (during the next 60 frame wait), the images will all quickly flash again. And again with the third pause between text.
What you need is a script that will allow events to continue running while messages are showing. I know there are some out there, so if you do a bit of a search you might be able to find one.
interesting Waterguy. I will have to try that. Strange that it sometimes causes problems and sometimes fixes them ...