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
Presentations NotecardSlideShow  

NotecardSlideShow

NotecardSlideShow

Category: Presentations
By : Encog Dod
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for NotecardSlideShow
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. NotecardSlideShow_1.lsl
Get file # 2. NotecardSlideShow_2.lsl
1 // From the book:
2 //
3 // Scripting Recipes for Second Life
4 // by Jeff Heaton (Encog Dod in SL)
5 // ISBN: 160439000
6 X// Copyright 2007 by Heaton Research, Inc.
7 //
8 // This script may be freely copied and modified so long as this header
9 // remains unmodified.
10 //
11 // For more information about this book visit the following web site:
12 //
13 // http://www.heatonresearch.com/articles/series/22/
14
15 integer index;
16
17 // for loading notecard
18 string notecardName;
19 key notecardQuery;
20 integer notecardIndex;
21 list notecardList;
22
23 newSlide()
24 {
25 string texture = llList2String(notecardList,index);
26 llSetTexture(texture,1);
27 index++;
28 if(index>=llGetListLength(notecardList) )
29 index = 0;
30 }
31
32 default
33 {
35 {
36 if( llGetListLength(notecardList)==0 )
37 {
38 notecardName = "SlideControl";
39 state loading;
40 }
41 else
42 {
44 index = 0;
45 newSlide();
46 }
47 }
48
50 {
51 index = 0;
52 newSlide();
53 llSay(0,"Starting slide show over");
54 }
55
56 timer()
57 {
58 newSlide();
59 }
60 }
61
62 state loading
63 {
65 {
66 llSay(0,"Slideshow loading data...");
67 notecardIndex = 0;
68 notecardQuery = llGetNotecardLine(notecardName,notecardIndex++);
69 }
70
71 dataserver(key query_id, string data)
72 {
73 if( notecardQuery == query_id)
74 {
75 // this is a line of our notecard
76 if(data == EOF)
77 {
78 llSay(0,"Slideshow loaded...");
79 state default;
80
81 } else
82 {
83 notecardList += [data];
84 notecardQuery = llGetNotecardLine(notecardName,notecardIndex++);
85 }
86 }
87 }
88 }

NotecardSlideShow

Slideshow notecard

Category: Presentations
By : Encog Dod
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

1 slide1
2 slide2
3 slide3
4 slide4

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