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

  1. # Droids COG Script
  2. #
  3. # 00_HelptextTimer.cog
  4. #
  5. # Displays Help messages with optional timeouts 
  6. #
  7. # Desc (original):
  8. #    Two sectors, startsector and startsecotr2 will trigger the message number
  9. #    specified by messagenumber. The stopsectors display message 0, effectively
  10. #    turning it off.
  11. #
  12. # Desc (Timer version):
  13. #    There are now two new variables, displaytime and show_once. 
  14. #    Displaytime, if set to a number larger than 0, will only
  15. #        display the message for the number of seconds it's set to.
  16. #    Show_once, if set to 1, will display the message only once then never 
  17. #        display it again. 
  18. #
  19. #         [MT]    Created
  20. # 11/03/97    [DGS]    Added Printtext commands for debugging
  21. # 11/04/97    [DGS]    Added    two more start and stop sectors
  22. # 12/03/97    [DGS]    Modified "Helptext" to add timeouts and one-offs (see desc. above).
  23. # 03/10/98     [JP]      Modified to add 2nd message. 
  24. # 04/28/98     [JP]      This is it, with the voice files and such  
  25. # ========================================================================================
  26.  
  27. symbols
  28. message         entered
  29. message        timer
  30.  
  31. cog            m2          #companion message by cammy
  32.  
  33. sector              inclines       linkid=1
  34. sector              darkroom       linkid=2
  35. sector              batteryroom    linkid=3
  36. sector              Lookroom       linkid=4
  37. sector              Magnetics      linkid=5
  38. sector              Jumps          linkid=6
  39. sector              Repairroom     linkid=7
  40. sector              dancing        linkid=8  
  41.  
  42. surface             door           linkid=9          
  43. surface             jawa           linkid=10
  44.  
  45. int                 messagenumber
  46. int            displaytime=0    
  47. int            show_once=1  local
  48. int            show_once2=1 local
  49. int            show_once3=1 local
  50. int            show_once4=1 local
  51. int            show_once5=1 local
  52. int            show_once6=1 local
  53. int            show_once7=1 local
  54. int            show_once8=1 local
  55. int            show_once9=1 local
  56. int            show_once10=1 local
  57. int            show_once11=1 local
  58. int            show_once12=1 local
  59. int            show_once13=1 local
  60. int            show_once14=1 local
  61. int            show_once15=1 local
  62. int            show_once16=1 local
  63. int            show_once17=1 local
  64.  
  65. message        touched
  66.  
  67. sector         push      linkid=11
  68. sector         tug       linkid=12
  69. sector         question  linkid=13
  70. sector         tube      linkid=14
  71. sector         battery   linkid=15
  72. sector         sideways  linkid=16
  73. sector         l_r_keys  linkid=17
  74.  
  75. message        user1
  76. message        startup
  77.        
  78. end
  79.  
  80. code
  81.  
  82. startup:
  83. #     player=getlocalplayerthing();
  84. #     if (!GetInv(GetLocalPlayerThing(), 21))
  85. #          {
  86. #          SetInv(GetLocalplayerthing(), 21, 1);
  87. #          sleep(30);
  88. #          print("blah");
  89. #          }
  90.           
  91. //     else 
  92. //         {
  93. //          print("buya");
  94. //          }
  95.      return;
  96.  
  97. user1:
  98.  
  99.      csectorstart=1;
  100.      return;
  101.  
  102. entered:
  103.     // show_once is set to 0 if it's off, 1 if it's only going to show once, and 2 if it's been shown.
  104.      if (csectorstart == 0)
  105.           {
  106.           print("yay");
  107.           }
  108.      
  109.      else if (csectorstart == 1)
  110.           {          
  111.           if (getsenderid() == 1)        
  112.                {                            
  113.                if (show_once < 2)
  114.                     {
  115.                        dwplaycammyspeech(16180, "TGCA039.wav", 5, 2); //inclines
  116.                  print("message1");    //Debug Lines
  117.                  printint(messagenumber);
  118.                       if (show_once == 1 ) show_once = 2;        //It's been shown. 
  119.                     }
  120.                }
  121.           
  122.           else if (getsenderid() == 2)
  123.                {     
  124.                if (show_once2 < 2)
  125.                     {                                                                     
  126.                     dwplaycammyspeech(16012, "TGCA015.wav", 5, 2);  //darkroom                      
  127.                     print("message1");  //Debug Lines                                     
  128.                     printint(messagenumber);                                              
  129.                          if (show_once2 == 1 ) show_once2 = 2;          //It's been shown.  
  130.                     }
  131.                }
  132.           
  133.           else if (getsenderid() == 3)                                                 
  134.                {
  135.                if (show_once3 < 2)
  136.                     {                                                                     
  137.                     dwplaycammyspeech(16014, "TGCA017.wav", 5, 2);  //batteryroom            
  138.                     print("message1");  //Debug Lines                                     
  139.                     printint(messagenumber);                                              
  140.                          if (show_once3 == 1 ) show_once3 = 2;          //It's been shown.  
  141.                     }
  142.                }     
  143.     
  144.           else if (getsenderid() == 4)                                                       
  145.                {
  146.                if (show_once4 < 2)         
  147.                     {                                                                     
  148.                     dwplaycammyspeech(16191, "TGCA043l.wav", 5, 2);  // look area        
  149.                     print("message1");  //Debug Line16191s                                     
  150.                     printint(messagenumber);                                              
  151.                          if (show_once4 == 1 ) show_once4 = 2;          //It's been shown.  
  152.                     }
  153.                }     
  154.                                                                               
  155.           else if (getsenderid() == 5)                                                  
  156.                {
  157.                if (show_once5 < 2)         
  158.                     {                                                                        
  159.                     dwplaycammyspeech(16400, "TGCA053.wav", 5, 2);  // magnetics
  160.                     print("message1");  //Debug Line16191s                                   
  161.                     printint(messagenumber);                                                 
  162.                          if (show_once5 == 1 ) show_once5 = 2;          //It's been shown.     
  163.                     }
  164.                }     
  165.                    
  166.           else if (getsenderid() == 6)                                               
  167.                {
  168.                if (show_once6 < 2)                       
  169.                     {                                                                     
  170.                     dwplaycammyspeech(16190, "TGCA042.wav", 5, 2);  // jumps          
  171.                     print("message1");  //Debug Line16191s                                
  172.                     printint(messagenumber);                                              
  173.                          if (show_once6 == 1 ) show_once6 = 2;          //It's been shown.  
  174.                     }
  175.                }     
  176.                                                                                
  177.           else if (getsenderid() == 7)
  178.                {
  179.                if (show_once7 < 2)                                                     
  180.                     {                                                                     
  181.                     dwplaycammyspeech(16200, "TGCA046.wav", 5, 2);  // repair              
  182.                     print("message1");  //Debug Line16191s                                
  183.                     printint(messagenumber);                                              
  184.                          if (show_once7 == 1 ) show_once7 = 2;          //It's been shown.  
  185.                     }
  186.                }     
  187.                                                                                
  188.           else if (getsenderid() == 8)
  189.                {
  190.                if (show_once8 < 2)                                                              
  191.                     {                                                                     
  192.                     dwplaycammyspeech(16500, "TGCA056.wav", 5, 2);  // dance              
  193.                     print("message1");  //Debug Line16191s                                
  194.                     printint(messagenumber);                                              
  195.                          if (show_once8 == 1 ) show_once8 = 2;          //It's been shown.                                                                
  196.                    }                                                                                        
  197.                }
  198.      
  199.           else if (getsenderid() == 11)
  200.                {
  201.                if (show_once11 < 2)
  202.                     {
  203.                     dwplaycammyspeech(16170, "TGCA038.wav", 5, 2);  //pushcrates
  204.                     print("message1");
  205.                     printint(messagenumber);
  206.                          if (show_once11 = 1) show_once11 = 2;
  207.                     }     
  208.                }
  209.           
  210.           else if (getsenderid() == 12)
  211.                {
  212.                if (show_once12 < 2)
  213.                     {
  214.                     dwplaycammyspeech(16300, "TGCA052.wav", 5, 2); //tug
  215.                          if (show_once12 = 1) show_once12 =2;
  216.                     }
  217.                }
  218.           
  219.           else if (getsenderid() == 13)                                 
  220.                {                                                        
  221.                if (show_once13 < 2)                                      
  222.                     {                                                         
  223.                     dwplaycammyspeech(16001, "TGCA004.wav", 5, 2); //question
  224.                          if (show_once13 = 1) show_once13 =2;                                         
  225.                     }                                                              
  226.                }     
  227.  
  228.           else if (getsenderid() == 14)                                 
  229.                {                                                        
  230.                if (show_once14 < 2)                                     
  231.                     {                                                   
  232.                     dwplaycammyspeech(16008, "TGCA011.wav", 5, 2); //tube
  233.                          if (show_once14 = 1) show_once14 =2;           
  234.                     }                                                   
  235.                }                                                        
  236.  
  237.           else if (getsenderid() == 15)                                      
  238.                {                                                         
  239.                if (show_once15 < 2)                                      
  240.                     {                                                    
  241.                     dwplaycammyspeech(16014, "TGCA017.wav", 5, 2); //battery
  242.                          if (show_once15 = 1) show_once15 =2;            
  243.                     }                                                    
  244.                }                                                         
  245.  
  246.           else if (getsenderid() == 16)                                     
  247.                {                                                            
  248.                if (show_once16 < 2)                                         
  249.                     {                                                       
  250.                     //!!!!FOR MAC VERSION, USE 16102!!!  AND USE TGCA023.WAV!!!
  251.                     dwplaycammyspeech(16101, "TGCA022.wav", 5, 2); //sideways walk for PC version
  252.                          if (show_once16 = 1) show_once16 =2;               
  253.                     }                                                       
  254.                }                                                            
  255.  
  256.           else if (getsenderid() == 17)                                          
  257.                {                                                            
  258.                if (show_once17 < 2)                                         
  259.                     {                                                       
  260.                     dwplaycammyspeech(16130, "TGCA044.wav", 5, 2); //l or r keys line
  261.                     //LINE .WAV NOT DELIVERED YET UNTIL AFTER BETA
  262.                          if (show_once17 = 1) show_once17 =2;               
  263.                     }                                                       
  264.                }                                                            
  265.           csectorstart=1;
  266.           }                       
  267.      return;
  268.                                                                  
  269. touched:
  270.      if (getsenderid() == 9)
  271.           {
  272.           if (show_once9 < 2)
  273.                {
  274.                dwplaycammyspeech(16013, "TGCA016.wav", 3, 2);
  275.                     if (show_once9 == 1) show_once9 = 2;
  276.                }
  277.                
  278.           }
  279.                
  280.      else if (getsenderid() == 10)
  281.           {
  282.           if (show_once10 < 2)
  283.                {
  284.                dwplaycammyspeech(16120, "TGCA024.wav", 3, 2);
  285.                     if (show_once10 == 1) show_once10 = 2;
  286.                }             
  287.      
  288.           }
  289.           
  290.      return;     
  291. end
  292.  
  293.  
  294.  
  295.  
  296.