MV A problem with QABS enemy system. (I have tried everything else...)

Dear viewers of the forum, I have a question about a problem with the (Quasi) QABS plugin. I know that the plugin isn't supported any more. >_> But the combat is a big part of the game that I'm developing.

The problem is that the enemy in the event doesn't die, even when I leave the map and I come back, the event is re-spawned and I can kill it again over and over.

I tried to fix this with the killEvents plugin by @dismal_science__ but the event comes back. Then I tried to look into the help file from the Qabs plugin to find out about the <onDeath> and <\onDeath> comment that I can put Javascript under.

So, I tried different methods where I can put the script from killEvents into the note section in the enemy tab under the <onDeath>. But it only works for events, so I put it in enemy event, by autonomous movement but it didn’t work, because the plugin cannot activate the second event page.
Screen shot:
After the selfswitch, movement route.png

Then I tried to put in a switch to trigger the script to “kill”, but it “killed” every enemy on the map even when I transferred maps. Because the switch was already activated by then. Then I tried to put the switch off by every enemy on the map, but this triggers the other “killed” event to come back.

Then I tried to it with the
Code:
$gameSelfSwitches.setValue([map.Id,EventId,'A/B/C/D'],true);

This is the screenshot section for the enemy Tab:
Page Enemy onDeath selfswitch script.png

But this has the same result as the switch, that it kills every monster event on the map, even when I transferred to different maps.

I tried to disable the Qabs for the event, but that triggers a bug in the game, that I can’t access my weapons and the animation gets stuck, rendering that option useless…

I tried different ABS systems for MV in the past but they weren’t as close to what I want and Qabs did that right but I can’t seem to fix this issue with the enemy event.

I can’t remove notetags from the event manually through the game, making this seem like a vicious circle.

I was hoping that maybe the people on the forum could find an answer for this problem or find a middle way to let the event be "killed" and that they don't come back.

Thanks for reading! - EniaCat.
You definitely don't need any other plugins to make QABS enemies disappear. If you want to activate a self switch, which then parallel deletes the event, just put this in the onDeath meta

<onDeath>
this.setSelfSwitch('A', true);
</onDeath>

That way it will only switch it's own self switch.

Alternatively you can just delete the enemy using:

<onDeath>
$gameMap.eraseEvent(this._eventId);
</onDeath>
Hi Mike-Turtle, I tried it out and I want to say;

Thank you! thank you! thank you!😍

It finally works! I didn't realize the (this._eventId) could work in the note tag section.
(I'm a beginner at javascript after all),😴 but it did and it works! 😊

The Selfswitch turns on and the game erases the event! I'm so glad that this finally solved my issue. Now I can prototype further with my development.

Thank you again for answering!😂 - EniaCat
Not a problem! I've had QABS burned into my brain at this point, so I'm glad to help a fellow user 🙂
Alright! I'm going to close this thread.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/a-problem-with-qabs-enemy-system-i-have-tried-everything-else.149976/