[SOLVED] Switch/Event Help

Update: The problem has been solved and my events are working fine now. Turns out a script I added into the game was using switches and the ones being used had ones I designated switches to for other events.

Hey, I'm kind of new to RPG Maker and I'm still getting used to learning the ins-and-outs of the program itself. I know how to use switches and I have a few set up in my game where you'll need a certain item to go somewhere. For example I have a garden area you can access but in order to do so you need to buy a ticket/pass, then you're free to visit the garden. That event/switch is working just fine but some of my other events involving that same method aren't working and when I test to see if the "you can't go here yet without (insert item)" event, it works as if I already have the item required.

I didn't have this problem before in previous versions of my game but now all of a sudden they aren't
Does anyone know how to fix this?
Might be easier to find someone to help you if you share screenshots of you event pages. 🙂

It's hard to guess what might be the problem without seeing what you've setup.
Make sure your pages that require the item are AFTER the pages that don't require the item.

If an NPC gives you a quest to pick oranges from the tree, they should give you the quest on tab 1, and give you the reward on tab 2 after your oranges variable is 10. Or something along those lines.

RPG Maker looks at pages from the highest number to the lowest number, and makes the highest numbered page that has no conditions, or all conditions are met, the active page.

But yes, if that doesn't help, we need to see the pages of one of these events that isn't working. Make sure you include the WHOLE event window in the screenshot, as chances are the problem is not going to be in the list of event commands.
Might be easier to find someone to help you if you share screenshots of you event pages. 🙂

It's hard to guess what might be the problem without seeing what you've setup.
Sure thing ^^
Here's one of the events I'm having a problem with
This is a note that's supposed to allow you to see the mayor Event1.PNG Event1.2.PNG

And this is the event that blocks you until you grab the itemEvent2.PNG Event2.2.PNG

This event was working just fine for me before but now all of a sudden it's not. It acts as if I already have the item even though I don't
Make sure your pages that require the item are AFTER the pages that don't require the item.

If an NPC gives you a quest to pick oranges from the tree, they should give you the quest on tab 1, and give you the reward on tab 2 after your oranges variable is 10. Or something along those lines.

RPG Maker looks at pages from the highest number to the lowest number, and makes the highest numbered page that has no conditions, or all conditions are met, the active page.

But yes, if that doesn't help, we need to see the pages of one of these events that isn't working. Make sure you include the WHOLE event window in the screenshot, as chances are the problem is not going to be in the list of event commands.
I know, that's the thing though, I have my event set up on the first page but when I play the game it acts as if it's on the second page. Idk why it's doing that ^^;
Have you added any scripts? Have you checked whether the scripts use any switches? If they do, have you named those switches to ensure you don't accidentally use them for something else?

Your events are wrong, too. All the event commands should be on the first page of those events, and the second page should have nothing. Otherwise, the player has to interact with the event a second time (which is going to be hard, when they can't see anything there) in order to turn on the switch.
Then show us the events.

Have you added any scripts? Have you checked whether the scripts use any switches? If they do, have you named those switches to ensure you don't accidentally use them for something else?
I did show the event's though ^^;
In this post right here
Sure thing ^^
Here's one of the events I'm having a problem with
This is a note that's supposed to allow you to see the mayorView attachment 89145 View attachment 89146

And this is the event that blocks you until you grab the itemView attachment 89147 View attachment 89148

This event was working just fine for me before but now all of a sudden it's not. It acts as if I already have the item even though I don't

I do have a few scripts I added in to my game but I don't think any of them use switches
Have you added any scripts? Have you checked whether the scripts use any switches? If they do, have you named those switches to ensure you don't accidentally use them for something else?

Your events are wrong, too. All the event commands should be on the first page of those events, and the second page should have nothing. Otherwise, the player has to interact with the event a second time (which is going to be hard, when they can't see anything there) in order to turn on the switch.
Well I'm stupid, I just found out that it WAS a script I added
I took it out and the events are working just fine now

I feel so dumb lol
Have you added any scripts? Have you checked whether the scripts use any switches? If they do, have you named those switches to ensure you don't accidentally use them for something else?

Your events are wrong, too. All the event commands should be on the first page of those events, and the second page should have nothing. Otherwise, the player has to interact with the event a second time (which is going to be hard, when they can't see anything there) in order to turn on the switch.

It was a script, I took it out and it works fine now ^^;
And yeah, I was messing around with that particular event in order to see why it wasn't working but I guess I forgot to put it back to how I had it before.
@OusatsuZansatsu, please refrain from double posting (= posting after yourself). If you want to add something, just use the 'Edit' button to add to your last post. If you want to quote multiple posts, just click on +Quote of all those posts, scroll down and click on Insert Quotes.

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/solved-switch-event-help.94814/