problems loading $gameVariables or parameters...

hi guys.

so i got this nice little piece of code thats running quite ok for starters. its supposed to become a skill lvling plugin at some point.i got the parameters set as well. (just change deBugModeOn to true to run it in editor; turn it to false to run ingame) (the problem lies in the false area)

i am also fairly new to js or programming in general and i am really fighting with it. (codecademy past 'Class'es but kinda failed out at promises. was thinking on getting some exercise before torturing my brain further)
i am basically stuck somewhere between line 240 and 335. my $gameVariables do not load, and i am pretty sure my parameters neither. and i cant for the life of me figure out why.
its not the first attempt at a plugin nor at this same plugin. and i always get stuck here when i try to implement my editor-written-and-debugged js to the ingame console debugging. Please help me out. (using sublime & node.js)

i know its a bit of a mess, but i'm trying my best.

v. 0.5 and 0.6 are basically the same.
SF_SkillLvl_v0_5.js works with the old way of reading parameters into PluginManager (and i by far do not have my conversions from Array to String/Array etc right, but thats not so important for now)
SF_SkillLvl_v0_6 uses Frogboys Pretty Plugin parameters (parameters should be correct there)

thank you for any help in advance. preferably in a low difficulty way so i can better understand and reproduce it myself.
I would just open the developer tools and step through line by line to see what's in the variables at each step.
Uncaught TypeError: Cannot read property 'value' of null
at SF_SkillLvl_v0_6.js:330

line 330: Impo = $gameVariables.value($SfParams("Storage"))||[];

-> my impression is $gameVariables just aren't loaded and i dont know how to preload or however thats called them. ("var Impo;" is defined earlier)



at SF_SkillLvl_v0_6.js:798
798: }) ();

don't feel there is anything wrong with this.

-> how do i go through it in dev tools line by line; or did you mean what i did all along, the error lines?
Try $SfParams["Storage"]

Original thread: https://forums.rpgmakerweb.com/threads/problems-loading-gamevariables-or-parameters.120638/