Variables, as mentioned previously, have two main "scopes" they can have. They can be global, where any script, any file, any event or function or command can access them. Or, they can be local, where ...
Variables for players whose UUID starts with 0 are not being saved properly. set {test::%player%} to 1 shutdown the server. {test::%player%} variables is reset. Not ...