An event is not working

Capture.PNG

Firstly, it shows the text but the event it triggers wont work

here is other event

cap.PNG

I don't know whats wrong, but I need it fixed before I can start making more of my game.

Instead of basic triggered event page turning on

it stays on this page:

Cap1.PNG
I've moved this thread to VX Ace Support. Please be sure to post your threads in the correct forum next time. Thank you.


1. You need a second page on your first event. Trigger Action Button, condition Switch 5 is ON. Otherwise the autorun event will keep looping.


2. What is on pages 4 and 5 of your second event - the one that's not being triggered? If either of those have conditions that are met, or have NO conditions, THEY will be active and not page 3.


3. More than 1 autorun event on a single map is just a bad idea. Maybe you should rethink your strategy.
page 3 of the second event is whats not being triggered

page 4 and 5 are copy and pasted page 4's
page 4 is a copy and pasted page 4? What?


Show pictures please. And make sure autorun events are turned off after they've finished.
page 4 and 5 are copied page 3's*

The event is meant to show different choices if you have completed the 3 other levels (when completing 1 it turns on a switch) when you complete all 3, all 3 switches should be on

If they are all on the event should trigger saying "You have completed the basic levels" after it says that it should turn the "Basic" switch on, if the basic switch is on it goes to a new page on the third event

that shows different choices.

Here is the edited first event.

Capture3.PNG

Here is the level choices, they should change after the basic switch is on, since a new page is opened, but the page seems to stay the same.

Capture5.PNG
I'm not getting why you need TWO autorun events at the same time. Why can't you just put what's in EV004 into EV001?
Even in the same event it won't work

Now.PNG
You've put that inside your choice branches. Put it after it. And make sure there are no other autorun events (including autorun common events) running.


Also are you looking at the debug screen to ensure those switches ARE all on?


Otherwise if you want to load your project up somewhere, I can grab it and take a look. You'll have to be quick though - I'm shutting down in 1/2 hour or so.
I'll send u a link when the mediafire upload finishes
Please take a step back to the basics.

Each event always has exactly one page active (or no page, if none of the conditions are met).

If an event doesn't work as intended, in many cases that is the result of the wrong page being active.

That is why Shaz asked for the other event pages: if the conditions of several pages are met at the same time, the page with the highest number will be active - those pages 4 & 5 have priority over the page 3 that is not working, and that might be the simple cause of your problem.

One way to test which page is active is to temporarily change the sprite. Make yourself a list like "page 1 = tree-sprite", "page 2 = door sprite", "page 3 = chest sprite" and so on, change the sprites on the different pages to fit that list, and then test the game to see which page is really active. It doesn't help you to look for the coding error in an event page, if that code is correct and the real bug is that the wrong page is active due to a mixup in the conditions.
Sent you the link Shaz
wow, all those autorun and parallel process events you have!!!

On the Maze map:

Event 6 checks how many items you've collected. You don't need to run that as a parallel process. Turn it into a common event (no trigger), then on each event for items to collect, do a Call Common Event.

Same with event 7. It doesn't need to run continually, because the condition will ONLY become true when the item is collected. Turn it into a common event as well (or make it part of the same common event as above, but not inside the condition)

Also change all the items to collect to have the Direction Fix box checked - otherwise they change sprites to something else when you collect them.

Event 9 has a surface effect and it's set to autorun. Change it to parallel process instead, otherwise the player will actually see it changing.

Same thing on the other puzzle maps. You really don't need so many events all running for the duration of the map. On the mine map, you've got two autorun events that do exactly the same thing.

Map001

Event 3 does not need to run continually. Either erase the event after it runs, or turn on a self switch and add another page conditioned by the self switch.

On page 3 of EV001, that choice list is just going to keep repeating until you choose Mine, because when you choose No, there's nothing to turn the parallel process off, so it just keeps looping. Do you understand that autorun and parallel process events will just keep repeating after they finish? You have to stop them when you don't need them to run anymore.

Ev005 - set weather effects. Erase the event afterwards - you don't need to set the weather on every single frame. Just once, then not again.

EV001, page 2, as I said above, you moved your nested conditional branches INTO the choice results. Take it out of there and move it right to the TOP of that event - before the label. Also get rid of the label and all the 'goto label' commands. If they choose a puzzle that's already been chosen, it will automatically skip the rest, drop to the end of the event, and the event will repeat from the top.

So, even if you change NONE of the other events, if you make that page 2 of EV001 look like this, it should work:

Spoiler
Conditional Branch: Switch 19 (Forest) == ON Conditional Branch: Switch 18 (Maze) == ON Conditional Branch: Switch 20 (House) == ON show completed basic levels message, turn on switch 5 Exit Event Processing (so the select level stuff below doesn't run) Branch End Branch EndBranch EndShow Text: Select LevelShow Choices: Hedge Maze, Forest, MansionWhen [Hedge Maze] Conditional Branch: Switch 18 (Maze) == ON show already completed message Else go to hedge maze Branch EndWhen [Forest] Conditional Branch: Switch 19 (Forest) == ON show already completed message Else go to forest Branch EndWhen [House] Conditional Branch: Switch 20 (House) == ON show already completed message Else go to house Branch EndBranch (Choices) End
It's really quite a messy design logically, given that you have so many events set to autorun or parallel process and they're running continually, when really they don't need to be. Several of them can be turned into common events and called JUST when the check needs to be done, and the others can be combined into a single autorun event on each map.
Thanks,

Btw, do you know how to fix it so, after you complete the level and you get teleported back,  the screen is not pitch black

screenshot of it:

Bug.PNG
Nope. I bet that's got something to do with the screen effects that you run in the parallel process on each map. Maybe they don't reset when the map changes. It's certainly not the default behaviour, so it's because of the script calls you're using, or something that you're doing.
I fixed it this morning

thread can be closed
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/an-event-is-not-working.17541/