Functions calling each other in weird order

So, we have:

  • PC and GM;
  • var in PC = var in GM

So, who and where is setting that variable?
If, for example, the value of the variable is set from a key event in the PC, then when it’s set in the PC, you also set it directly in the GM. No need for GM to go to PC to get that value.