//-----------------------------------------
// Script Title: HoverText with Object Name, Description & Optional Text String
// Created by: WhiteStar Magic
// Creation Date: Aug.03.2008
// Revision: 0.6
// Revision History:
// Revision Contributors:
//
// Licensing: FREE / OPEN SOURCE under CC.3.0 [see bottom of Header]
//
// Conditions: Please maintain this header. If you modify the script indicate your
// revision details / enhancements
//
// Support: No Support or Warranty is expressed or implied. Feel free to contact
// the author or revisor if you have problems or issues with this item and they
// may assist you at their discretion.
//
// --------- Creative Commons Licence 3.0 for Open Source ---------
// IF APPLICABLE see link povided
// http://creativecommons.org/licenses/by/3.0
// ----------------------------------------------------------------
//
// DESCRIPTION:
// This script is a bit more than the usual Hovertext system and a touch "Code Heavy" to do that
// strip according to your needs / desires.
//
// Colours that can be used
vector black = <0.0,0.0,0.0> ;
vector white = <1.0,1.0,1.0> ;
vector grey = <0.5,0.5,0.5> ;
vector lt_grey = <0.75,0.75,0.75> ;
vector dk_red = <0.5,0.0,0.0> ;
vector red = <1.0,0.0,0.0> ;
vector lt_yellow = <1.0,1.0,0.5> ;
vector yellow = <1.0,1.0,0.0> ;
vector dk_yellow = <0.5,0.5,0.0> ;
vector lt_green = <0.0,1.0,0.5> ;
vector green = <0.0,1.0,0.0> ;
vector dk_green = <0.0,0.5,0.0> ;
vector lt_turquoise = <0.5,1.0,1.0> ;
vector turquoise = <0.0,1.0,1.0> ;
vector dk_turquoise = <0.0,0.5,0.5> ;
vector lt_blue = <0.0,0.5,1.0> ;
vector blue = <0.0,0.0,1.0> ;
vector dk_blue = <0.0,0.0,0.5> ;
vector lt_purple = <0.5,0.0,1.0> ;
vector purple = <1.0,0.0,1.0> ;
vector dk_purple = <0.5,0.0,0.5> ;
vector orange = <1.0,0.5,0.0> ;
vector brown = <0.5,0.25,0.0> ;
vector pink = <1.0,0.0,0.5> ;
vector dk_pink = <0.5,0.0,0.25> ;
//
string ObjName = ""; // For Object Name to be displayed in the First Line of Hovertext
string ObjDesc = ""; // For Object Description to be displayed on second line of Hovertext
string HvrtxtXtra = "FREEBIE\nTake a Copy"; // Displays Optional / Xtra text. (\n = Carriage Return/Line Feed)
//
default
{
state_entry()
{
ObjName = llGetObjectName(); // get the Name of the container prim
ObjDesc = llGetObjectDesc(); // get the Objects Description Field
// we build the display string stacking the name, decsription and optional text
llSetText(ObjName + "\n" + ObjDesc + "\n" + HvrtxtXtra, red, 1);
}
}