home *** CD-ROM | disk | FTP | other *** search
- # This script handles:
- # 1) Cammy saying the generator is fixed
- # 2) The assassin droid appearing
- # 3) Fitto running away when you get back to his area
- # 4) The conveyor belt door ("escapedoor") opening when you return to the vat area
-
- symbols
- message startup
- message arrived
- message user0
- message entered
- message timer
- message crossed
- message pulse
-
- template ADtemplate
-
- thing ADghost
- thing alternatecam nolink
- thing FittoDroid linkid=1
- thing fittodoor nolink
- thing escapedoor
- thing escapedoorcam
- thing target
-
- surface triggeradjoin
-
- sector chickensector linkid=2
- sector escapedoorsector linkid=3
- cog wackylightcog
-
- thing laterCam
- thing laterCamtarget
-
- end
-
- code
- startup:
- player=getlocalplayerthing();
- youarebusted=-1;
- return;
-
- user0:
- //create the assassin droid
- youarebusted=0;
- dwplaycammyspeech(16010, "m2ca010.wav", 20, 2);
- sendmessage(wackylightcog, user1);
- return;
-
- crossed:
- if(youarebusted==0) {
- youarebusted=1;
- print("here he comes!");
-
- AD=creatething(ADtemplate, ADghost);
- aiclearmode(0xffff);
- aisetmode(0x2000);
- aisetlookpos(AD, getthingpos(target));
- aisetmovepos(AD, getthingpos(target));
- aisetmovespeed(AD, 1);
- // SetCameraFocii(2,AD,alternatecam);
-
- dwplaycharacterspeech("ADX100", "m2ad001.wav");
- dwcleardialog();
- if (youarebusted==1) dwplaycammyspeech(16012, "m2ca012.wav", 20, 2);
- }
- return;
-
- timer:
- if (getsenderid()==4) {
- movetoframe(fittodoor, 0, 5);
- sleep(1);
- dwplaycammyspeech(16019, "m2ca019.wav", 20, 2);
- sleep(1);
- movetoframe(laterCam, 2, 15);
- movetoframe(laterCamtarget, 2, 15);
- // setcamerafocii(2, escapedoor, escapecam);
- // setcurrentcamera(2);
- }
- return;
-
- arrived:
- if (getsenderref()==laterCam) movetoframe(escapedoor, 1, 1);
- else if (getsenderref()==escapedoor) {
- sleep(1);
- dwunfreezeplayer();
- setcurrentcamera(7);
- dwEnableEscape();
- AD2=creatething(ADtemplate, ADghost);
- }
- return;
-
-
-
-
- entered:
- if (getsenderid()==2) {
- if (youarebusted==1) {
- sleep(0.35);
- print("later for you");
- dwfreezeplayer();
- dwdisableEscape();
- setCameraFocii(2, laterCamtarget, laterCam);
- setCurrentCamera(2);
- destroything(AD);
- dwplaycharacterspeech("SDX000", "m2bd033.wav");
- dwcleardialog();
- movetoframe(fittodoor, 1, 2);
- AIsetlookframe(Fittodroid, 1);
- AIsetmoveframe(Fittodroid, 1);
- AIsetmovespeed(Fittodroid, 0.5);
- dwClearResponses();
- youarebusted=2;
- settimerEX(1.75, 4, 0, 0);
- }
- }
- return;
-
-
- end
-
-
-
-
-
-
-
-
-
-
-