whats there to explain? its pretty straight forward.
a variable is a decleration of a value...for instance, if pete has 10,472.49$ on his bank account, i could do:
so every time i need to use that number, i dont have to type the number but just use "petebankmoney"
if you want to edit a value in a script, you can just directly edit it by saying
petebankmoney = 10000000000
or, if you want to increase it every time you execute the script you can make it into:
petebankmoney = petebankmoney+100000
so every time you press the button, it turns the value of petebankmoney, into petebankmoney + 100K
so all you have to do is put that into an sqf file and just execute it.