There will be absolutely no difference between the total.points and green.points |
They both receive the amount which is called bu pressing button. And they both are a number variable of the same object.
In my project, I have 25 object which will need to be added to this string. Each object has a .name , .weight and .points variables.
In one string, it is easy, only the total of all added is shown. In another, the total of weight. But each time their name is pressed, they are added into the first string, in the pressed order. A and each time, x2 is pressed, in the last 2 strings, the number is added to the total, and it is very simple. But In the first string, the value before x2 remains, and it is not nice at all. It is confusing. The way you last described, will it have the power to make any change to the value of each element in particular from the first string? The only way that works, is create a global variable for each element and create a different string in front of each name placed in the 1st string.... it is a week of working, and it doesn't seem efficient enough.
Is there any command, expression or whatever it is called, that can do this? :
On button press - Add green.points to Global2
Add ( or Set ) green.points to Global1
On x2 pressed - Add green.points to Global2 ( creates total of all points of all objects added to this string )
Add ( or set ) green.points to Global1 only to the green.points variable? Replace it!
What is the difference between points and totalpoints? Why is it so hard to change a number.variable inside a string? Because it contains text?
Isn't there any command/expression that locates this number.variable inside the string and changes it to what I say?