Muletta Posted August 14, 2016 Share Posted August 14, 2016 Is it possible to make the text in a hovering script flow even higher above the item, I put it in, than the standard hight does?If so, how to do it? Can someone tell me please? Link to comment Share on other sites More sharing options...
Chic Aeon Posted August 14, 2016 Share Posted August 14, 2016 Hey there! Long time. I am pretty sure it used to be the numbers right after the color numbers and I wrote that in a message here then deleted. That doesn't seem to work any longer which is pretty ODD. I can remember changing the level of the text but it was LONG ago. So I'll be watching this thread. Good luck. Link to comment Share on other sites More sharing options...
Rolig Loon Posted August 14, 2016 Share Posted August 14, 2016 That's fairly easy. Remember your ASCII line feed character, \n. Each time you issue it, your text skips to a new line, so compare llSetText("TEXT here",<1,1,1>,1.0); with llSetText("TEXT here\n \n",<1,1,1>,1.0); and llSetText("TEXT here\n \n \n \n",<1,1,1>,1.0); Link to comment Share on other sites More sharing options...
Artorius Constantine Posted August 14, 2016 Share Posted August 14, 2016 Yeah what they said. Hover text height is now connected to the Z height of the object the script is in. The easiest way to raise it is to add \n lines. stretch it on the Z axis or just put another object higher over it with just the hovertext script. A really tall object will have text floating high above itself. At least that's what the server deployment log says. They changed it not long ago. Link to comment Share on other sites More sharing options...
Muletta Posted August 14, 2016 Author Share Posted August 14, 2016 Hi Rolig I am sorry, but I have now tried to copy your text, and put it in various places in the script ... It does not seem to make any difference. Where exactly is the right place to add the \n \n \n \n",<1,1,1>,1.0) ? The script looks like this: // Hovering Text Script// Written by and Comments by: Malaer Sunchaser// Very Simple Script that allows you to hover text over an object.// How The Script Works:// llSetText(); Specifies for the object to create text above it. //// Customizing the script:// Change the text inside of "TEXT GOES HERE" to whatever you please.// The <1.0,1.0,1.0> is the color the text will show in Float form, 1.0,1.0,1.0// being WHITE while, 0.0, 0.0, 0.0 is BLACK this is all in RGB (Red, Green, Blue).// experiement with combinations to get different colors.// The 1 at the end sets the text's transparency, 1.0 being SOLID, while 0 would be clear,// and .5 would be half way between clear and solid. default{state_entry(){llSetText("My Text"", <1.0,1.0,1.0>, 3);}} Link to comment Share on other sites More sharing options...
Muletta Posted August 14, 2016 Author Share Posted August 14, 2016 Hi Artorius Yes, I could make an invisible cube with the hover text, and put over the item ... the problem is, that I cannot link this cube to the item, that I am wearing... I can only put the script in the attached item. Link to comment Share on other sites More sharing options...
Rolig Loon Posted August 14, 2016 Share Posted August 14, 2016 Muletta wrote: Hi Rolig [ .... ] Where exactly is the right place to add the \n \n \n \n",<1,1,1>,1.0) ? [ .... ] Exactly where I put it. llSetText("Text here\n \n \n \n",<1,1,1>,1.0); It works like a dream. Link to comment Share on other sites More sharing options...
Muletta Posted August 14, 2016 Author Share Posted August 14, 2016 Rolig Loon wrote: Muletta wrote: Hi Rolig [ .... ] Where exactly is the right place to add the \n \n \n \n",<1,1,1>,1.0) ? [ .... ] Exactly where I put it. llSetText("Text here\n \n \n \n",<1,1,1>,1.0); It works like a dream. I copy-pasted the script to here, in the hope that you would show me... I keep getting a syntax error. A repetition of your answer, has not made it more clear to me, sorry. - But thank you for trying to help, anyway... Link to comment Share on other sites More sharing options...
Rolig Loon Posted August 14, 2016 Share Posted August 14, 2016 But that's not what's in the script you posted. You wrote llSetText("My Text"", <1.0,1.0,1.0>, 3); which is quite different. It does not include the string of \n characters at all, and it sets alpha to 3, which is an impossible value, AND it contains an extra " mark, which will generate an immediate syntax error. Link to comment Share on other sites More sharing options...
Chic Aeon Posted August 14, 2016 Share Posted August 14, 2016 Yep, that works fine. Thanks. Will save that for the future . I am NOT a floating text fan *wink* but sometimes it is the only (or best) option. Link to comment Share on other sites More sharing options...
Muletta Posted August 15, 2016 Author Share Posted August 15, 2016 Rolig Loon wrote: But that's not what's in the script you posted. You wrote llSetText("My Text" ", <1.0,1.0,1.0>, 3); which is quite different. It does not include the string of \n characters at all, and it sets alpha to 3, which is an impossible value, AND it contains an extra " mark, which will generate an immediate syntax error. Thank you ... Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now