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