Hello. I'm having some trouble. What I'm trying to do is this basic idea:
1. Login: I pull the data saved in my client variables to local variables, effectively refreshing the local variables in case I had to close mushclient.
2. Playing: While playing, I may alter/compute/etc. the local variables, changing their data.
3. Logout: When I logout, I want to save those local variables back to client variables so they're retained in case I need to close mushclient.
---
To test this, I made two aliases:
==
'alias: setv *'
SetVariable("test", "%1")
--
'alias: getv'
v = GetVariable("test")
Note(v)
===
'getv' works fine. setv, however, is the trouble.
If I put:
vari = %1
SetVariable("test", "vari") |or if I do:|
SetVariable("test", vari)
Then when I do 'getv' it always displays 'vari' rathe than %1.
Pulling from client variables to local variables (as shown in my alias 'getv', works fine.
But I can't do the opposite, I can't seem to do:
SetVariable("test", v) So that client-variable 'test' has the contents of 'v'.
What am I doing wrong and how can I get around this?
1. Login: I pull the data saved in my client variables to local variables, effectively refreshing the local variables in case I had to close mushclient.
2. Playing: While playing, I may alter/compute/etc. the local variables, changing their data.
3. Logout: When I logout, I want to save those local variables back to client variables so they're retained in case I need to close mushclient.
---
To test this, I made two aliases:
==
'alias: setv *'
SetVariable("test", "%1")
--
'alias: getv'
v = GetVariable("test")
Note(v)
===
'getv' works fine. setv, however, is the trouble.
If I put:
vari = %1
SetVariable("test", "vari") |or if I do:|
SetVariable("test", vari)
Then when I do 'getv' it always displays 'vari' rathe than %1.
Pulling from client variables to local variables (as shown in my alias 'getv', works fine.
But I can't do the opposite, I can't seem to do:
SetVariable("test", v) So that client-variable 'test' has the contents of 'v'.
What am I doing wrong and how can I get around this?