I know that maybe I am littering the forum, but I really tried my best to look through forum with my problem.
So, the question of the day is: how can I define a variable that whole game can see it? 'Cause what I was doing is this:
Code: Select all
$ var = 0
So I thought about global variables (sounds logical to me). BUT!
Googlin' through Internet I didn't actually found tutorials for them, just tiny bits of everything. So from what I saw, I entered this:
Code: Select all
$ global var
$ var = 0
Of course, I'd found some python code, but it's pretty hard for me (at least it looks like it).
I've tried as well copying part of the code from some game with money (it definitely must be a global variable, isn't it?) Failed that as well... Must be losing some part at the start...
So is there any simpler way to define and use global variable in Ren'Py, or the only way to do that is to learn Python?