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

  1. # Droids Cog Script
  2. #
  3. # t3_objectives.cog
  4. # Objectives cog
  5. #  
  6. # Desc:
  7. #
  8. # GOAL 0 1 Remove block from door entrance
  9. # GOAL 0 2 End affector with grabbing ability 
  10. # GOAL 0 3 Elbow Joint
  11.  
  12. # GOAL 1 1 Remove block from door entrance
  13. # GOAL 1 2 End affector with grabbing ability 
  14. # GOAL 1 3 Elbow Joint
  15. # GOAL 1 4 Droid with legs
  16. # GOAL 1 5 Weigh under 150 kg. 
  17.  
  18. # GOAL 2 1 Remove block from door entrance
  19. # GOAL 2 2 End affector with grabbing ability 
  20. # GOAL 2 3 Elbow Joint
  21. # GOAL 2 4 Droid with treads
  22. # GOAL 2 5 Under 10 minutes
  23. # GOAL 2 6 50% + battery power
  24. #
  25. #
  26. #
  27. # 01/22/98 [DGS]    Created
  28. #
  29. #
  30. # (C) 1997 LucasLearningLimited. All Rights Reserved
  31.  
  32.  
  33.  
  34. symbols                     
  35. message            startup
  36. message            shutdown
  37. message            timer
  38. message        entered
  39. sector         endsector
  40.  
  41. int        undertimelimit    local
  42. int        finished    local
  43. int        player        local
  44. int        halfpower    local
  45.  
  46. end
  47. ## Code Section
  48. code    
  49.  
  50. startup:
  51. //            GOAL 0 1 lift heavy block
  52. //            GOAL 0 3 pass through security exit door
  53. //            REQUIREMENT 0 2 grabbing & tugging ability
  54.  
  55. //            GOAL 1 1 lift heavy block 
  56. //            GOAL 1 3 pass through security exit door
  57. //            REQUIREMENT 1 2 grabbing & tugging ability 
  58. //            REQUIREMENT 1 4 legs
  59.  
  60. //            GOAL 2 5 complete mission: under 3 minutes
  61. //            GOAL 2 1 lift heavy block
  62. //            GOAL 2 3 pass through security exit door
  63. //            REQUIREMENT 2 2 grabbing & tugging ability
  64. //            REQUIREMENT 2 4 treads
  65. //            REQUIREMENT 2 6 fine manipulation
  66.     
  67.     
  68.     
  69.     droidweight     =     GetThingMass(GetLocalPlayerThing()) / 2.2;  // Get the player's weight
  70.     player        =    getlocalplayerthing();
  71.     finished     =     0;// Set this variable to false until the level is finished
  72.          
  73.     if (getdifficulty() == 0)// +++++++++++++++++ EASY 
  74.         {
  75.         //            GOAL 0 1 lift heavy block
  76.         //            GOAL 0 3 pass through security exit door
  77.         //            REQUIREMENT 0 2 grabbing & tugging ability
  78.         if (dwCheckDroidCaps(8192)) setInv(player, 2, 1); // if droid has an elbow  
  79.         //            REQUIREMENT 0 4 fine manipulation 
  80.             
  81.         }
  82.     if (getdifficulty() == 1)// +++++++++++++++++ MEDIUM 
  83.         {
  84.         //            GOAL 1 1 lift heavy block 
  85.         //            GOAL 1 3 pass through security exit door
  86.         //            REQUIREMENT 1 2 grabbing & tugging ability 
  87.         if (dwCheckDroidCaps(8192)) setInv(player, 2, 1);// elbow 
  88.         //            REQUIREMENT 1 4 legs
  89.         if (dwCheckDroidCaps(8)) setInv(player, 4, 1);// legs 
  90.         //            REQUIREMENT 1 5 fine manipulation
  91.         }
  92.         
  93.         if (getdifficulty() == 2)// +++++++++++++++++++HARD 
  94.         {
  95.         //            GOAL 2 5 complete mission: under 3 minutes
  96.         underlimit = 1;
  97.         settimer(180);
  98.         //            GOAL 2 1 lift heavy block
  99.         //            GOAL 2 3 pass through security exit door
  100.         //            REQUIREMENT 2 2 grabbing & tugging ability
  101.         if (dwCheckDroidCaps(8192)) setInv(player, 2, 1);// elbow 
  102.         //            REQUIREMENT 2 4 treads
  103.         if (dwCheckDroidCaps(524288)) setInv(player, 4, 1);// treads 
  104.         //            REQUIREMENT 2 6 fine manipulation
  105.         }                                                                                     
  106.      return;
  107. shutdown:
  108.     curpower=GetInv(player, 20);
  109.     if (getdifficulty() == 0) //++++++++++++++++++ EASY
  110.         {            
  111.         }
  112.     
  113.     if (getdifficulty() == 1) //++++++++++++++++++ MEDIUM
  114.         {
  115.         }
  116.         
  117.     return;
  118.  
  119. timer:
  120.      underlimit = 0;
  121.      return;
  122.      
  123. entered:
  124.     if (getdifficulty() == 2) //++++++++++++++++++ HARD
  125.         {
  126.         if (underlimit == 1) SetInv(player, 5, 1);          
  127.         } 
  128.     setInv(player, 3, 1);        //endit 
  129.     finished = 1;
  130.     //sleep(2);
  131.     return;         
  132.  
  133.   
  134. end
  135.  
  136.  
  137.  
  138.  
  139.