Making a NPC disappear after battle

Hi Everyone I plan on making a game . But can anyone tell me how to script a battle
Where the Enemy disappears after he loses the battle ( I am using RPG Maker XP) .

If anyone know that please help me

Have u learnt about switches yet? There basically events.

1 Like

I learnt about switches but dont know were to apply them

1 Like

At the end of the line after the team.

1 Like

Actually use variables or self switches I assume Ur starting out now. just watch some tuts about switches and variables infact I’ll link them here.
This
Thundaga has an whole stack of tuts use them.

1 Like


Where should I add switches ?

Right after branch end.

1 Like

Should I make event page 3 ?

1 Like

Yup ye

1 Like

I made the switches like this


1 Like

But this is not working

I should have deleted the comment script . Now it worked

1 Like

Thank you for helping @Demopan

1 Like