Saving number variable from query and adding to it

does anyone know if its possible to store a number variable and edit it later I currently have this command: Currently at $(query) points for today. Cumulatively at $(eval 295 + $(query); ) points for the tourney. and i would want to be able to save query after each input and add to it as it is a 6 game tournament. any help would be sick thanks

You can’t store or mutate values directly with eval, but you can make some commands that modify other commands. You can see an example with a kill counter at Kill Counter - I need the coding for it