home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Classic Fond 52
/
ClassicFond52.iso
/
GAMES
/
DROIDW.RAR
/
DWCD.GOB
/
mission_cog_t2_jawawavingflag.cog
< prev
next >
Wrap
Text File
|
1998-11-04
|
2KB
|
76 lines
symbols
message startup
message converse
message entered
sector triggersector
thing jawa
keyframe wavingflagKey=jawa_wavingflag.key
int conversationactive=0 local
end
code
startup:
wait_time=1.3;
playkey(jawa, wavingflagKey, 1, 0);
return;
converse:
dwplayplayerresponse();
playerpos=getthingpos(player);
# What response did the player select?
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
dwplaycharacterspeech("JFC020", "t4ja002.wav");
dwAddResponse(100, "JFP041", "t4xx003.wav", 71); // Back to root node (ID 1);
}
if (ResponseID == 100) {
dwplaycharacterspeech("JFC041", "t4ja005.wav");
dwAddResponse(7, "JFP050", "", 20); // Back to root node (ID 1);
}
if (ResponseID == 7)
{
#PLAYER: Gotta go!
# Terminate the conversation
dwcleardialog();
ConversationActive=0;
shuffletracks(2, 3, 4, 5);
# Enable the player
dwunfreezeplayer();
call walkthatjawa;
}
return;
end