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

  1. # This script handles:
  2. # 1) Cammy saying the generator is fixed
  3. # 2) The assassin droid appearing 
  4. # 3) Fitto running away when you get back to his area
  5. # 4) The conveyor belt door ("escapedoor") opening when you return to the vat area
  6.  
  7. symbols
  8. message        startup
  9. message        arrived
  10. message        user0
  11. message        entered
  12. message        timer
  13. message        crossed
  14. message        pulse
  15.  
  16. template       ADtemplate
  17.  
  18. thing          ADghost
  19. thing          alternatecam   nolink
  20. thing          FittoDroid     linkid=1
  21. thing          fittodoor      nolink
  22. thing          escapedoor
  23. thing          escapedoorcam
  24. thing          target
  25.  
  26. surface        triggeradjoin
  27.  
  28. sector         chickensector  linkid=2
  29. sector         escapedoorsector    linkid=3
  30. cog            wackylightcog
  31.  
  32. thing          laterCam
  33. thing          laterCamtarget
  34.  
  35. end
  36.  
  37. code
  38. startup:
  39.      player=getlocalplayerthing();
  40.      youarebusted=-1;
  41.      return;
  42.      
  43. user0:
  44. //create the assassin droid
  45.      youarebusted=0;     
  46.      dwplaycammyspeech(16010, "m2ca010.wav", 20, 2);
  47.      sendmessage(wackylightcog, user1);     
  48.      return;
  49.      
  50. crossed:
  51.      if(youarebusted==0) {
  52.           youarebusted=1;
  53.           print("here he comes!");
  54.          
  55.           AD=creatething(ADtemplate, ADghost);
  56.           aiclearmode(0xffff);
  57.           aisetmode(0x2000);
  58.           aisetlookpos(AD, getthingpos(target));
  59.           aisetmovepos(AD, getthingpos(target));
  60.           aisetmovespeed(AD, 1);
  61.   //        SetCameraFocii(2,AD,alternatecam);
  62.       
  63.           dwplaycharacterspeech("ADX100", "m2ad001.wav");
  64.           dwcleardialog();
  65.           if (youarebusted==1) dwplaycammyspeech(16012, "m2ca012.wav", 20, 2);
  66.      }
  67.      return;
  68.      
  69. timer:
  70.      if (getsenderid()==4) {
  71.           movetoframe(fittodoor, 0, 5); 
  72.           sleep(1);          
  73.           dwplaycammyspeech(16019, "m2ca019.wav", 20, 2);         
  74.           sleep(1);
  75.           movetoframe(laterCam, 2, 15);
  76.           movetoframe(laterCamtarget, 2, 15);         
  77. //          setcamerafocii(2, escapedoor, escapecam);          
  78. //          setcurrentcamera(2);
  79.      } 
  80.      return;
  81.      
  82. arrived:
  83.      if (getsenderref()==laterCam) movetoframe(escapedoor, 1, 1);  
  84.      else if (getsenderref()==escapedoor) {        
  85.           sleep(1);       
  86.           dwunfreezeplayer();
  87.           setcurrentcamera(7);
  88.           dwEnableEscape();
  89.           AD2=creatething(ADtemplate, ADghost);     
  90.      }
  91.      return;
  92.      
  93.      
  94.      
  95.      
  96. entered:
  97.      if (getsenderid()==2) {
  98.           if (youarebusted==1) {
  99.                sleep(0.35);
  100.                print("later for you");
  101.                dwfreezeplayer();
  102.                dwdisableEscape();
  103.                setCameraFocii(2, laterCamtarget, laterCam); 
  104.                setCurrentCamera(2);        
  105.                destroything(AD);       
  106.                dwplaycharacterspeech("SDX000", "m2bd033.wav");
  107.                dwcleardialog();                     
  108.                movetoframe(fittodoor, 1, 2); 
  109.                AIsetlookframe(Fittodroid, 1);
  110.                AIsetmoveframe(Fittodroid, 1);
  111.                AIsetmovespeed(Fittodroid, 0.5);
  112.                dwClearResponses();            
  113.                youarebusted=2;
  114.                settimerEX(1.75, 4, 0, 0);               
  115.           }
  116.      }
  117.      return;
  118.  
  119.  
  120. end
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.      
  129.  
  130.  
  131.