Changing an event's self switch using another event

I'd like to know if there's a way to change an event's self switch using another event or a common event, be it through a script or a plugin command.
Is that possible or am I better off using switches for that ?
Yes, check the script call list.

$gameSelfSwitches.setValue([mapId, eventId, switchId], value);

Example: $gameSelfSwitches.setValue([1, 5, 'A'], false);
Oooooh wow oh god you're a lifesaver
thanks a lot !

Original thread: https://forums.rpgmakerweb.com/threads/changing-an-events-self-switch-using-another-event.165704/