home *** CD-ROM | disk | FTP | other *** search
/ Classic Fond 52 / ClassicFond52.iso / GAMES / DROIDW.RAR / DWCD.GOB / mission_cog_b0_cline_pulley.cog < prev    next >
Encoding:
Text File  |  1998-11-04  |  1.5 KB  |  83 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            startup
  16. message            entered
  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                say0=0        local
  28. int                say1=0        local
  29. int                say2=0        local
  30. int                say3=0        local
  31. int                say4=0        local
  32. int                say5=0        local
  33. int                say6=0        local
  34.  
  35. end
  36.  
  37. # ========================================================================================
  38.                     
  39. code
  40. startup:
  41.     //sleep(1);
  42.     if (getdifficulty() == 0)
  43.         {
  44.         dwPlayCammySpeech(16001, "T3ca002.wav", 10, 3);
  45.         dwsetreftopic("pulley.tpc");
  46.         }
  47.     if (getdifficulty() == 1)
  48.         {
  49.         dwPlayCammySpeech(16002, "T3ca004.wav", 10, 1);
  50.         }
  51.     if (getdifficulty() == 2)
  52.         {
  53.         dwPlayCammySpeech(16003, "T3ca005.wav", 10, 1);
  54.         }
  55.     
  56.     return;
  57. entered:
  58.     
  59.     if (getsenderref() == sector0)
  60.         {
  61.         if (say0 == 0)
  62.             {
  63.             say0 = 1;
  64.             dwPlayCammySpeech(16000, "T3ca001.wav", 10, 0);
  65.             print("say0");
  66.             }
  67.         }
  68.     if (getsenderref() == sector1)
  69.         {
  70.         if (say1 == 0)
  71.             {
  72.             say1 = 1;
  73.             //dwPlayCammySpeech(10011, "T3ca017.wav", 10, 0);
  74.             print("say1");
  75.             }
  76.         }
  77.     
  78.     
  79.     return;
  80.     
  81. end
  82.  
  83.