home *** CD-ROM | disk | FTP | other *** search
/ Classic Fond 52 / ClassicFond52.iso / GAMES / DROIDW.RAR / DWCD.GOB / mission_cog_sy_cammylines.cog < prev    next >
Encoding:
Text File  |  1998-11-04  |  2.3 KB  |  128 lines

  1. # Jedi Knight Cog Script
  2. #
  3. # CC_Mirror.cog
  4. #
  5. # Generic Mirror control Script
  6. #
  7. # 03/17/98 DGS Created
  8. #
  9. #Desc:
  10. # cog designed to keep the doors from being able to be cut.
  11. # (C) 1998 Lucas Learning Limited All Rights Reserved
  12. # ========================================================================================
  13.  
  14. symbols
  15. message            entered
  16. message            startup
  17.  
  18. ## ========================= Things
  19. sector            sector0
  20. sector            sector1
  21. sector            sector2
  22. sector            sector3
  23. sector            sector4
  24. sector            sector5
  25. sector            sector6
  26.  
  27. int                say1=0        local
  28. int                say2=0        local
  29. int                say3=0        local
  30. int                say4=0        local
  31. int                say5=0        local
  32. int                say6=0        local
  33. int                say7=0        local
  34. int                say8=0        local
  35. int                say9=0        local
  36.  
  37. end
  38.  
  39. # ========================================================================================
  40.                     
  41. code
  42. startup:
  43.      sleep(3);
  44.      dwPlayCammySpeech(16000, "M1ca001.wav", 10, 0);   // level intro
  45.      
  46.  
  47.      return;
  48.  
  49. entered:
  50.     
  51.     if (getsenderref() == sector0)
  52.         {
  53.         if (say1 == 0)
  54.             {
  55.             say1 = 1;
  56.             dwPlayCammySpeech(16105, "M1ca008.wav", 10, 0);      //tram line
  57.             print("say1");
  58.             }
  59.         }
  60.     
  61.     if (getsenderref() == sector1)
  62.         {
  63.         if (say2 == 0)
  64.             {
  65.             say2 = 1;
  66.             dwPlayCammySpeech(16106, "M1ca009.wav", 10, 0);        //tram line
  67.             print("say2");
  68.             }
  69.         }
  70.    
  71.     if (getsenderref() == sector2)
  72.         {
  73.         if (say3 == 0)
  74.             {
  75.             say3 = 1;
  76.             dwPlayCammySpeech(16130, "M1ca019.wav", 10, 0);     //16130 Pulley line
  77.             print("say3");
  78.             }
  79.         }
  80.     if (getsenderref() == sector3)
  81.         {
  82.         if (say4 == 0)
  83.             {
  84.             say4 = 1;
  85.             dwPlayCammySpeech(16133, "M1ca022.wav", 10, 0);     //another Pulley line
  86.             dwsetreftopic("pulley.tpc");
  87.             print("say4");
  88.             }
  89.         }
  90.  
  91.     if (getsenderref() == sector4)
  92.         {
  93.         if (say5 == 0)
  94.             {
  95.             say5 = 1;
  96.             dwPlayCammySpeech(16132, "M1ca021.wav", 10, 0);     //yet another Pulley line
  97.             print("say5");
  98.             }
  99.         }
  100.     
  101.     if (getsenderref() == sector5)
  102.         {
  103.         if (say6 == 0)
  104.             {
  105.             say6 = 1;
  106.             dwPlayCammySpeech(16160, "M1ca032.wav", 10, 0);     // you found the jawa
  107.             print("say6");
  108.             }
  109.         }
  110.  
  111.     if (getsenderref() == sector6)
  112.         {
  113.         if (say7 == 0)
  114.             {
  115.             say7 = 1;
  116.             dwPlayCammySpeech(16140, "M1ca025.wav", 10, 0);     // you found the jawa
  117.             dwsetreftopic("lever.tpc");
  118.             
  119.             print("say7");
  120.             }
  121.         }
  122.  
  123.  
  124.     return;
  125.     
  126. end
  127.  
  128.