Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- integer NUMFRAMES=5;
- integer ITERATIONS=3;
- integer index;
- integer iteration;
- default
- {
- state_entry()
- {
- llSetText("Toccami",<1,1,1>,1);
- }
- touch_start(integer count)
- {
- index=0;
- for(iteration=0;iteration<ITERATIONS;iteration++)
- {
- for(index=1;index<=NUMFRAMES;index++)
- {
- llSetText((string)index+"/"+(string)NUMFRAMES+ "("+(string)iteration+")",<1,1,1>,1);
- llSay(100,(string)index);
- llSleep(0.05);
- }
- }
- }
- timer()
- {
- index++;
- if(index>NUMFRAMES)
- {
- llResetScript();
- }
- llSetTimerEvent(0.01);
- llSetText((string)index+"/"+(string)NUMFRAMES,<1,1,1>,1);
- llSay(100,(string)index);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement