Using local storage is the easiest way and should work something like this:
local storage set Item key = "PlayerCoins" value = (the name of your GlobalVariable)
on start of layout - local storage get Item "Playercoins"
on item get "Playercoins" - set GlobalVariable = int(localstorage.itemvalue)
Thanks for quick refrence that helped me a lot .....
so is playercoin a variable or integer or key ? as you want to set the global variable score to it am i right ?
So if possible could you just report the same code using the table reference if possible as it would help me to understand much easily .
also I think this two statement should be called in start of the layout .....
local storage set Item key = "PlayerCoins" value = (the name of your GlobalVariable)
local storage get Item "Playercoins"
so is it necessary to call them randomly or just in a order to get the value of globalvariable to key playercoin ?