home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Classic Fond 52
/
ClassicFond52.iso
/
GAMES
/
DROIDW.RAR
/
DWCD.GOB
/
mission_cog_d0_rdroidtalk.cog
< prev
next >
Wrap
Text File
|
1998-11-04
|
12KB
|
349 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 timer
message activate
message pulse
message arrived
message user0 //the launcher is blocked
message user1 //the launcher is clear
message user3
message user4 //the countdown is on
message user5 //the countdown is done
message pulse
cog catapultcog
sector safesector
thing Rdroid
thing Edroid nolink
thing player local
int Met=0 local
int spoken_1=0 local
int ConversationActive=0 local
int ResponseID local
flex wait_time=1.3 local
thing ghost1 nolink
thing ghost2 nolink
thing ghost3 nolink
vector curpos local
thing ghostX nolink
end
code
//activate:
// call walktolauncher;
// return;
startup:
hastalked=0;
player=getlocalplayerthing();
iwanttolaunch=0; // set to one when want the droid to walk to catapult
waitingtolaunch=0;
launcherloaded=0;
gposX=getthingpos(ghostX);
gpos0=getthingpos(Rdroid);
gpos1=getthingpos(ghost1);
gpos2=getthingpos(ghost2);
gpos3=getthingpos(ghost3);
gonkcurframe=0;
edroidsafe=0;
countdownON=0;
return;
user0:
print("rdroid also says the launcher is loaded");
launcherloaded=1;
return;
user1:
launcherloaded=0;
return;
user3:
print("rdroid realizes that edroid is safe!");
edroidsafe=1;
return;
user4:
countdownON=1;
return;
user5:
countdownON=0;
return;
converse:
print("gonkcurframe is");
print(gonkcurframe);
if ( (gonkcurframe==1)||(gonkcurframe==2)||( (gonkcurframe==3)&&(vectorY(getthingpos(Rdroid))>2.13) ) ) return;
if (getthinghealth(Edroid)<=0) return;
setthingmass(Rdroid, 0);
print("health of Rdroid is");
printflex(getthinghealth(Rdroid));
if (getthinghealth(Rdroid)<=0) return;
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
if (vectorY(getthingpos(Rdroid))<2.13) {
gonkcurframe=-1;
iwanttolaunch=0;
dwplaycharacterspeech("RDC320", "t1gk022.wav"); # Please get it right!
dwAddResponse(3000, "EDP200", "t1xx042.wav", 70); # Whoops, let me adjust again
dwAddResponse(3100, "EDP205", "t1xx043.wav", 70); # I'm sure I"ve got it let's go
dwAddResponse(3200, "EDP005", "t1xx036.wav", 70); # How much do you weigh?
}
else if (edroidsafe==0) {
if (met==1) {
dwplaycharacterspeech("RDC003", "t6gk005.wav"); # Anything else
dwAddResponse(100, "RDP001", "t1xx033.wav", 10); // What do I do here?
dwAddResponse(7, "RDP002", "", 20); // Goodbye.
}
else if (met==0) {
met=1;
dwplaycharacterspeech("RDC001", "t1gk002.wav"); # Greets
dwAddResponse(100, "RDP001", "t1xx033.wav", 10); // What do I do here?
dwAddResponse(7, "RDP002", "", 20); // Goodbye.
}
}
else if (edroidsafe==1) {
if (waitingtolaunch==0) {
dwplaycharacterspeech("RDC000", "t1gk001.wav");
dwAddResponse(1000, "RDP100", "t1xx026.wav", 30);
dwAddResponse(1020, "RDP102", "t1xx027.wav", 70);
}
else if (waitingtolaunch==1) {
dwplaycharacterspeech("RDC200", "t1gk017.wav");
if ( (countdownON==0)&&(launcherloaded==0) ) dwAddResponse(2000, "RDP200", "t1xx030.wav", 70);
dwAddResponse(2020, "RDP202", "t1xx031.wav", 70);
dwAddResponse(2040, "RDP204", "t1xx032.wav", 70);
}
}
}
if (ResponseID == 100) // # Security
{
dwplaycharacterspeech("RDC005", "t1gk006.wav"); //I'm trying to get across
dwAddResponse(110, "RDP010", "t1xx015.wav", 80); // I assure you it's safe...
dwAddResponse(120, "RDP012", "t1xx016.wav", 70); // I don't blame you...
dwAddResponse(140, "RDP014", "t1xx017.wav", 60); // You need to calm down.
}
if (ResponseID == 110) // # Security
{
dwplaycharacterspeech("RDC010", "t1gk007.wav"); // Really...?
dwAddResponse(200, "RDP020", "t1xx018.wav", 70); // I'll prove it's safe.
}
if (ResponseID == 120) // # Security
{
dwplaycharacterspeech("RDC012", "t1gk008.wav"); // I'm not scared
dwAddResponse(200, "RDP020", "t1xx018.wav", 70); // I'll prove it's safe.
}
if (ResponseID == 140) // # Security
{
dwplaycharacterspeech("RDC014", "t1gk009.wav"); // I am calm!!
dwAddResponse(200, "RDP020", "t1xx018.wav", 70); // I'll prove it's safe.
}
if (ResponseID == 200) { // # Here, I'll prove it's safe.
dwplaycharacterspeech("RDC020", "t1gk010.wav"); // No.
dwAddResponse(300, "RDP030", "t1xx019.wav", 71); // NO???
dwAddResponse(320, "RDP032", "t1xx020.wav", 40); // Um...please?
dwAddResponse(340, "RDP034", "t1xx021.wav", 70); //Geez, what are you ...
}
if (ResponseID == 300) { //
dwplaycharacterspeech("RDC030", "t1gk011.wav"); //
dwAddResponse(300, "RDP030", "t1xx019.wav", 72);
dwAddResponse(320, "RDP032", "t1xx020.wav", 73);
dwAddResponse(340, "RDP034", "t1xx021.wav", 71);
}
if (ResponseID == 320) {
dwplaycharacterspeech("RDC020", "t1gk010.wav");
dwAddResponse(500, "RDP050", "t1xx023.wav", 72);
}
if (ResponseID== 340) {
dwplaycharacterspeech("RDC034", "t1gk012.wav");
dwAddResponse(600, "RDP060", "t1xx024.wav", 40);
dwAddResponse(7, "RDP062", "t1xx025.wav", 20);
}
if (ResponseID == 500) {
dwplaycharacterspeech("RDC020", "t1gk010.wav");
dwAddResponse(600, "RDP060", "t1xx024.wav", 40); // Maybe if you launched somebody...
dwAddResponse(7, "RDP062", "t1xx025.wav", 20);
}
if (ResponseID == 600) // # Security
{
dwplayc