Hello everyone.I was able to understand about the use of variables. I clarify that what was solved was an issue that was left pending from the previous topic I wrote: viewtopic.php?f=8&t=62938&p=546109#p545669
But the use of several variables in a variable is still an unknown (especially because of the use of boleans, which in theory may be easy, in practice it gets very complicated).
I have searched all over the forum and can't find an example about using multiple variables in one variable.
For example:
If I have a general (boolean) variable:
Code: Select all
$ cant_move = False
If I want to move one, it would be:
Code: Select all
$ can_move_one_whatever = True
# the second one,
$ can_move_two_whatever = True
# etc.
but, if I want to restrict one by one (and not all at once and without resorting directly to cant_move) the logical thing is that each variable (can_move_one_whatever or any other is changed to False).
The problem is the following: when there is a restriction of use of variables (as for example in the use of "draggable" that can be True, False or another variable is there the question. If I place the main in this way:
Code: Select all
drag:
# (rest of code)
draggable cant_moveI thank you in advance for your answer and I hope I have explained my doubt correctly.