MV Trying to call a variable number in another script... (MV)

Hey all, I am unsure as to how to actually use a variable number in the middle of a script after setting it.

$gameMap.event(10).canPass(x, 14, 4)

Basically I just need to know how to make "x" in this script be the number attached to variable#78.


(I realized now I should've put this under the thread about smaller questions but I haven't had to ask anything in a while and forgot about that my bad)
I recommend browsing through this spreadsheet for this kind of information.
But in short, let x = $gameVariables.value(78);
Thank you, I already found that answer but it wasn't working so I messed around a bit and figured out what I was doing wrong and got it working again. I just needed the confidence boost to know I had the correct thing in the first place to double check other stuff I guess lol.

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-call-a-variable-number-in-another-script-mv.162499/