home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Classic Fond 52
/
ClassicFond52.iso
/
GAMES
/
DROIDW.RAR
/
DWCD.GOB
/
mission_cog_02_fittotalk.cog
< prev
next >
Wrap
Text File
|
1998-11-04
|
10KB
|
336 lines
# d_0 JawaTalk.cog
#
# A simple communiCog ripped off from Doug
#
# Desc:
# Sucker Fool I stole it from Matt, I didn't even change
# The variable GONK. - Love Ya, Doug
#
# Yeah, well I stole it back so bite me. --Matt
# 12/08/97 DGS Stole from Matt's GonkTalk
# 12/08/97 MST Stole back from Doug's JawaTalk
#-----------------------------------------------------------------------------
symbols
message converse
message startup
message arrived
message user5
message user3
message user4
message user2
message timer
thing player local
thing gonk
surface cheatswitch3 linkid=3
surface cheatswitch4 linkid=4
surface cheatswitch5 linkid=5
cog baffleMcog
cog PMNcog
cog baffleMixcog
int Met=0 local
int ConversationActive=0 local
int ResponseID local
flex wait_time=1.3 local
int global1=0 local
cog wackylightcog
sound poweroffwav=nrg02poweroff.wav
thing camera
thing target
end
code
startup:
setthinglight(gonk, 0.5, 0);
player=getlocalplayerthing();
met=0;
cd1=0;
return;
// met=0 initial condition
// met=1 has talked to supervisor and been given orders
// met=2 has entered generator room but hasn't fixed it yet
// met=3 has fixed generator the first time
// met=4 has talked about crystal, but hasn't moved metal
// met=5 has moved the metal
// met=6 has not fixed generator 2nd time
user5:
met=5;
return;
user3:
if ((met==5)||(met==6)) return;
else if ((met==1)||(met==2)||(met==0)) {
met=3;
print("ready to talk!");
}
return;
user2:
if ((met==5)||(met==6)) return;
if (met==0) return;
met=2;
return;
user4:
met=4;
return;
converse:
dwplayplayerresponse();
# What response did the player select?
print("converse");
ResponseID = dwGetPlayerResponse();
if (ResponseID == 0 && !ConversationActive) {
# Response 0 is reserved to indicate that a conversation is starting
ConversationActive = 1;
PlaySong(0,0,0);
dwfreezeplayer();
ResponseID = 1;
}
if (ResponseID == 1) { #beginning Node
// sendmessage(baffleMcog, user6);
print("met is");
printint(met);
if (met==3) {
dwplaycharacterspeech("SEC000", "m2bd022.wav");
dwAddResponse(1000, "SEP100", "m2xx014.wav", 70);
}
else if (met==0) {
dwplaycharacterspeech("SDC000", "m2bd004.wav");
dwAddResponse(100, "SDP100", "m2xx006.wav", 10);
dwAddResponse(200, "SDP200", "m2xx007.wav", 70);
dwAddResponse(220, "SDP220", "m2xx008.wav", 70);
dwAddResponse(300, "SDP300", "", 20);
}
else if (met==1) {
dwplaycharacterspeech("SDC001", "m2bd006.wav");
dwAddResponse(301, "SDP000", "t1xx014.wav", 60);
}
else if ((met==2)||(met==6)) {
dwplaycharacterspeech("SEC001", "m2bd023.wav");
dwcleardialog();
ConversationActive=0;
ShuffleTracks(6,7,8,9);
dwunfreezeplayer();
}
else if (met==4) {
dwplaycharacterspeech("SEC002", "m2bd024.wav");
dwcleardialog();
ConversationActive=0;
ShuffleTracks(6,7,8,9);
dwunfreezeplayer();
}
else if (met==5) {
dwplaycharacterspeech("SDC004", "m2bd009.wav");
dwAddResponse(7001, "SEP700", "m2xx018.wav", 70);
}
}
else if (ResponseID == 100) {
dwplaycharacterspeech("SDC100", "m2bd010.wav");
dwAddResponse(102, "SDP001", "m2xx002.wav", 60);
}
else if (ResponseID == 102) {
dwplaycharacterspeech("SDC102", "m2bd012.wav");
dwAddResponse(104, "SDP002", "m2xx003.wav", 50);
}
else if (ResponseID == 104) {
dwplaycharacterspeech("SDC104", "m2bd014.wav");
dwAddResponse(200, "SDP400", "m2xx009.wav", 70);
}
else if (ResponseID == 111) {
dwplaycharacterspeech("SDC004", "m2bd009.wav");
dwAddResponse(500, "SDP500", "m2xx010.wav", 71);
dwAddResponse(600, "SDP600", "m2xx011.wav", 72);
dwAddResponse(800, "SDP800", "m2xx013.wav", 73);
dwAddResponse(301, "SDP300", "", 20);
}
else if (ResponseID == 120) {
dwplaycharacterspeech("SDC004", "m2bd009.wav");
dwAddResponse(100, "SDP100", "m2xx006.wav", 10);
}
else if (ResponseID==200) {
dwplaycharacterspeech("SDC200", "m2bd015.wav");
dwAddResponse(500, "SDP500", "m2xx010.wav", 71);
dwAddResponse(600, "SDP600", "m2xx011.wav", 72);
dwAddResponse(800, "SDP800", "m2xx013.wav", 73);
}
else if (ResponseID==220) {
dwplaycharacterspeech("SDC220", "m2bd005.wav");
dwAddResponse(120, "SDP000", "t1xx014.wav", 50);
}
else if (ResponseID==500) {
dwplaycharacterspeech("SDC500", "m2bd016.wav" );
dwAddResponse(111, "SDP000", "t1xx014.wav", 50);
}
else if (ResponseID==600) {
dwplaycharacterspeech("SDC600", "m2bd018.wav");
dwAddResponse(111, "SDP000", "t1xx014.wav", 50);
}
else if (ResponseID==800) {
dwplaycharacterspeech("SDC800", "m2bd021.wav");
dwAddResponse(111, "SDP000", "t1xx014.wav", 50);
}
else if (ResponseID==1000) {
dwplaycharacterspeech("SEC100", "m2bd025.wav");
dwAddResponse(1004, "SDP004", "m2xx005.wav", 50);
dwAddResponse(2000, "SEP500", "m2xx016.wav", 40);
}
else if (ResponseID==1004) {
dwplaycharacterspeech("SEC200", "m2bd026.wav");
dwAddResponse(2000, "SEP200", "m2xx015.wav", 70);
}
else if (ResponseID==2000) {
dwplaycharacterspeech("SEC300", "m2bd027.wav");
dwAddResponse(6000, "SEP600", "t1xx014.wav", 60);
}
else if (ResponseID==6000) {
dwdisableEscape();
call jhcamerafix;
dwplaycharacterspeech("SEC400", "m2bd028.wav");
dwAddResponse(6001, "SEP600", "t1xx014.wav", 60);
dwEnableEscape();
}
else if (ResponseID==6001) {
dwplaycharacterspeech("SEC500", "m2bd029.wav");
dwcleardialog();
conversationactive=0;
ShuffleTracks(6,7,8,9);
met=4;
dwunfreezeplayer();
sendmessage(PMNcog, user0);
call camdisplay2;
}
else if (ResponseID==7001) {
dwplaycharacterspeech("SEC700", "m2bd030.wav");
playsoundlocal(poweroffwav, 1.0, 0.0, 0);
sendmessage(wackylightcog, user0);
sendmessage(baffleMixcog, user1);
sendmessage(baffleMcog, user6);
dwplaycharacterspeech("SXC700", "m2bd057.wav");
dwAddResponse(7501