Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
XY Text Prim_setup  

Prim_setup

put this script in a new box that you just rezz & you get a display off 5 characters

Category: XY Text
By : fratserke
Created: 2010-11-09 Edited: 2010-11-09
Worlds: Second Life

the Zip file

Download all files for Prim_setup
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Prim_setup_1.lsl
Get file # 2. Prim_setup_2.lsl
1 ////////////////////////////////////////////
2 // XyText Prim Setup
3 //
4 // Written by Xylor Baysklef
5 ////////////////////////////////////////////
6
7 /////////////// CONSTANTS ///////////////////
8 // Transparent texture key.
9 string TRANSPARENT = "701917a8-d614-471f-13dd-5f4644e36e3c";
10
11 default {
12 state_entry() {
13 // Set up the prim to be the correct shape.
14 vector Scale = llGetScale();
16 // Set the top size so this shows 3 faces at once.
18 <0, 1, 0>, 0.0, ZERO_VECTOR,
19 <0.333333, 1, 0>, ZERO_VECTOR,
20
21 // Display the string "XyText" for now.
22 PRIM_TEXTURE, 4, "0e47c89e-de4a-6233-a2da-cb852aad1b00",
23 <0.1, 0.1, 0>, <0.200000, -0.450000, 0.000000>, PI_BY_TWO,
24
25 PRIM_TEXTURE, 0, "20b24b3a-8c57-82ee-c6ed-555003f5dbcd",
26 <0.1, 0.1, 0>, <-0.200000, -0.450000, 0.000000>, 0.0,
27
28 PRIM_TEXTURE, 2, "2f713216-4e71-d123-03ed-9c8554710c6b",
29 <0.1, 0.1, 0>, <-0.050000, -0.350000, 0.000000>, -PI_BY_TWO,
30
31 // Show transparent textures for the other sides.
32 PRIM_TEXTURE, 1, TRANSPARENT, <0.1, 0.1, 0>, ZERO_VECTOR, 0.0,
33 PRIM_TEXTURE, 3, TRANSPARENT, <0.1, 0.1, 0>, ZERO_VECTOR, 0.0,
34 PRIM_TEXTURE, 5, TRANSPARENT, <0.1, 0.1, 0>, ZERO_VECTOR, 0.0,
35
36 // Set the correct aspect ratio.
37 PRIM_SIZE, <Scale.x, Scale.x / 3, 0.01>
38 ]);
39
40 // Remove ourselves from inventory.
42 }
43 }
44

Prim_setup

setup script for XyText v1.0.3 (5 Face, Multi Texture)

Category: XY Text
By : fratserke
Created: 2010-11-09 Edited: 2010-11-09
Worlds: Second Life

1 ////////////////////////////////////////////
2 // XyText v1.0.3 Prim Setup Script (5 Face, Multi Texture)
3 //
4 // Rewritten by Tdub Dowler
5 //
6 ////////////////////////////////////////////
7
8 string FACE_TEXTURE = "09b04244-9569-d21f-6de0-4bbcf5552222";
9 string TRANSPARENT = "701917a8-d614-471f-13dd-5f4644e36e3c";
10
11 default
12 {
14 {
16 PRIM_TYPE, PRIM_TYPE_PRISM, PRIM_HOLE_SQUARE, <0.199, 0.8, 0.0>, 0.30,
17 ZERO_VECTOR, <1.0, 1.0, 0.0>, ZERO_VECTOR,
18
19 // display a default face texture
20 PRIM_TEXTURE, 1, FACE_TEXTURE, <2.48, 1.0, 0.0>, <-0.740013, 0.0, 0.0>, 0.0,
21 PRIM_TEXTURE, 6, FACE_TEXTURE, <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0,
22 PRIM_TEXTURE, 4, FACE_TEXTURE, <-14.75, 1.0, 0.0>, <0.130009, 0.0, 0.0>, 0.0,
23 PRIM_TEXTURE, 7, FACE_TEXTURE, <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0,
24 PRIM_TEXTURE, 3, FACE_TEXTURE, <2.48, 1.0, 0.0>, <-0.255989, 0.0, 0.0>, 0.0,
25
26 // show transparent textures for the other sides
27 PRIM_TEXTURE, 0, TRANSPARENT, <0.1, 0.1, 0>, ZERO_VECTOR, 0.0,
28 PRIM_TEXTURE, 2, TRANSPARENT, <0.1, 0.1, 0>, ZERO_VECTOR, 0.0,
29 PRIM_TEXTURE, 5, TRANSPARENT, <0.1, 0.1, 0>, ZERO_VECTOR, 0.0,
30
31 PRIM_SIZE, <0.03, 2.89, 0.5>
32 ]);
33
34 // Remove ourselves from inventory.
36 }
37 }

Back to the Best Free Tools in Second Life and OpenSim.