home *** CD-ROM | disk | FTP | other *** search
- symbols
- message startup
- message converse
- message entered
-
- sector triggersector
-
- thing jawa
-
- keyframe wavingflagKey=jawa_wavingflag.key
-
- end
-
-
-
- code
- startup:
- wait_time=1.3;
- playkey(jawa, wavingflagKey, 1, 0);
- return;
-
- entered:
- dwSetDialogText("JFC000");
- sleep(2);
- dwSetDialogText("");
- return;
-
- converse:
- converse:
- 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;
- # Disable the player during the conversation
- SetActorFlags(GetLocalPlayerThing(), 0x200000);
- # Use the font "SerpentineICGLt12E" for gonk,
- # display the text in color 96 (white)
- dwStartDialog(gonk, "SerpentineICGLt12E", 96);
- # Set up the initial text spoken by the NPC, gonk,
- # and appropriate responses
- ResponseID = 1;
-
- }
-
- if (ResponseID == 1) { #beginning Node
- AIsetlookpos(jawa, getthingpos(player));
- dwSetDialogText("JFC020");
- dwClearResponses();
- Sleep(wait_time);
- dwAddResponse(100, ""); // Back to root node (ID 1);
- }
- if (ResponseID == 100) {
- dwSetDialogText("");
- dwClearResponses();
- Sleep(wait_time);
- dwAddResponse(7, ""); // Back to root node (ID 1);
- }
-
-
- if (ResponseID == 7)
- {
- #PLAYER: Gotta go!
-
- # Terminate the conversation
- dwEndDialog();
- ConversationActive=0;
-
- # Enable the player
- ClearActorFlags(GetLocalPlayerThing(), 0x200000);
- call walkthatjawa;
- }
- return;
-
-
-
-
-
-
-
-
- end
-