If no one can understand this, I don't know what people will.
I tried to have it just equal 15 (so I really didn't have to keep typing it)
This should show visually what I'm trying to do.
Input1 assigns Input2 to itself.
PHP Code:
input1 = Client Variable
input2 = Client NewVar
Type in "client.intro" to input1 (Automatically adds player.)
input1 = client.intro;
Type in "15" to input2
input2 = 15;
input1 = input2;
input1 "player.client.intro" = 15;
However:
player.client.intro != 15;
Something is going wrong, and it isn't assigning or seeing player.client.intro as a real variable..
Later I'll have to do:
if (input1 == null){
return;
}
So that if there is no such thing as client.intro, it wouldn't do anything.
I've tried this too:
PHP Code:
function Dev_Client_OK.onAction(){
temp.obj = new TStaticVar();
temp.obj.newVar = "player."@Dev_Client_Var.text;
player.chat = "Input box: "@obj.newVar;
sleep(3);
@obj.newVar = 15;
player.chat = "@obj.newVar:"SPC obj.newVar SPC "should be 15";
sleep(3);
player.chat = "In reality it is:" SPC player.client.intro;
temp.obj.destroy();
}
Basically you see "Input box: player.client.intro" then
"@obj.newVar: player.client.intro should be 15", then
"In reality it is: 5" since my client.intro is 5 and hasn't
changed.