- 157
- Posts
- 12
- Years
- Hope Peak's Academy
- Seen Apr 28, 2025
I'm not going to explain why I'm trying to do what I'm trying to do. That doesn't matter.
This is the event:
What I WANT to happen, and what it looks like should happen is
What is instead happening is the second I interact with the event, EVERY switch in the event turns on, rather I select an item or not. Not only that, but one item of every $PokemonBag.pbDeleteItem script I have in this event is deleted regardless of if I choose it or not.
Here's proof that every switch in the event is being turned on at the same time:
Since it's a conditional branch I don't see why this is happening when the switches shouldn't be turning on unless the condition is met.
This also happens when I select an item that's in the event, which is why I believe that the event is somehow ignoring the condition it needs before turning on the switches the second I interact with it. But why would it do that?
I'm not going to accept "just use PBBerry" or whatever that script is called as an answer. It doesn't matter what the item is. I'm going to want to use this kind of thing for items that aren't berries later, if I can get it to work.
This is the event:
Spoiler:
![[PokeCommunity.com] ALL switches in one event being turned on when the condition isn't met?! (V17.2) (Solved) [PokeCommunity.com] ALL switches in one event being turned on when the condition isn't met?! (V17.2) (Solved)](https://i.imgur.com/Isq4oz1.jpg)
What I WANT to happen, and what it looks like should happen is
Spoiler:
Open Bag
If (item) is selected, then:
Delete selected item
Switch = on
this event: graphic
Else:
Nothing happens. I even tested something by having the events turn off if nothing is selected but that doesn't work.
If (item) is selected, then:
Delete selected item
Switch = on
this event: graphic
Else:
Nothing happens. I even tested something by having the events turn off if nothing is selected but that doesn't work.
What is instead happening is the second I interact with the event, EVERY switch in the event turns on, rather I select an item or not. Not only that, but one item of every $PokemonBag.pbDeleteItem script I have in this event is deleted regardless of if I choose it or not.
Here's proof that every switch in the event is being turned on at the same time:
Spoiler:
![[PokeCommunity.com] ALL switches in one event being turned on when the condition isn't met?! (V17.2) (Solved) [PokeCommunity.com] ALL switches in one event being turned on when the condition isn't met?! (V17.2) (Solved)](https://i.imgur.com/AypbZOI.png)
Since it's a conditional branch I don't see why this is happening when the switches shouldn't be turning on unless the condition is met.
This also happens when I select an item that's in the event, which is why I believe that the event is somehow ignoring the condition it needs before turning on the switches the second I interact with it. But why would it do that?
I'm not going to accept "just use PBBerry" or whatever that script is called as an answer. It doesn't matter what the item is. I'm going to want to use this kind of thing for items that aren't berries later, if I can get it to work.
Last edited: