home *** CD-ROM | disk | FTP | other *** search
/ Classic Fond 52 / ClassicFond52.iso / GAMES / DROIDW.RAR / DWCD.GOB / mission_cog_t2_jawawavingflag.cog < prev    next >
Text File  |  1998-11-04  |  2KB  |  76 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. int       conversationactive=0               local
  13. end
  14.  
  15.  
  16.  
  17. code
  18. startup:
  19.      wait_time=1.3;
  20.      playkey(jawa, wavingflagKey, 1, 0);
  21.      return;
  22.      
  23. converse:
  24.      dwplayplayerresponse();     
  25.      playerpos=getthingpos(player);
  26.      # What response did the player select?
  27.      ResponseID = dwGetPlayerResponse();
  28.      
  29.      
  30.      if (ResponseID == 0 && !ConversationActive)
  31.           {
  32.           # Response 0 is reserved to indicate that a conversation is starting
  33.           ConversationActive = 1;
  34.           playsong(0,0,0);   
  35.           dwfreezeplayer();        
  36.                ResponseID = 1;
  37.           
  38.             }
  39.      
  40.      if (ResponseID == 1) {                 #beginning Node          
  41.           dwplaycharacterspeech("JFC020", "t4ja002.wav"); 
  42.            
  43.               
  44.           dwAddResponse(100, "JFP041", "t4xx003.wav", 71);           // Back to root node (ID 1);      
  45.      } 
  46.      if (ResponseID == 100) {
  47.           dwplaycharacterspeech("JFC041", "t4ja005.wav"); 
  48.            
  49.               
  50.           dwAddResponse(7, "JFP050", "", 20);           // Back to root node (ID 1);
  51.      }
  52.            
  53.  
  54.      if (ResponseID == 7)
  55.      {
  56.           #PLAYER: Gotta go!
  57.      
  58.           # Terminate the conversation
  59.           dwcleardialog();
  60.           ConversationActive=0;     
  61.           shuffletracks(2, 3, 4, 5);
  62.           # Enable the player
  63.           dwunfreezeplayer();
  64.           call walkthatjawa;
  65.      }   
  66.      return;
  67.      
  68.  
  69.      
  70.  
  71.      
  72.  
  73.      
  74.  
  75. end
  76.