variable / parameter bindings

i have this:
js3 script pic (3)
okay and inside function block:
js3 script pic (4)
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:
js3 script pic (12)
with that inside here:
js3 script pic (10)
because im getting this error:
js3 script pic (11)
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:
Screen Shot 2024-08-19 at 9.52.29 AM
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:
untitled script pic (8)
which literally attaches untitled script pic (9) to the top of the body of the function, so init becomes this:
Screen Shot 2024-08-19 at 1.58.14 PM
i get this error:
untitled script pic (10)

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()