Jump to content

Changeing Text Color


xxvioletheartxx
 Share

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

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

Recommended Posts

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)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4338 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...