i put this in as a test (lost level being the name of my var with 2 as its id) and it is not working
and advice on where i can learn more about using variables in scripts becuase i wanna go on to do some more advanced operations
$gameVariables.value just gives you the actual value of that variable. To set it to a particular value, you need to use $gameVariables.setValue. So, for example, $gameVariables.setValue(2, 10) will set variable 2 to the value of 10.
To add to and subtract from the variable, you could use