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

  1. # Droids Cog Script
  2. #
  3. # t8_objectives.cog  DARK MAZE
  4. # Objectives cog For Counterweight
  5. #  
  6. # Desc:
  7. #
  8. #         
  9. #
  10. #
  11. #
  12. # 01/22/98 [DGS]    Created
  13. #
  14. #
  15. # (C) 1997 LucasLearningLimited. All Rights Reserved
  16.  
  17.  
  18.  
  19. symbols                     
  20. message            startup
  21. message            shutdown
  22. message            timer
  23. message        entered
  24. message        crossed
  25. sector         endsector
  26. surface        maze_end
  27. int        undertimelimit    local
  28. int        finished    local
  29. int        player        local
  30. int        halfpower    local
  31.  
  32. end
  33. ## Code Section
  34. code    
  35.  
  36. startup:
  37.         //GOAL 0 1 pass through security exit door
  38.         //REQUIREMENT 0 3 ability to see in the dark
  39.         //REQUIREMENT 0 2 tall biped 
  40.           //req 0 4 100 kg or less
  41.         
  42.         
  43.         //GOAL 1 1 pass through security exit door
  44.         //REQUIREMENT 1 3 flood light  
  45.         //REQUIREMENT 1 2 tall biped
  46.           // req 1 4 100kg or less
  47.         
  48.          
  49.         //REQ 2 4 100 kg or less
  50.         //GOAL 2 6 lead stranded droid out of maze
  51.         //GOAL 2 1 pass through security exit door
  52.         //REQUIREMENT 2 3 light enhancement sensor
  53.         //REQUIREMENT 2 5 ability to commuicate
  54.         //REQUIREMENT 2 2 tall biped
  55.  
  56.  
  57.  
  58.  
  59.  
  60.         droidweight     =     GetThingMass(GetLocalPlayerThing()) / 2.2;  // Get the player's weight
  61.     player        =    getlocalplayerthing();
  62.     finished     =     0;// Set this variable to false until the level is finished
  63.         finish_maze     =     1;// Set this to 1 when the player exits the dark maze
  64.         undertimelimit    =    1; 
  65.     if (getdifficulty() == 0)// +++++++++++++++++ EASY 
  66.         {
  67.         //REQUIREMENT 0 3 ability to see in the dark
  68.         if (dwCheckDroidCaps(262176))     setInv(player, 3, 1);// night vision, flood lite
  69.         //REQUIREMENT 0 2 legs
  70.         if (dwCheckDroidCaps(8)) setInv(player, 2, 1);// legs
  71.        // REQUIREMENT 0 4 droid weight: 125kg or lighter
  72.  
  73.         if (droidweight < 101)         setInv(player, 4, 1);// JUMP
  74.         
  75.  
  76.         }
  77.     if (getdifficulty() == 1)// +++++++++++++++++ MEDIUM 
  78.         {
  79.         //REQUIREMENT 1 3 flood light  
  80.         if (dwCheckDroidCaps(262144))     setInv(player, 3, 1);// Floodlite
  81.         //REQUIREMENT 1 2 legs
  82.         if (dwCheckDroidCaps(8)) setInv(player, 2, 1);// legs       
  83.         // REQUIREMENT 1 4 droid weight: 125kg or lighter
  84.           if (droidweight < 101)         setInv(player, 4, 1);// JUMP
  85.         }
  86.     if (getdifficulty() == 2)// +++++++++++++++++++HARD 
  87.         {
  88.         //REQUIREMENT 2 3 light enhancement sensor
  89.         if (dwCheckDroidCaps(32))     setInv(player, 3, 1);// NV
  90.        // REQUIREMENT 2 4 droid weight: 125kg or lighter
  91.         if (droidweight < 101)         setInv(player, 4, 1);// JUMP
  92.         //REQUIREMENT 2 5 ability to commuicate
  93.         if (dwCheckDroidCaps(1048576))     setInv(player, 5, 1);// NV
  94.         //REQUIREMENT 2 2 legs
  95.         if (dwCheckDroidCaps(8)) setInv(player, 2, 1);// legs       
  96.         //settimer(300);
  97.         }                                                                                     
  98.      return;
  99. shutdown:
  100.     return;
  101.  
  102. timer:
  103.      undertimelimit = 0;
  104.      return;
  105.  
  106. crossed:
  107.     return;
  108.      
  109. entered:
  110.     setInv(player, 1, 1);// finished maze
  111.  
  112.     if (getdifficulty() == 2)// +++++++++++++++++++HARD 
  113.         {
  114.         //if  (undertimelimit == 1)  setInv(player, 4, 1);// finished maze
  115.         }
  116.     setInv(player, 1, 1);// finished maze
  117.     print("End Level");
  118.     printint(finish_maze);
  119.     finished = 1;
  120.     return;         
  121. end
  122.  
  123.  
  124.  
  125.  
  126.