Using variable in script value.

Hi!
How can I use the value of a variable in the script configurations?
Like, if I'm using a script that asks me to set the value of an x axis, and I want that to be the value of a variable of my game, how can I do that?
Thanks!
Assuming whatever script you're using supports scripts, you can use $gameVariables.value(id of variable)
Thank you so much! That worked

Original thread: https://forums.rpgmakerweb.com/threads/using-variable-in-script-value.138368/