Help understanding ABS scripts

So, i posted some days ago asking help for making an scriptcall about self-switches for using it in an ABS system, it was an amazing post, and now i'm here to ask for help again, now with some scripts, so, i was studing this ABS demo made by Listra92, and what i'm trying to figure out is how you can make an event detection without variables, that's what i found in the demo project
1646758098534.png

ignoring delay variables the main part is that big script, so i tried using it on my project, here's what i did:
1646758239055.png

i just make it for testing, that's why is so simple, but i figured out something weird, in this script there is
Code:
$gameSelfSwitches.setValueOf(event.eventId(), 'D', true);
that I learned yesterday that it serves to remotely trigger an Self-Swich, but, when i first tried it on my project, it didn't worked, so i noticed that, in the code that i learned yesterday, It didn't have that "Of" part, so, i removed the "Of", and it worked, but now, it doesn't turn on the self-switch, everything in this code seems right, when i press A the character repoduces an animation in any event that is near and the player is facing, but there's no self-switch, and i'm sure i created an event page for D switch, so i don't know what is wrong, and i'm suspecting about that "Of" that i removed, that's the error message that i got with the "Of"
1646758988820.png

but I am also wondering why this works in the original demo project and here doesn't, please help.
that "setValueOf" might be coming from a plugin or called somewhere before.
maybe a common event or autorun/parallel event.

but I dont know if there is a ABS plugin included or plugins to handle some
functions not included.

do you have any link?
that "setValueOf" might be coming from a plugin or called somewhere before.
maybe a common event or autorun/parallel event.

but I dont know if there is a ABS plugin included or plugins to handle some
functions not included.

do you have any link?
Yes, i found the demo here: http://miyuki-maker.blogspot.com/2016/02/rmmv-event-system-kis-simple-abs.html
I had this one before, and might have the demo, but quite complicated.
the setValueOf is a function of one of the plugins.

if you copy paste only the events or database, it would crash.
I cannot say which has the function, but most are basic setup, and
require some JS knowledge to adjust and make them better.

if the crash is FROM the demo itself, than it would be harder to track,
but you can check the console log to see if there is any info to narrow
down the issue though.

evented ABS system can be really had and complicated as it can bring
many issues with it, so you also need to keep track on some variables
and or switches (self variables/switches are ideal for ABS system).

if you dont have much JS knowledge, dont try to start an evented one,
but more from a plugin, maybes MOG_ChronoEngine or AlphaABS by pheonix.
I had this one before, and might have the demo, but quite complicated.
the setValueOf is a function of one of the plugins.

if you copy paste only the events or database, it would crash.
I cannot say which has the function, but most are basic setup, and
require some JS knowledge to adjust and make them better.

if the crash is FROM the demo itself, than it would be harder to track,
but you can check the console log to see if there is any info to narrow
down the issue though.

evented ABS system can be really had and complicated as it can bring
many issues with it, so you also need to keep track on some variables
and or switches (self variables/switches are ideal for ABS system).

if you dont have much JS knowledge, dont try to start an evented one,
but more from a plugin, maybes MOG_ChronoEngine or AlphaABS by pheonix

Edit: IT WORKED!! i just copy and paste all the plugins in the demo project and it worked perfectly, now i just need to figure wich one of the plugins made it work

Edit 2: The needed plugin for it works is MK_SelfVariables
neither for me, but is a main goal of mine, so I go for front view as alternate.

but making an evented ABS to work, you still need some plugins.

there is a game I need to find, that game uses an evented ABS system
by using heavely modefied pixel movement plugn and heavely modfied
Galv_Projectiles to work really smoothly.

Galv_Projectiles can be used for shooter or ABS system, (most require
eventing in order to make it really smooth to work) but it is also REALLY
powerfull plugin (if you look into it, and take the time to learn it).

no ABS plugin is plug & play and require a good setup, some even more
than the others, evented ABS is the harders part and require a good
portion of JS knowledge.

but without the plugin, the abs demo wont work, as some of it uses a function
inside those plugins.

but there is also some basic ABS tutorials on the forum, but no demo.
but I cannot really help you there, but I do wish you toi toi on your project.

Original thread: https://forums.rpgmakerweb.com/threads/help-understanding-abs-scripts.145554/