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

  1. # Droids Cog Script
  2. #
  3. # D0_skyway.cog
  4. #
  5. # Goals for catapult 
  6. #
  7. #
  8. #
  9. # [MT]                                              
  10. #
  11. #
  12. # (C) 1997 LucasLearningLimited. All Rights Reserved
  13.  
  14.  
  15.  
  16. symbols                     
  17. message        startup
  18.  
  19. //message        user0          #player has fixed generator once
  20. message        user1          #player has retrieved info crystal
  21.  
  22. end
  23.  
  24. ## Code Section
  25. code    
  26.  
  27. startup:
  28.      player=getlocalplayerthing();     
  29.      if (dwCheckDroidCaps(1048576)!=0) SetInv(player, 3, 1);       
  30.      if (dwCheckDroidCaps(524288)!=0) SetInv(player, 2, 1);       
  31.      if ( (dwCheckDroidCaps(32)!=0)||(dwCheckDroidCaps(262144)!=0) )SetInv(player, 5, 1); 
  32.      if (dwCheckDroidCaps(2048)!=0) SetInv(player, 7, 1);
  33.      if (dwGetArmstrength() > 8) SetInv(player, 6, 1);       //arm strength 130 or greater
  34. //     if (dwGetArmStrength() > 6) SetInv(player, 6, 1);       
  35.      return;
  36.      
  37. //user0:
  38. //     SetInv(player, 3, 1);  #player has fixed generator
  39. //     return;
  40.      
  41. user1:
  42.      SetInv(player, 4, 1); #player has retrieved crystal
  43.      return;
  44.      
  45.  
  46.                  
  47. end
  48.  
  49.  
  50.  
  51.  
  52.