home *** CD-ROM | disk | FTP | other *** search
/ Classic Fond 52 / ClassicFond52.iso / GAMES / DROIDW.RAR / DWCD.GOB / mission_cog_tx_jawawavingflag.cog < prev    next >
Text File  |  1998-11-04  |  2KB  |  87 lines

  1. symbols
  2. message        startup
  3. message        converse
  4. message        entered
  5.  
  6. sector         triggersector
  7.  
  8. thing          jawa
  9.  
  10. keyframe       wavingflagKey=jawa_wavingflag.key 
  11.  
  12. end
  13.  
  14.  
  15.  
  16. code
  17. startup:
  18.      wait_time=1.3;
  19.      playkey(jawa, wavingflagKey, 1, 0);
  20.      return;
  21.      
  22. entered:
  23.      dwSetDialogText("JFC000");
  24.      sleep(2);
  25.      dwSetDialogText("");
  26.      return;
  27.      
  28. converse:
  29. converse:
  30.      playerpos=getthingpos(player);
  31.      # What response did the player select?
  32.      ResponseID = dwGetPlayerResponse();
  33.      
  34.      
  35.      if (ResponseID == 0 && !ConversationActive)
  36.           {
  37.           # Response 0 is reserved to indicate that a conversation is starting
  38.           ConversationActive = 1;   
  39.            # Disable the player during the conversation
  40.           SetActorFlags(GetLocalPlayerThing(), 0x200000);
  41.           # Use the font "SerpentineICGLt12E" for gonk,
  42.           #   display the text in color 96 (white)
  43.           dwStartDialog(gonk, "SerpentineICGLt12E", 96);
  44.                 # Set up the initial text spoken by the NPC, gonk,
  45.           # and appropriate responses
  46.                ResponseID = 1;
  47.           
  48.             }
  49.      
  50.      if (ResponseID == 1) {                 #beginning Node          
  51.           AIsetlookpos(jawa, getthingpos(player));
  52.           dwSetDialogText("JFC020"); 
  53.           dwClearResponses();
  54.           Sleep(wait_time);   
  55.           dwAddResponse(100, "");           // Back to root node (ID 1);      
  56.      } 
  57.      if (ResponseID == 100) {
  58.           dwSetDialogText(""); 
  59.           dwClearResponses();
  60.           Sleep(wait_time);   
  61.           dwAddResponse(7, "");           // Back to root node (ID 1);
  62.      }
  63.            
  64.  
  65.      if (ResponseID == 7)
  66.      {
  67.           #PLAYER: Gotta go!
  68.      
  69.           # Terminate the conversation
  70.           dwEndDialog();
  71.           ConversationActive=0;
  72.      
  73.           # Enable the player
  74.           ClearActorFlags(GetLocalPlayerThing(), 0x200000);
  75.           call walkthatjawa;
  76.      }   
  77.      return;
  78.      
  79.  
  80.      
  81.  
  82.      
  83.  
  84.      
  85.  
  86. end
  87.