NO, I do not get to the point... anyhow! I've tried ten different combinations. The most logical was :
Add Global.points to Global1 but it just ads the whole number from the second global into the first one, and it is totally not what I am looking for.
Let me try to ask in a different way.
So, we do it that way:
On touched Button1 - Green.points are set to Global1 ( Green; 30; )
Green points are added to Global2 ( 30 )
On touched x2:
Global1 changes to - (Green-x2; 30)
Gloabl2 to - (60)
On touched Button2:
Blue.points are set to Global1 ( Green-x2; 30; Blue; 25; )
Blue.points are added to Global2 ( 85 )
On touched x2 under Blue we get:
Global1 changes to- ( Green-x2; 30; Blue-x2; 25 )
Global 2 changes to - ( 110 )
So, what command do I have to insert for the first global to suffer changes in the numbers variables? And become
( Green-x2; 60; Blue-x2; 50 )
I don't believe Javascript doesn't allow such a thing!
If I create a command like:
Set to Global1 Global1&Green.points&Global2 it will add after Green.points the total points from the Global2. I need to be added only the called amount....and not be placed after the texts already writen there, but replace the initial number.
Can anybody write a short code here for the noob of me to understand where I get wrong? Please.