home *** CD-ROM | disk | FTP | other *** search
/ Classic Fond 52 / ClassicFond52.iso / GAMES / DROIDW.RAR / DWCD.GOB / mission_cog_b0_jawawavingflag2.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. end
  13.  
  14.  
  15. code
  16. startup:
  17.      wait_time=1.3;
  18.      playkey(jawa, wavingflagKey, 1, 0);
  19.      return;
  20.      
  21. entered:
  22. //     dwplaycharacterspeech("JFC010", "t6ja001.wav");
  23. //     dwcleardialog();
  24.      return;
  25.      
  26. converse:
  27. converse:
  28.      dwPlayPlayerResponse();
  29.      # What response did the player select?
  30.      ResponseID = dwGetPlayerResponse();
  31.      
  32.      
  33.      if (ResponseID == 0 && !ConversationActive)
  34.           {
  35.           # Response 0 is reserved to indicate that a conversation is starting
  36.           ConversationActive = 1;   
  37.           playsong(0,0,0);
  38.           dwfreezeplayer();
  39.           # Use the font "SerpentineICGLt12E" for gonk,
  40.           #   display the text in color 96 (white)
  41.                ResponseID = 1;
  42.           
  43.             }
  44.      
  45.      if (ResponseID == 1) {                 #beginning Node          
  46.           dwplaycharacterspeech("JFC000", "t3ja001.wav"); 
  47.            
  48.               
  49.           dwAddResponse(100, "JFP001", "t1xx033.wav", 71);           // Back to root node (ID 1);      
  50.      } 
  51.      if (ResponseID == 100) 
  52.         {
  53.         dwplaycharacterspeech("JFC001", "t3ja002.wav"); 
  54.         dwAddResponse(7, "JFP003", "IDxx222.wav", 20);           // Back to root node (ID 1);
  55.         }
  56.      if (ResponseID == 7)
  57.      {
  58.           #PLAYER: Gotta go!
  59.           dwcleardialog();
  60.           # Terminate the conversation
  61.           ConversationActive=0;
  62.            ShuffleTracks(2, 3, 4, 5);
  63.           # Enable the player
  64.           dwunfreezeplayer();    
  65.           
  66.           call walkthatjawa;
  67.      }   
  68.      return;
  69.      
  70.  
  71.      
  72.  
  73.      
  74.  
  75.      
  76.  
  77. end
  78.