llSetText() - read out?
|
|
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
|
12-14-2007 15:39
Maybe I'm just too tired to find it in the wiki... so I ask you guys... (what would I do without this forum?  Can I read out the Hovertext? Means - when I use llSetText("bla", <255,255,255>, 1.0); - is there a command to read what's in the hovertext? I tried llGetPrimitiveParams and object-details - but I couldn't find it...
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
12-14-2007 15:41
i dont think so, but wouldn't that be handy for datastorage
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
12-14-2007 15:48
nope it's another one of those impossible to read prim attributes like particle sytems and a few others... you can set but not read =(
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Lightwave Valkyrie
Registered User
Join date: 30 Jan 2004
Posts: 666
|
12-14-2007 18:43
if you use llSetText("bla", <255,255,255>, 1.0); then you know what it says, it says "bla" you set it so you know what it says. its like using a listen in the same script as a say. ie like talking to yourself  you dont need to read it try it like this (define them as strings at top of script) floattext = "bla"; llSetText(floattext, <255,255,255>, 1.0); readhovertext = floattext; or just use floattext for what it reads! 
_____________________
L$ is the root of all evil videos work! thanks SL 
|
|
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
|
12-14-2007 19:09
what's the point behind a vector of <255,255,255>? Aren't the valid ranges (or ranges that matter), <0,0,0> through <1,1,1>? When I set <1,0,0> I get full red.
|
|
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
|
12-14-2007 19:15
From: Lightwave Valkyrie then you know what it says, it says "bla" Yes, we humans can read what it says... but LSL scripts can't.
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
12-14-2007 20:22
From: Johan Laurasia what's the point behind a vector of <255,255,255>? Aren't the valid ranges (or ranges that matter), <0,0,0> through <1,1,1>? When I set <1,0,0> I get full red. anything over 1 registers as 1 in this case
|
|
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
|
12-15-2007 00:13
Thanks guys... that's what I thought... The Problem is, that I set the text in one script and then set it again in another for displaying temp-stuff (like the progress of notecard-reading). Once the temp-stuff isn't needed anymore, it would've been handy if I just could set it to the original one... Not that big of a hassle though - I'll get around it... 
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
12-15-2007 13:17
From: Haruki Watanabe Thanks guys... that's what I thought... The Problem is, that I set the text in one script and then set it again in another for displaying temp-stuff (like the progress of notecard-reading). Once the temp-stuff isn't needed anymore, it would've been handy if I just could set it to the original one... Not that big of a hassle though - I'll get around it...  have the first script pass the current value to the second script, the second script can then set a temp one which it replaces with the known current, or do the whole thing vice versa and only have one script handle the changes (prefered)
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|