Reply
Honored Resident
xxvioletheartxx
Posts: 13
0 Kudos

Changeing Text Color

[ Edited ]

Ok, This is my script for my tip jar...

 

 // Settings Modifiable: Yes
// Product Name: Tip Jar Script
// Version: 3.5
// Purchased at Ancient Homelands Free Store
// Instructions:
// Make a backup copy of this script if you plan to modify.
// You can change the text that the script displays by // editing the text in between the " and ".
// Do not change \n$L0 or \n$L or $L or the "llInstantMessage(llGetOwner" line.
// You can delete lines by taking out the \n and the text that follows it.
// To remove text without deleting the line remove the text in between the " and ".
// You can make it look like a lot of people have donated by donating to yourself.
// The script works with a Right Click and Pay.
//
//

integer totaldonated;
string owner;

default
{
    on_rez( integer sparam )
    {
        llResetScript();
    }
    state_entry()
    {
        owner = llKey2Name( llGetOwner() );
        llSetText( owner + "'s Tip Jar.\nAll tips are appreciated!\n$L0 Donated so far",<25,0,128>,1);
    }

    money(key id, integer amount)
    {
        totaldonated += amount;
        llSetText( owner + "'s Tip Jar.\nAll tips are appreciated!\n$L" + (string)amount + " Was donated last!\n" + "$L" + (string)totaldonated + " Donated so far",<.25,1,.65>,1);
        llInstantMessage(id,"Thanks for the tip!  I really appreciate it.");
        llInstantMessage(llGetOwner(),(string)llKey2Name(id)+" donated $" + (string)amount);
    }
}

 

 

 

I want to change the color of the script... it's pink for now, but I want to change it to a different color.

 

(I'm new to scripting for tip jars and need help, wanting to change color to green)

Dora Gustafson
Posts: 1,846
Registered: ‎10-05-2009
0 Kudos

Re: Changeing Text Color

Reply to xxvioletheartxx - view message

If you want to change color of the floating text you may take a close look at the llSetText() function

I must admit I have no idea how to change color on the script:smileyvery-happy:

 

Honored Resident
xxvioletheartxx
Posts: 13
0 Kudos

Re: Changeing Text Color

Reply to Dora Gustafson - view message

Thanks anyways, hun :-)

Member
Qwalyphi Korpov
Posts: 1,451
0 Kudos

The resident who provided the previous content, if any, has replaced it with this generic statement.

[ Edited ]

Reply to xxvioletheartxx - view message


The resident who provided the previous content, if any, has replaced it with this generic statement.

 

Rolig Loon
Posts: 24,482
Registered: ‎10-05-2009
0 Kudos

Re: Changeing Text Color

[ Edited ]

Reply to Qwalyphi Korpov - view message

What kind of pink do you want?

<1.00000, 0.68627, 1.00000>  is sort of baby girl pink, and <1.00000, 0.00000, 1.00000> is streetwalker pink.  Pick something in between maybe?

Edit:  Oh, right.  You have pink aready. :smileyembarrassed:   So go with <0.0,1.0,0.0>, as Qwalyphi suggested. 

/me goes back to counting clouds.

Not as dumb as I look
Qie Niangao
Posts: 4,959
Registered: ‎02-25-2009
0 Kudos

Re: Changeing Text Color

Reply to Qwalyphi Korpov - view message

I think she gets "pink" from that <25, 0,128> because the RGB vector values peg at 1.0, so that's effectively magenta (full red, no green, full blue).

That's until somebody pays the thing, at which point it should change to what must be a kind of faded teal green at <.25, 1, .65>, as you note.