Second Life hoy en un solo lugar Regalos y freebies actualizados cada hora 7 idiomas Gratis publicar tu tienda
12:49 SLT Publica tu evento+ Publicar
Problema en el grid
  • Programado: Scheduled Billing Maintenance, lun, 16 nov 09:30–10:30 SLT
  • Estado del grid: Unscheduled Group Chat Maintenance (investigating)
  • Ahora: Servicio sabático Unitarian Universalist en UUtopia
  • Ahora: The Dharma of Community: Sociedad budista y el householder
  • Ahora: Harvest Fest de SLCS: juegos, música y diversión
  • 14:00 SLT: NAD GOUGH en vivo en Moondance en Cascadia, 14:00 SLT
  • Noticias: REZZ MALL: marcas de Second Life en un centro comercial web
  • Viewer: Second Life Viewer 26.5 moderniza el chat
  • Programado: Scheduled Billing Maintenance, lun, 16 nov 09:30–10:30 SLT
  • Estado del grid: Unscheduled Group Chat Maintenance (investigating)
  • Ahora: Servicio sabático Unitarian Universalist en UUtopia
  • Ahora: The Dharma of Community: Sociedad budista y el householder
  • Ahora: Harvest Fest de SLCS: juegos, música y diversión
  • 14:00 SLT: NAD GOUGH en vivo en Moondance en Cascadia, 14:00 SLT
  • Noticias: REZZ MALL: marcas de Second Life en un centro comercial web
  • Viewer: Second Life Viewer 26.5 moderniza el chat
Script LSL

Script de texto flotante en LSL (y cómo quitar el texto flotante)

Script gratis de texto flotante en LSL para Second Life: muestra texto sobre cualquier objeto en cualquier color, con varias líneas, y quita el texto para siempre.

18 líneas ·

El texto flotante es el texto que aparece sobre carteles, vendedores, tip jars y cajas de regalo. Este pequeño script lo muestra en cualquier color y con todas las líneas que necesites. También responde a una pregunta muy común: ¿cómo quito el texto flotante que sigue ahí después de borrar el script?

lsl-hover-text-script.lsl · 18 líneas Comprobar este script
// Hover Text - free LSL script from WhatSL (https://whatsl.com/scripts/lsl-hover-text-script)
// Free to use, change and put in your own creations, also ones you sell.
//
// Shows floating text above the object. Use \n for a new line.
// The text stays on the prim even if you delete this script. To remove it, set HOVER_TEXT to ""
// and save the script once.

string HOVER_TEXT  = "Welcome!\nTouch the sign for a free gift";
vector TEXT_COLOR  = <1.0, 1.0, 1.0>;  // red, green, blue from 0.0 to 1.0 (white here)
float  TEXT_ALPHA  = 1.0;              // 1.0 = solid, 0.5 = half see-through

default
{
    state_entry()
    {
        llSetText(HOVER_TEXT, TEXT_COLOR, TEXT_ALPHA);
    }
}

Libre para usar, cambiar e incluir en tus creaciones, también en las que vendes.

Cómo configurarlo

  1. Pon el script dentro del objeto y cambia HOVER_TEXT por tu texto.
  2. Usa \n dentro del texto para empezar una nueva línea.
  3. Guarda. El texto aparecerá sobre el objeto.

Ajustes

  • HOVER_TEXT: tu texto. Que sea corto; los textos largos se leen mal desde lejos.
  • TEXT_COLOR: valores de rojo, verde y azul entre 0.0 y 1.0. <1.0, 0.85, 0.3> es dorado, <0.4, 0.8, 1.0> es azul claro.
  • TEXT_ALPHA: 1.0 es sólido; valores más bajos hacen el texto translúcido.

Cómo quitar el texto flotante

El texto flotante es un ajuste de la prim, no del script, así que se mantiene aunque borres el script. Para quitarlo, pon HOVER_TEXT en "" (dos comillas sin nada entre ellas), guarda el script una vez y después bórralo.

Preguntas frecuentes

¿A qué distancia se puede ver el texto flotante?

El texto flotante se ve desde una distancia moderada y se desvanece a mayor distancia. La información importante también debería estar en una textura o en una notecard.

¿Puedo hacer que el texto cambie?

Sí. Llama a llSetText de nuevo con un texto nuevo, por ejemplo desde un timer o un evento de toque.

¿El texto flotante causa lag?

No. Es un solo ajuste de la prim y casi no consume recursos.

Comprueba tu propio script: Comprobador de sintaxis LSL →

Más scriptsTodos los scripts
Script LSL · 55 líneas

Script de puerta en LSL: se abre al tocar y se cierra sola

Script de puerta gratuito en LSL para Second Life. Tócala para abrirla y cerrarla; la puerta gira sobre sus bisagras y se cierra sola tras unos segundos. Sonidos opcionales.

Script LSL · 69 líneas

LSL sit and pose script for chairs and pose balls

Free LSL sit script for Second Life chairs, benches and pose balls: sit and play your own animation, set the sit position, hide the ball while in use.

Script LSL · 96 líneas

LSL tip jar script with thank-you message and total

Free LSL tip jar script for Second Life clubs, DJs, hosts and stores: quick pay buttons, a thank-you message, the total and last tipper in floating text.