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