View Single Post
  #6  
Old 04-12-2012, 03:33 PM
Devil_Lord2 Devil_Lord2 is offline
David K?
Devil_Lord2's Avatar
Join Date: Apr 2011
Location: PA, MD.
Posts: 643
Devil_Lord2 can only hope to improve
Visual Example

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.
__________________

Digital Media Artist - David K? </3 (UnLoved)
www.davidkrout.com
www.twitch.com/DavidKkz




Last edited by Devil_Lord2; 04-12-2012 at 05:27 PM.. Reason: Hopefully this should help greater.
Reply With Quote