home *** CD-ROM | disk | FTP | other *** search
- 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, "JFP030", "t1xx033.wav", 71); // Back to root node (ID 1);
- }
- if (ResponseID == 100) {
- dwplaycharacterspeech("JFC030", "t4ja003.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
-