Hi guys. I was wondering if I have events understood properly. I have a bunch of events (sprites) standing around as part of a scene where I do battle with them slowly but surely. I would like them to disappear as I defeat them. To accomplish this I used a control variable then had it turn a switch on and send them to a blank page after every battle. It is not working.
Before I investigate further I would like to know if this is even possible to have events trigger while a page is still actively happening. Do events work like this? Do I have to create new pages for each battle so the game knows to change? Did I simply set this up wrong?
If I didn't screw it up, pls lemme know. If I did screw it up, pls let me know.
You've done some of it wrong - it could just be a silly mistake, but with it added to your post, you also might want to back up and revisit some event tutorials. You decide.
Your first screenshot looks wrong because it's a trigger of Action Button. That means the event code will only be run when the player walks up to it and hits Enter (or clicks or whatever). Then it will check the variable and possibly turn on its self switch.
You probably don't want that, you want it to be happening automatically, so it would need to be a parallel trigger. However, there's no need to even do that - skip the self switch, just make its second page have a condition of Bandit Hideout >= 4. Zero event commands are necessary on that first page.
Also, you'll want to make sure your third screenshot has some way to deactivate - a blank second page from a self switch or something. Otherwise, when you've done all those battles and stuff, if the player walks over that spot again it'll all restart.
I assume what you're trying to do is have 4 of the bandit events become blank after each battle? The way you currently have that set up will not work, as you have just pasted a conditional into an event page set to "action button". What this will do is, if you interact with that event, it will check if that variable is bigger than or equal to 4 and then deactivate itself, which is not the behavior that you want.
The way events and event pages work is that the page with the biggest number that has all of its page conditions (on the left) fulfilled will be the active one. What you put on the right under "contents" merely dictates what happens if that event is triggered. It will not trigger itself if set to "action button" (as that setting means the event is triggered by you standing in front of it and activating it".
To do what you want to do, I would have the first page with the bandit graphic as normal. Contents can be empty as you are not meant to interact with that event. Then on the second page, set the graphic to empty and set a variable condition of "Bandit Hideout >= 1". Do this for 4 of the bandit events you want to disappear first. Then move on to the next 4 events you want to disappear and do the same, but set the variable condition to ">=2". This will cause them to disappear after the second battle, when you increment that variable to 2. Then, the next set of 4 should be set to ">=3", etc.
Hope this makes sense.