home *** CD-ROM | disk | FTP | other *** search
- # ========================================================================================
-
- symbols
- message startup
- message user0
- message user1
-
- float lightvalue=1.0 local
- float speed=0.0 local
-
- thing light0 nolink
- thing light1 nolink
- thing light2 nolink
- thing light3 nolink
- thing light4 nolink
- thing light5 nolink
- thing light6 nolink
- thing light7 nolink
- thing light8 nolink
- thing light9 nolink
- thing light10 nolink
- thing light11 nolink
- thing light12 nolink
- thing light13 nolink
- thing light14 nolink
-
- thing xlight0 nolink
- thing xlight1 nolink
- thing xlight2 nolink
- thing xlight3 nolink
- thing xlight4 nolink
- thing xlight5 nolink
- thing xlight6 nolink
- thing xlight7 nolink
- thing xlight8 nolink
- thing xlight9 nolink
- thing xlight10 nolink
- thing xlight11 nolink
- thing xlight12 nolink
- thing xlight13 nolink
- thing xlight14 nolink
- thing xlight15 nolink
-
-
- int count local
- end
-
- # ========================================================================================
-
- code
- startup:
- lightvalue=1.35;
- speed=0.0;
- xlightvalue=0.45;
- xspeed=0.0;
- call changethelights;
- return;
-
- changethelights:
- for (count = 0; count<=14; count=count+1) {
- if (light0[count] >= 0) setthinglight(light0[count], lightvalue, speed);
- }
- for (xcount = 0; xcount<=15; xcount=xcount+1) {
- if (xlight0[xcount] >= 0) setthinglight(xlight0[count], xlightvalue, xspeed);
- }
-
- return;
-
- user0:
- print("flashing the lights");
- lightvalue=0.0;
- speed=0.2;
- xlightvalue=0.0;
- xspeed=0.2;
- call changethelights;
-
- sleep(0.31);
- lightvalue=1.5;
- call changethelights;
-
- sleep(0.22);
- lightvalue= 0.3;
- call changethelights;
-
- sleep(0.47);
- lightvalue=1.0;
- call changethelights;
-
- sleep(0.3);
- lightvalue=0.3;
- call changethelights;
-
- sleep(0.47);
- lightvalue=0.75;
- call changethelights;
-
- sleep(0.3);
- speed=3.0;
- lightvalue=0.3;
- call changethelights;
-
- return;
-
- user1:
- print("the power is coming back on");
- lightvalue=1.5;
- speed=3.0;
- xlightvalue=.75;
- xspeed=0.0;
- call changethelights;
- return;
-
-
-
- end
-
-