Started working on a different type of HUD and came up with the idea of dumping the list to chat. Unfortunately you can't just turn around and open the script and paste that back in thou the same way it is spit out. The script will throw an error if you try pasting this in:
Sandboxes, Sandbox Cordova MONO, Cordova, <100.000000, 158.000000, 21.612890>
I had to put qoutation marks on all the strings. Next test was chatting the data, like above, back to the script and that worked except that the vectors weren't treated as vectors and were returning NULL.
Finally I have it right and it works beautifully and wanted to share(Not the WHOLE script
, Just the passing data back and forth part):CODE
list temp = [];
string region;
key owner;
default
{
state_entry()
{
owner = llGetOwner();
llListen(99,"",llGetOwner(),"");
llListen(-23123,"",llGetOwner(),"");
}
touch_start(integer total_number)
{
llDialog(owner,"",["List","Reload","Slurl"],-23123);
}
listen(integer channel, string name, key id, string message)
{
if (channel == 99)
temp += llCSV2List(message);
else if(message == "List")
llOwnerSay(llDumpList2String(temp,","));
else if(message == "Reload")
llOwnerSay("enter data on channel 99");
else if (message == "Slurl"){
region = llList2String(temp,1);
region = llEscapeURL(region);
string temp = llList2String(temp, 3);
vector slurl_vector = (vector)temp;
string x = (string) slurl_vector.x;
string y = (string) slurl_vector.y;
string z = (string) slurl_vector.z;
llOwnerSay("secondlife:///app/teleport/" + region + "/" + x + "/" + y + "/" + z);
}
}
}
When "List" is hit it returns:
[7:13] Object:
(Of course it's empty!)
Hit reload, type /99 and paste in data to chat and hit enter like so:
/99Sandboxes, Balance, Balance1, <107.163002, 137.085007, 22.234762>, Sandboxes, Sandbox Cordova MONO, Cordova1, <100.000000, 158.000000, 21.612890>, Sandboxes, Sandbox Goguen MONO, Goguen1, <136.000000, 167.000000, 20.979221>, Sandboxes, Sandbox Wanderton MONO, Wanderton, <178.000000, 161.000000, 21.546143>, Sandboxes, Sandbox Wanderton MONO, air, <178.000000, 162.000000, 726.000000>, Sandboxes, Sandbox Wanderton MONO, air3, <178.000000, 162.000000, 4006.000000>, Nice, Svarga MONO, Svarga, <67.712891, 116.176376, 25.655706>, Temp, Klein, Klein, <135.923004, 155.451996, 55.167561>, Temp, Sanchon, Sanchon, <165.754395, 16.167995, 45.747257>, Nice, Svarga MONO, Svarga2, <130.856171, 68.364899, 45.511467>, Nice, FurNation Gamma MONO, furair, <119.095764, 107.273392, 4001.185059>, Nice, FurNation Gamma MONO, furground, <121.209404, 99.480583, 21.757082>
Now the data is back in the script and returns the following when you hit "List":
[7:14] Object: Sandboxes,Balance,Balance,<107.163002, 137.085007, 22.234762>,Sandboxes,Sandbox Cordova MONO,Cordova,<100.000000, 158.000000, 21.612890>,Sandboxes,Sandbox Goguen MONO,Goguen,<136.000000, 167.000000, 20.979221>,Sandboxes,Sandbox Wanderton MONO,Wanderton,<178.000000, 161.000000, 21.546143>,Sandboxes,Sandbox Wanderton MONO,air,<178.000000, 162.000000, 726.000000>,Sandboxes,Sandbox Wanderton MONO,air3,<178.000000, 162.000000, 4006.000000>,Nice,Svarga MONO,Svarga,<67.712891, 116.176376, 25.655706>,Temp,Klein,Klein,<135.923004, 155.451996, 55.167561>,Temp,Sanchon,Sanchon,<165.754395, 16.167995, 45.747257>,Nice,Svarga MONO,Svarga2,<130.856171, 68.364899, 45.511467>,Nice,FurNation Gamma MONO,furair,<119.095764, 107.273392, 4001.185059>,Nice,FurNation Gamma MONO,furground,<121.209404, 99.480583, 21.757082>
And you can demo it works correctly by hitting "Slurl" which outputs:
[7:14] Object: secondlife:///app/teleport/Balance/107.163002/137.085007/22.234762
It is a clickable link and it does work


(Sorry, I had to. I just love all these long-sighted solutions we're given.)