Jump to content

Hover text


Muletta
 Share

You are about to reply to a thread that has been inactive for 2783 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

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

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

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

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


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

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


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

You are about to reply to a thread that has been inactive for 2783 days.

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
 Share

×
×
  • Create New...