home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 April B / Pcwk4b98.iso / Gry / DARKREIG / Data / Dark / Aip / IDEasy1.aip < prev    next >
Text File  |  1997-10-28  |  7KB  |  242 lines

  1. /*****************************************************************************
  2.  
  3.   Defarley.AIP
  4.  
  5.  *****************************************************************************/
  6.  
  7. #include "aipdef.h"
  8.  
  9. // How often do we recompute the strategy?
  10. int recompute_strategy_period = 200;
  11.  
  12.  
  13. int infiltrator_period = 20;
  14.  
  15. // PRIORITIES
  16. int ground_unit_threat = 1;
  17. int threat_priority = 1;
  18. int distance_priority = -2;
  19. int defend_buildings_priority = 500;
  20. int attack_enemy_base_priority = 78;
  21. int persistence_priority = 30;
  22. int exploration_priority = 600;
  23. int scripted_priority = 0;
  24. int single_use_group_priority = 30;
  25. int perimeter_priority = 5000;
  26. int resource_priority = 400;
  27. int danger_priority = 100;  
  28. int danger_diminishment = 1;
  29.  
  30. // TROOP COMMITMENT STUFF 
  31. double min_matching_force_ratio = 1.0;
  32. double max_matching_force_ratio = 2.0;
  33.  
  34. // When generic troops are called for, what should be ratio of troops that can
  35. // shoot ground targets to troops that can shoot air targets?
  36. double generic_ground_ratio = 1.0;
  37.  
  38. int min_building_defense_force = 40;
  39. int max_building_defense_force = 100;
  40.  
  41. int min_exploration_force = 1;
  42. int max_exploration_force = 100;
  43.  
  44. int min_perimeter_force = 40;
  45. int max_perimeter_force = 70;
  46.  
  47. int min_resource_force = 100;
  48. int max_resource_force = 300;
  49.  
  50. // RELAXATION STUFF 
  51. int relaxation_cycles = 1;
  52. float relaxation_coefficient = 1.0;
  53.  
  54. // The transport we should use
  55. #define transport "ImpGroundTransporter"
  56.  
  57. // Should we repair buildings during this aip
  58. int repair_buildings = NO;
  59.  
  60.  
  61.  
  62.  
  63. ///////////////////////////////////////////////////////////////////////////////
  64. // New Construction Program stuff
  65.  
  66.  
  67. ///////////////////////////////////////////////////////////////////////////////
  68. // The UCP Data
  69. // --------------------
  70. // This specifies what type of units to build.
  71. UNIT_CONSTRUCTION_PROGRAM unit_construction_program[MAX_UCP_LENGTH];
  72.  
  73. #DATA
  74.  
  75. //   Which Account          BUDGET          BUDGET CAP
  76. //----------------------------------------------------
  77.      "Slush_fund",          UNLIMITED,      UNLIMITED;
  78.      "Base_building",       40,             4000;
  79.      "Offensive",           60,             6000;
  80.  
  81. #END_DATA
  82.  
  83.  
  84.  
  85. ///////////////////////////////////////////////////////////////////////////////
  86. // ACCOUNT NOTES.
  87. // --------------
  88. // For each line item in an account, you must specify a build type from one of
  89. // the following... NUMBER_TO_HAVE, NUMBER_TO_BUILD, RATIO_TO_BUILD, or RATIO_TO_HAVE.
  90. //
  91. // The "RATIO" items can only occur in the lowest priority level of an account.
  92. // Also, all line-items with the same priority must have the same build type
  93.  
  94.  
  95. ///////////////////////////////////////////////////////////////////////////////
  96. // Slush_fund
  97. // --------------------
  98. // This specifies the baseline super-critical account
  99.  
  100. ACCOUNT Slush_fund[MAX_ACCOUNT_LENGTH];
  101.  
  102. #DATA
  103.  
  104. //  Priority     Item Name              Build Type              Build Amount
  105. //--------------------------------------------------------------------
  106.     19,          "ih1",                  NUMBER_TO_HAVE,         1;
  107.     19,          "IMPConstructionCrew",   NUMBER_TO_HAVE,         2;
  108.  
  109.  // water collection
  110.  
  111.     18,          "implp",                 NUMBER_TO_HAVE,         1;
  112.     17,          "ImpGroundTransporter",  NUMBER_TO_HAVE,         1;
  113.  
  114.  
  115. #END_DATA
  116.  
  117.  
  118.  
  119. ///////////////////////////////////////////////////////////////////////////////
  120. // BASE_BUILDING
  121. // --------------------
  122. // How do we want to go about building our base?
  123.  
  124. ACCOUNT Base_building[MAX_ACCOUNT_LENGTH];
  125.  
  126. #DATA
  127.  
  128. //  Priority     Item Name              Build Type              Build Amount
  129. //--------------------------------------------------------------------
  130.  
  131.     // the basic base - power and troop production
  132.  
  133.     18,          "imppp",                 NUMBER_TO_HAVE,         1;
  134.     18,          "iu1",                   NUMBER_TO_HAVE,         1;
  135.  
  136.  
  137.     // factory level one,
  138.  
  139.     16,          "ic1",                  NUMBER_TO_HAVE,         1;
  140.  
  141.     // for the firestriker mad
  142.  
  143.     15,          "ih2",                  NUMBER_TO_HAVE,         1;
  144.  
  145.     // for the tachyon tank
  146.  
  147.     14,          "ic2",                  NUMBER_TO_HAVE,         1;
  148.     14,          "imppp",                NUMBER_TO_HAVE,         2;
  149.     14,          "ig",                   NUMBER_TO_HAVE,         2;
  150.  
  151.     // a defense point
  152.  
  153.     13,          "ia",                   NUMBER_TO_HAVE,         1;
  154.  
  155.     // air support facility
  156.  
  157.     12,          "ih3",                  NUMBER_TO_HAVE,         1;
  158.     12,          "iu2",                  NUMBER_TO_HAVE,         1;
  159.     12,          "impar",                NUMBER_TO_HAVE,         1;
  160.  
  161.     // Base Defense facility
  162.  
  163.     10,          "ia",                   RATIO_TO_BUILD,         4;
  164.     10,          "is",                   RATIO_TO_BUILD,         1;
  165.     10,          "imppp",                RATIO_TO_BUILD,         1;
  166.  
  167.  
  168. #END_DATA
  169.   
  170.  
  171.  
  172. ///////////////////////////////////////////////////////////////////////////////
  173. // OFFENSIVE
  174. // --------------------
  175. // What sort of offensive units and support structures do we want
  176.  
  177. ACCOUNT Offensive[MAX_ACCOUNT_LENGTH];
  178.  
  179. #DATA
  180.  
  181. //  Priority     Item Name              Build Type        Build Amount
  182. //--------------------------------------------------------------------
  183.  
  184.     5,           "IMPStrikeMarine",      RATIO_TO_BUILD,  80;
  185.     5,           "IMPFireSupportMarine", RATIO_TO_BUILD,  80;
  186.     5,           "IMPHoverMarine",       RATIO_TO_BUILD,  20;
  187.     5,           "IMPTachyonTank",      RATIO_TO_BUILD,  90;
  188.     5,           "IMPPlasmaTank",        RATIO_TO_BUILD,  30;
  189.     5,           "IMPScoutTank",         RATIO_TO_BUILD,  10;
  190.     5,           "IMPSkyFortress",       RATIO_TO_BUILD,  10;
  191.     5,           "ImpVTOL",              RATIO_TO_BUILD,  10;
  192.     5,           "IMPSPA",               RATIO_TO_BUILD,  20;
  193.  
  194. #END_DATA
  195.  
  196.  
  197.  
  198.  
  199.  
  200. ///////////////////////////////////////////////////////////////////////////////
  201. // FORCE MATCHING
  202. // --------------
  203. // Which units do we want to emphasize & target with this aip?
  204. // Note that this can be used for BOTH the AI team's unit strengths and 
  205. // the opponents'
  206. FORCE_MATCHING My_Matchings[MAX_FORCE_MATCHING];
  207.  
  208. #DATA
  209.  
  210. // Unit Name             Multiplier
  211. //----------------------------------
  212.    "FGMercenary",        1.0;
  213.    "FGSpiderBike",       1.0;
  214.  
  215. #END_DATA
  216.  
  217.  
  218. ///////////////////////////////////////////////////////////////////////////////
  219. // Unit Match-ups
  220. // --------------
  221. // When we see a unit of one of the following types, build the corresponding 
  222. // unit in the corresponding quantity
  223. UNIT_MATCH_UP My_Match_ups[MAX_BUILDINGS];
  224.  
  225. #DATA
  226.  
  227. // Enemy Unit           What to build           How many to build
  228. //------------------------------------------------------------------
  229.    "TSkyBike",           "IMPMAD",              0.5;
  230.    "TDualSkyBike",       "IMPMAD",              0.5;
  231.    "TVTOL",           "IMPMAD",              0.5;
  232.    "TSkyFortress",       "IMPMAD",              0.5;
  233.    "TReconSaucer",       "IMPMAD",              0.5;
  234.    "TFreedomFighter",  "IMPShredder",              0.05;
  235.    "TMercenary",       "IMPShredder",              0.05;
  236.    "TStrikeMarine",        "IMPShredder",       0.05;
  237.    "TFireSupportMarine",   "IMPShredder",       0.05;
  238.  
  239.  
  240.  
  241. #END_DATA
  242.