MV Trigger an event via a script call

Hello!
I'm using a plugin called QABS and I'd like to trigger an event once an enemy gets defeated with a script. I have little to no experience with JavaScript, so I couldn't come up with much so far, however as far as I understand it, there should be no trouble with the plugin, just need a very simple line of script.

what I've currently got is this:


$gameMap.event($gameVariables.value(92)).start();


(as copied from a reddit thread by u/tru_noble) - which I believe SHOULD trigger event #92, however it does nothing.

In case someone here is also familiar with QABS, I'm also posting a picture of the enemy in the database. (The enemy is also moving and attacking.)


I'm sorry if I posted in the wrong board.
Thank you!
$gameMap.event($gameVariables.value(92)).start();

(as copied from a reddit thread by u/tru_noble) - which I believe SHOULD trigger event #92, however it does nothing.
This says "start the event with ID equal to the value of game variable 92".

To start map event 92, try this instead:
JavaScript:
$gameMap.event(92).start();
This says "start the event with ID equal to the value of game variable 92".

To start map event 92, try this instead:
JavaScript:
$gameMap.event(92).start();
Alright, this works, thank you very much! <3

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/trigger-an-event-via-a-script-call.138363/