I don’t understand how to make global variables that I can access across multiple scripts. What I want to do is mainly use logic bricks for code, but then to use scripts in order to perform statistical formulas for my gameplay.
Example: I want my character’s global stats such as “Player Agility” to be copied into a formula within a script so that the global variable “Player Agility” will act as a modifier of several other variables stored within the formulas in the script. Such that a player with higher Agility may end up with bonus in other stats based on math.
So that the script would say something like:
Attack Damage = “GetWeaponData”/“Get Player Strength” * “Player Agility”
Then you could send “Attack Damage” to some other script in order to deal damage to monsters.
How would I do that?
Thanks for help.