home *** CD-ROM | disk | FTP | other *** search
/ Classic Fond 52 / ClassicFond52.iso / GAMES / DROIDW.RAR / DWCD.GOB / mission_cog_00_t_cammycapscheck.cog < prev    next >
Text File  |  1998-11-04  |  3KB  |  98 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. message        startup
  31. message        pulse
  32.  
  33.  
  34. sector              inventory       linkid=1  
  35.     
  36. int            show_once=1  local
  37. int            show_once2=1 local
  38.  
  39.        
  40. end
  41.  
  42. code
  43.  
  44. startup:
  45.      player=getlocalplayerthing();
  46.      sleep(10);     
  47.      setpulse(15);     
  48.           
  49.      return;        
  50.  
  51.  
  52. pulse:
  53.      if (dwCheckDroidCaps(256))                          
  54.           {                                             
  55.           if (show_once < 2)
  56.                {
  57.                dwplaycammyspeech(16161, "TGCA036.wav", 5, 1);
  58.                if (show_once == 1) show_once = 2;
  59.                setpulse(0);
  60.                }
  61.           }     
  62.                                                                                                                     
  63.      else if (dwcheckDroidCaps(32))                          
  64.           {                                             
  65.           if (show_once < 2)
  66.                {
  67.                dwplaycammyspeech(16161, "TGCA036.wav", 5, 1);
  68.                if (show_once == 1) show_once = 2;
  69.                setpulse(0);
  70.                }
  71.           }                                                         
  72.                                                         
  73.      else if (dwCheckDroidCaps(262144))                  
  74.           {
  75.           if (show_once < 2)
  76.                {                                                      
  77.                dwplaycammyspeech(16161, "TGCA036.wav", 5, 1);
  78.                if (show_once == 1) show_once = 2;
  79.                setpulse(0);
  80.                }
  81.           }
  82.                                                         
  83.      else                                               
  84.           {                                             
  85.           if (show_once < 2)
  86.                {
  87.                dwplaycammyspeech(16160, "TGCA035.wav", 5, 1);
  88.                if (show_once == 1) show_once =2;
  89.                setpulse(0);
  90.                }
  91.           }
  92.           
  93.      return;
  94.  
  95.  
  96.  
  97. end                                             
  98.