home *** CD-ROM | disk | FTP | other *** search
- # Jedi Knight Cog Script
- #
- # CC_Mirror.cog
- #
- # Generic Mirror control Script
- #
- # 03/17/98 DGS Created
- #
- #Desc:
- # cog designed to keep the doors from being able to be cut.
- # (C) 1998 Lucas Learning Limited All Rights Reserved
- # ========================================================================================
-
- symbols
- message entered
- message startup
-
- ## ========================= Things
- sector sector0
- sector sector1
- sector sector2
- sector sector3
- sector sector4
- sector sector5
- sector sector6
-
- int say1=0 local
- int say2=0 local
- int say3=0 local
- int say4=0 local
- int say5=0 local
- int say6=0 local
- int say7=0 local
- int say8=0 local
- int say9=0 local
-
- end
-
- # ========================================================================================
-
- code
- startup:
- sleep(3);
- dwPlayCammySpeech(16000, "M1ca001.wav", 10, 0); // level intro
-
-
- return;
-
- entered:
-
- if (getsenderref() == sector0)
- {
- if (say1 == 0)
- {
- say1 = 1;
- dwPlayCammySpeech(16105, "M1ca008.wav", 10, 0); //tram line
- print("say1");
- }
- }
-
- if (getsenderref() == sector1)
- {
- if (say2 == 0)
- {
- say2 = 1;
- dwPlayCammySpeech(16106, "M1ca009.wav", 10, 0); //tram line
- print("say2");
- }
- }
-
- if (getsenderref() == sector2)
- {
- if (say3 == 0)
- {
- say3 = 1;
- dwPlayCammySpeech(16130, "M1ca019.wav", 10, 0); //16130 Pulley line
- print("say3");
- }
- }
- if (getsenderref() == sector3)
- {
- if (say4 == 0)
- {
- say4 = 1;
- dwPlayCammySpeech(16133, "M1ca022.wav", 10, 0); //another Pulley line
- dwsetreftopic("pulley.tpc");
- print("say4");
- }
- }
-
- if (getsenderref() == sector4)
- {
- if (say5 == 0)
- {
- say5 = 1;
- dwPlayCammySpeech(16132, "M1ca021.wav", 10, 0); //yet another Pulley line
- print("say5");
- }
- }
-
- if (getsenderref() == sector5)
- {
- if (say6 == 0)
- {
- say6 = 1;
- dwPlayCammySpeech(16160, "M1ca032.wav", 10, 0); // you found the jawa
- print("say6");
- }
- }
-
- if (getsenderref() == sector6)
- {
- if (say7 == 0)
- {
- say7 = 1;
- dwPlayCammySpeech(16140, "M1ca025.wav", 10, 0); // you found the jawa
- dwsetreftopic("lever.tpc");
-
- print("say7");
- }
- }
-
-
- return;
-
- end
-
-