home *** CD-ROM | disk | FTP | other *** search
/ Classic Fond 52 / ClassicFond52.iso / GAMES / DROIDW.RAR / DWCD.GOB / mission_cog_03_cammyvoicetanks.cog < prev    next >
Encoding:
Text File  |  1998-11-04  |  10.0 KB  |  213 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              waterpipe      linkid=1
  34. sector              watervalve     linkid=2
  35. sector              gearassembly   linkid=3
  36. sector              gearassembly2  linkid=4
  37. sector              gearfind       linkid=5
  38. sector              ctrlrm         linkid=6
  39. sector              leverfind      linkid=7
  40. sector              drainhatch     linkid=8
  41. sector              valveconfig    linkid=9
  42. sector              valveconfig2   linkid=10  
  43. sector              gearfind2      linkid=11
  44. sector              gearfind3      linkid=12
  45.  
  46.  
  47. int                 messagenumber
  48. int            displaytime=0    
  49. int            show_once=1  local
  50. int            show_once2=1 local
  51. int            show_once3=1 local
  52. int            show_once4=1 local
  53. int            show_once5=1 local
  54. int            show_once6=1 local
  55. int            show_once7=1 local
  56. int            show_once8=1 local
  57. int            show_once9=1 local
  58. int            show_once10=1 local
  59.  
  60. message        user1
  61.        
  62. end
  63.  
  64. code
  65. entered:
  66.     // 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.
  67.           
  68.      if (getsenderid() == 1)        
  69.           {                            
  70.           if (show_once < 2)
  71.                {
  72.                   dwplaycammyspeech(16021, "M3CA016.wav", 5, 2); //waterpipe
  73.             print("message1");    //Debug Lines
  74.             printint(messagenumber);
  75.                  if (show_once == 1 ) show_once = 2;        //It's been shown. 
  76.                }
  77.           }
  78.           
  79.      else if (getsenderid() == 2)
  80.           {     
  81.           if (show_once2 < 2)
  82.                {                                                                     
  83.                dwplaycammyspeech(16022, "M3CA017.wav", 5, 2);  //watervalve, it's closed                     
  84.                print("message1");  //Debug Lines                                     
  85.                printint(messagenumber);                                              
  86.                     if (show_once2 == 1 ) show_once2 = 2;          //It's been shown.  
  87.                }
  88.           }
  89.           
  90.      else if (getsenderid() == 3)                                                 
  91.           {
  92.           if (show_once3 < 2)
  93.                {                                                                     
  94.                dwplaycammyspeech(16023, "M3CA018.wav", 5, 2);  //gearassembly            
  95.                print("message1");  //Debug Lines                                     
  96.                printint(messagenumber);                                              
  97.                     if (show_once3 == 1 ) show_once3 = 2;          //It's been shown.  
  98.                }
  99.           }     
  100.     
  101.      else if (getsenderid() == 4)                                                       
  102.           {
  103.           if (show_once4 < 2)         
  104.                {                                                                     
  105.                dwplaycammyspeech(16023, "M3CA018.wav", 5, 2);  //gearassembly2        
  106.                print("message1");  //Debug Line16191s                                     
  107.                printint(messagenumber);                                              
  108.                     if (show_once4 == 1 ) show_once4 = 2;          //It's been shown.  
  109.                }
  110.           }     
  111.                                                                               
  112.      else if (getsenderid() == 5)                                                  
  113.           {
  114.           if (show_once5 < 2)         
  115.                {                                                                        
  116.                dwplaycammyspeech(16024, "M3CA019.wav", 5, 2);  //gearfind
  117.                print("message1");  //Debug Line16191s                                   
  118.                printint(messagenumber);                                                 
  119.                     if (show_once5 == 1 ) show_once5 = 2;          //It's been shown.     
  120.                }
  121.           }     
  122.                    
  123.      else if (getsenderid() == 6)                                               
  124.           {
  125.           if (show_once6 < 2)                       
  126.                {                                                                     
  127.                dwplaycammyspeech(16039, "M3CA026.wav", 5, 2);  // ctrlrm         
  128.                print("message1");  //Debug Line16191s                                
  129.                printint(messagenumber);                                              
  130.                     if (show_once6 == 1 ) show_once6 = 2;          //It's been shown.  
  131.                }
  132.           }     
  133.                                                                                
  134.      else if (getsenderid() == 7)
  135.           {
  136.           if (show_once7 < 2)                                                     
  137.                {                                                                     
  138.                dwplaycammyspeech(16032, "M3CA028.wav", 5, 2);  //lever              
  139.                print("message1");  //Debug Line16191s                                
  140.                printint(messagenumber);                                              
  141.                     if (show_once7 == 1 ) show_once7 = 2;          //It's been shown.  
  142.                }
  143.           }     
  144.                                                                                
  145.      else if (getsenderid() == 8)
  146.           {
  147.           if (show_once8 < 2)                                                              
  148.                {                                                                     
  149.                dwplaycammyspeech(16033, "M3CA029.wav", 5, 2);  //drainhatch              
  150.                print("message1");  //Debug Line16191s                                
  151.                printint(messagenumber);                                              
  152.                     if (show_once8 == 1 ) show_once8 = 2;          //It's been shown.                                                                
  153.               }                                                                                        
  154.           }
  155.  
  156.      else if (getsenderid() == 9)
  157.           {
  158.           if (show_once9 < 2)                                                              
  159.                {                                                                     
  160.                dwplaycammyspeech(16040, "M3CA033.wav", 5, 2);  //the water valves will open and close...              
  161.                print("message1");  //Debug Line16191s                                
  162.                printint(messagenumber);                                              
  163.                     if (show_once9 == 1 ) show_once9 = 2;          //It's been shown.                                                                
  164.               }                                                                                        
  165.           }
  166.  
  167.      else if (getsenderid() == 10)
  168.           {
  169.           if (show_once10 < 2)                                                              
  170.                {                                                                     
  171.                dwplaycammyspeech(16040, "M3CA033.wav", 5, 2);  //the water valves will open and close...              
  172.                print("message1");  //Debug Line16191s                                
  173.                printint(messagenumber);                                              
  174.                     if (show_once10 == 1 ) show_once10 = 2;          //It's been shown.                                                                
  175.               }                                                                                        
  176.           }
  177.      
  178.      else if (getsenderid() == 11) //gearfind2                                                 
  179.           {
  180.           if (show_once5 < 2)         
  181.                {                                                                        
  182.                dwplaycammyspeech(16024, "M3CA019.wav", 5, 2);  //gearfind
  183.                print("message1");  //Debug Line16191s                                   
  184.                printint(messagenumber);                                                 
  185.                     if (show_once5 == 1 ) show_once5 = 2;          //It's been shown.
  186.                }
  187.           }
  188.  
  189.      else if (getsenderid() == 12) //gearfind3                                                 
  190.           {
  191.           if (show_once5 < 2)         
  192.                {                                                                        
  193.                dwplaycammyspeech(16024, "M3CA019.wav", 5, 2);  //gearfind
  194.                print("message1");  //Debug Line16191s                                   
  195.                printint(messagenumber);                                                 
  196.                     if (show_once5 == 1 ) show_once5 = 2;          //It's been shown.
  197.                }
  198.           }   
  199.          
  200.      return;     
  201.  
  202. user1:
  203.      show_once2 = 2;
  204.      show_once9 =2;
  205.      show_once10 =2;
  206.      return;
  207.  
  208. end
  209.  
  210.  
  211.  
  212.  
  213.