Is that a way to remotely activate an Self-Switch?

Yeah, i know that's odd, so let me explain.
Basically, i'm trying to make an abs system by eventing, but there's a thing that bothers me about it,in all the ABS systems via events that i saw, you have to create a switch to use when you kill an enemy, it makes very sense using it, but the problem is that is AN WHOLE SWITCH, FOR JUST ONE SINGLE ENEMY, I don't think it's worth it, and i'm thinking about, if i could use an self-switch insteady, it would be very better, so, is there an way, maybe with plugins, or scripting, that i could remotely activate an self-switch?
Hi there!
By default, you can use the script call:

$gameSelfSwitches.setValue([mapId, eventId, self switch], value)

Example:
$gameSelfSwitches.setValue([1, 2, "A"], true)

The letters of the self switches must be in quotes.

You can also take a look at a plugin that I made to help you out:
For future reference too you can check this sheet:
Hi there!
By default, you can use the script call:
This is one of the single most valuable things in my project, and I truly wish it were included as an event command by default (@Archeia 😉 ). I love setting self-switches on other events and not cluttering up my game variables/switches in every cutscene.
This is one of the single most valuable things in my project, and I truly wish it were included as an event command by default (@Archeia 😉 ). I love setting self-switches on other events and not cluttering up my game variables/switches in every cutscene.
Same here. Put it in the suggestions!
I did. It got rejected w
$gameSelfSwitches.setValue([mapId, eventId, self switch], value)
MANO, OBRIGADO, FUNCIONOU!!.

Thanks for everyone's help, i'm so glad it worked, this community is amazing, now i think i should study the Script calls for helping in my ABS.

Original thread: https://forums.rpgmakerweb.com/threads/is-that-a-way-to-remotely-activate-an-self-switch.145326/