MV Events detecting each other | QSight | Plugin command only works after Choice Window

So I've encountered a very weird plugin command behavior.
Basically, I want one of my events to be able to detect another one. From what I understand the only decent plugin for it is the QSight. I can't use NoteTag cause they're not flexible enough and found a plugin command that does exactly what I want. I'm also using both Srd's and YEP's plugins for inserting variables inside plugin commands, plus a "self variables" plugin by Ozu. All of them work perfectly fine, so that's not the issue.

Here are a few variations of the same "function":

◆Comando de plugin:qSight this check poly 5 37 ${v[self(this)["target"]]}
◆Script:var line = 'qSight this check poly self(this)["aggression dist"] 37 $gameVariables.value(self(this)["target"])'
: :CallPluginCommand(line);
◆Script:var line = 'qSight this check poly 5 37 $gameVariables.value(self(this)["target"])'
: :CallPluginCommand(line);
◆Comando de plugin:qSight this check poly ${self(this)["aggression dist"]} 37 ${$gameVariables.value(self(this)["target"])}
◆Comando de plugin:qSight this check poly 5 37 ${$gameVariables.value(self(this)["target"])}

And here's the event that checks whether my plugin command works or not.

◆Script:self(this)["aggression dist"] = 5
◆Script:self(this)["target"] = 43
◆Etiqueta:LOOP TEST
◆Comando de plugin:qSight this check poly 5 37 ${v[self(this)["target"]]}
◆Si:AGGR DETECT es ON
◆Mensaje:Nada, Ventana, Inferior
: :WORKS
◆
:Fin
◆Esperar:15 fotogramas
◆Ir a etiqueta:LOOP TEST
Now the problem is that none of them works, unless... I put them inside a Show Choice Window like this:

◆Script:self(this)["aggression dist"] = 5
◆Script:self(this)["target"] = 43
◆Etiqueta:LOOP TEST
◆Mostrar elecciones:1, 2, 3, 4, 5 (Ventana, A la derecha, #1, #2)
:Cuando 1
◆Comando de plugin:qSight this check poly 5 37 ${v[self(this)["target"]]}
◆
:Cuando 2
◆Script:var line = 'qSight this check poly self(this)["aggression dist"] 37 $gameVariables.value(self(this)["target"])'
: :CallPluginCommand(line);
◆
:Cuando 3
◆Script:var line = 'qSight this check poly 5 37 $gameVariables.value(self(this)["target"])'
: :CallPluginCommand(line);
◆
:Cuando 4
◆Comando de plugin:qSight this check poly ${self(this)["aggression dist"]} 37 ${$gameVariables.value(self(this)["target"])}
◆
:Cuando 5
◆Comando de plugin:qSight this check poly 5 37 ${$gameVariables.value(self(this)["target"])}
◆
:Fin
◆Si:AGGR DETECT es ON
◆Mensaje:Nada, Ventana, Inferior
: :WORKS
◆
:Fin
◆Esperar:15 fotogramas
◆Ir a etiqueta:LOOP TEST

Can anyone explain what is happening here and how I can reproduce the same effect without a show choices window?
There are no other events interfering with these variables. All the values are valid, and the Show Choices trick won't work unless you use the correct plugin commands.

Original thread: https://forums.rpgmakerweb.com/threads/events-detecting-each-other-qsight-plugin-command-only-works-after-choice-window.138601/