need help with switches please.

so i am super new to this whole make your own game thing and am quite enjoying it. i really dont know java script yet , but thats not going to stop me.
can anyone help me with a problem im having where i have a boss monster on my map, and after battle i need him to disappear . right now he is just standing in my way after i kill him and only wants to fight me more. i appreciate his enthusiasm but i really just need to get to the treasure ya know.
After the Battle Processing call, turn on Self Switch A. Then add a second page/tab to the event, set its condition (above the sprite area) to Self Switch A, and don't do anything else on the page (no sprite, no commands, no change to the trigger).
** LEVEL UP** - NEW SKILL OBTAINED !
ty kindly
** LEVEL UP** - NEW SKILL OBTAINED !
ty kindly
I love that lol It does feel like that when you learn something new about making a game 😤
Ok so i was able to get the boss mob to disappear and reach the treasure. But alas i have encountered a new issue.
If I am making wandering mobs instead of rando encounters. how do i get the mob to say reappear after ive killed it, left the room and reentered?
im so new ....
In that case, put an 'Erase Event' command after the battle processing call (second tab, left column). This will remove the event from the map, but it will reappear when you reenter the room.
ok so i tried inputting that command every where i can think of , cant seem to make it work so far i have it as this..
battle processing :
if win:
control switch A
if escape
( empty)
end
erase event
If you want the enemy to reappear when you leave the area and return, don't use the self switch. That's a permanent change until you turn it off. Just use erase event to make the event disappear until the player leaves and comes back to the area.
Use a self switch and a new event page conditioned by the self switch if you want them to disappear permanently.

Use erase event (no self switch or new event page) if you just want them to disappear until you leave the map and come back.


You really need to get a good understanding of these things, as they are the basic building blocks of game making. I suggest you look through some beginner tutorials to learn about them. @Andar has some links in his signature, and I have a feeling he'll post here real soon so you can access them easily 😉
Awesome tyvm , Ya i want to learn how to do this quite a bit. baby steps right🙂
Ill follow @Andar and see what i can find.
everyone has been a huge help ty all 😉

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-switches-please.86085/