Remove path blocks after successful boss fight

The title pretty much says it all.
Can someone more experienced provide me the event logic for this function?

Screenshot 2023-11-01 154132.png
Have the blocks tied to a switch, turn the switch off when you win the battle.
Or if you're using a variable to track your story progress and defeating the boss increments that variable, you can use that for the condition on the second, blank page of your blocking event.
The blocks need to be events, not tiles, if you're asking about the left exit.

then you don't need any logic but only two event pages, one blocking and one passable, and choose which one is active by a switch
I think I'm missing something.. I have a conditional branch Where if The boss switch is ON (boss not played yet) path is blocked. and IF the boss switch is OFF then ---> Erase the event so the path is clear. The logic doesnt seem to work. Where is my mistake?
Or if you're using a variable to track your story progress and defeating the boss increments that variable, you can use that for the condition on the second, blank page of your blocking event.
EDIT: It worked with the variable approach. I created a "bosses" variable and gave it a const of +1. I just cant seem to understand the switch logic.


Interesting approach...
I think I'm missing something.. I have a conditional branch Where if The boss switch is ON (boss not played yet) path is blocked. and IF the boss switch is OFF then ---> Erase the event so the path is clear. The logic doesnt seem to work. Where is my mistake?
Reverse your switches and test.

Unless you specifically have an event flip the switch elsewhere (either another event on another map or a common event run at the beginning of the game to set everything up using a plugin or something) switches will start OFF.

You want the switch ON when the boss is defeated, generally speaking.

You can still have it work how you described of course, but it's slightly more confusing and might create graphical glitches on entry such as the path being clear and then the boulders appearing out of thin air on entry when the switch is checked.

Additionally, you still want the event icons to be the boulders themselves. Don't tile the boulders onto the map directly because you don't have a transparency tile to overwrite the boulders with using a subsequent event page. Just have the boulders be visible if the switch is off, and a subsequent page have a blank icon if the switch is on.

A variable being incremented is also a way to accomplish essentially the same function as a switch, you just check the variable for greater than or equal to (with anything less than the constant number you're checking the variable for counting as the switch being OFF).
The variable approach Turan described worked for me. My brain has an issue of processing the switch logic. Will learn as I spent time on it. Thank you all!
Reverse your switches and test.

Unless you specifically have an event flip the switch elsewhere (either another event on another map or a common event run at the beginning of the game to set everything up using a plugin or something) switches will start OFF.

You want the switch ON when the boss is defeated, generally speaking.

You can still have it work how you described of course, but it's slightly more confusing and might create graphical glitches on entry such as the path being clear and then the boulders appearing out of thin air on entry when the switch is checked.

Additionally, you still want the event icons to be the boulders themselves. Don't tile the boulders onto the map directly because you don't have a transparency tile to overwrite the boulders with using a subsequent event page. Just have the boulders be visible if the switch is off, and a subsequent page have a blank icon if the switch is on.

A variable being incremented is also a way to accomplish essentially the same function as a switch, you just check the variable for greater than or equal to (with anything less than the constant number you're checking the variable for counting as the switch being OFF).
My brain has an issue of processing the switch logic. Will learn as I spent time on it.
That is because you mixed up "condition" with "conditional branch", which are different things.

conditional branch (what you used) is an event command.
the condition (what we meant you to use) is on the top left and NOT in the event window.

you'll need multiple pages to use a switch condition however
That is because you mixed up "condition" with "conditional branch", which are different things.

conditional branch (what you used) is an event command.
the condition (what we meant you to use) is on the top left and NOT in the event window.
I got it. I did it with a switch event. It makes sense now. Thanks for the clarification Andar! <3
you'll need multiple pages to use a switch condition however
Technically speaking, if you initialize the switch to ON, the events can have just one page where they're same as player, blocking the path, condition of that switch on.

Then turning the switch OFF will make the event's single page not meet its conditions and it won't show at all.

Original thread: https://forums.rpgmakerweb.com/threads/remove-path-blocks-after-successful-boss-fight.162577/