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