Getting amount of gold as a variable

I tried to find a way to solve my problem but i couldn't find anything

Basically i want to have an event that first checks your gold by putting the amount of gold the player has into a variable. The player then goes into a shop and after i want it to again check the gold the player has by putting it into another variable then comparing the two variables to see if the amount of gold changed.

I can't find a way to get the amount of gold a player has as a variable however, i'm guessing it requires scripting which i have zero clue how to do
Control Variables > Game Data > Other > Gold

1682343605767.png
Control Variables > Game Data > Other > Gold

View attachment 259863
Oh! I couldn't find that, guess it was easier than i thought which is why nobody was asking about it, thanks

Original thread: https://forums.rpgmakerweb.com/threads/getting-amount-of-gold-as-a-variable.156953/