home *** CD-ROM | disk | FTP | other *** search
/ Classic Fond 52 / ClassicFond52.iso / GAMES / DROIDW.RAR / DWCD.GOB / mission_cog_sy_objectives.cog < prev    next >
Encoding:
Text File  |  1998-11-04  |  1.3 KB  |  63 lines

  1. # Droids Cog Script
  2. #
  3. # SY_objectives.cog
  4. # Objectives cog
  5. #  
  6. # Desc:
  7. #
  8. #
  9. #
  10. # 01/22/98 [DGS]    Created
  11. #
  12. #
  13. # (C) 1998 LucasLearningLimited. All Rights Reserved
  14.  
  15.  
  16.  
  17. symbols                     
  18. message                        startup
  19. message                        shutdown
  20.  
  21.  
  22.  
  23. int        undertimelimit        local
  24. int        finished            local
  25. int        player                local
  26. int        halfpower            local
  27.  
  28. end
  29. ## Code Section
  30. code    
  31.  
  32. startup:
  33.     
  34.     //    GOAL 0 2 Droid with legs
  35.     //    GOAL 0 1 Droid with medical knowledge    
  36.     //    GOAL 0 3 Rescue and relax injured Jawa
  37.     //    GOAL 0 4 Manipulator with cutting ability
  38.     //    GOAL 0 5 Magnetic 
  39.     //    GOAL 0 6 Retrieve information from droid
  40.     player        =    getlocalplayerthing();
  41.     finished     =     0;// Set this variable to false until the level is finished
  42.     
  43.      //REQUIREMENT 0 1 medical knowledge    
  44.      if (dwCheckDroidCaps(512)) SetInv(player, 1, 1);// if droid can talk        
  45.      //REQUIREMENT 0 4 cutting ability
  46.      if (dwCheckDroidCaps(16384)) SetInv(player, 4, 1);// if droid can talk        
  47.      //REQUIREMENT 0 2 bio injector
  48.      if (dwCheckDroidCaps(32768)) SetInv(player, 2, 1);// if droid can talk        
  49.      //REQUIREMENT 0 5 magnetic 
  50.      if (dwCheckDroidCaps(16)) SetInv(player, 5, 1);// if droid can talk        
  51.     return;
  52. shutdown:
  53.     
  54.     return;
  55.  
  56.   
  57. end
  58.  
  59.  
  60.  
  61.  
  62.