Pearl ABS - Enemy should only attack after a Switch is activated

Hello 🙂

so first of all, I'm pretty new to this whole RPG Maker stuff, so please don't judge me if I ask nooby questions.

I work with the RPG Maker VX Ace for 2 Weeks now and I added the Pearl ABS Skript of Falco (https://falcaorgss.wordpress.com/2012/12/02/falcao-pearl-abs-liquid-v1/) to my Project, since I didn't like the default battlesystem of the RPG Maker.
I did understand so far how to create enemys and weapons and skills and all this stuff and it works totaly fine.

But I have one specific problem with one enemy that I created.
I have an event, that activates a dialog between 2 npcs and then move the enemy towards the player. The enemy should first talk to the playeer and only after that attack. But I can not tell this enemy when to attack and when not.

11_Map.jpg

1_Event_Dialoge.jpg
2_Event_Dialoge.jpg
3_Event_Dialoge.jpg
4_Event_Dialoge.jpg
5_Event_Dialoge.jpg


I tryed to add a selfswitch to the enemy, that turn selfswitch B on when the dialog event is over, but it looks like the enemy dosn't care, cause it attacks no matter if the switch is on or not.
6_enemy.jpg
7_enemy.jpg
8_enemy.jpg



I also tryed to set the enemy to passive, so it only attacks when it get attcked, but this doesn't work either cause then it uses only the enemy skills and not the weapon it should use.

9_Database.jpg
10_Database.jpg


Can someone help me please?
This might have to be moved the RGSSx Script Support, but before then, could we have a screen shot of the event you mention in case the problem lies there. Please use Alt+PrtSc so that we only get the active window, not your full desktop. Do not crop the screenshot, we need to be able to see all the conditions and tabs.
@Kes I added the images. I hope that is right like this.
So for now, I made an alternative way for the event to work. Basicelly I made enemy 31 to a normal event and when this event ends it turns a switch on that aktivate a new enemy that looks like enemy 31 and attacks the player.

If you guys figure out a better way I would be very happy.

Original thread: https://forums.rpgmakerweb.com/threads/pearl-abs-enemy-should-only-attack-after-a-switch-is-activated.86670/