variable / parameter bindings

i have this:


okay and inside function block:

okay and js3 script pic (6) is just
js3 script pic (5)
because for some reason js3 script pic (7) isnt available in certain contexts even though its defined globally. but for Function i have:

and i know im not setting up the variable bindings correctly but in trying to get some sort of debugging information i have:

with that inside here:

because im getting this error:

and running with the debug block i get this fourth time it stops:

which you can see Function is defined all the way up. but regardless, this is where its trying to call displayName. and the call function definition is just:
js3 script pic (13)
but you can see the variable i want (name: boo) in item 4 with the displayName call block. but for some reason, im getting this for parameterNames in item 2:

and thats inside of the outer function which was successfully built and called and in the middle of executing. but that parameterNames is whats defined in Function.Call:

and jesus does anyone know the correct way to do this/ what im doing wrong cause this is driving me crazy

what on earth is this (yes i know it's an implementation of oop but wow)

ikr :flushed:

its a freaking nightmare. the main issue im having is getting custom c inputs to capture the surronding scope. i tried seperating the problem into a new project but, yeah:


i know snap is bugged because if i have untitled script pic (7), a global variable, and i have:

which literally attaches untitled script pic (9) to the top of the body of the function, so init becomes this:

i get this error:

first thing i'd do is try the let name be foo... script several times, removing different blocks from it until i got a minimal case. but if i had to guess, the minimal case would probably be just the outer function block and the final init()