home *** CD-ROM | disk | FTP | other *** search
/ Gambler 33 A / GAMBLERCD33A.BIN / Demos / CIVILCTP / setup / data / civdemo.ctp / ctp_data / default / aidata / inputs.fli < prev    next >
Text File  |  1999-06-23  |  15KB  |  348 lines

  1. // inputs.fli
  2.  
  3.     ////////////////////////////////////////////////////////////////
  4.     ////////// WHERE IS HUMAN?  ///////////
  5.     ////////////////////////////////////////////////////////////////
  6.  
  7. input my_current_savings
  8.     right gazoodles_of_current_savings (my_current_savings, 10000.0, 0.5)
  9.  
  10. input desired_farm_pw
  11.     tri zero_desired_farm_pw (desired_farm_pw, 25.0, 25.0)
  12.  
  13. input desired_road_pw
  14.     tri zero_desired_road_pw (desired_road_pw, 25.0, 25.0)
  15.  
  16. input desired_mine_pw
  17.     tri zero_desired_mine_pw (desired_mine_pw, 25.0, 25.0)
  18.  
  19.  
  20. input current_military_readiness
  21.     tri war_footing( current_military_readiness, 2.0, 0.5)
  22.     tri peace_footing( current_military_readiness, 0.0, 0.5)
  23.     tri ready_footing( current_military_readiness, 0.0, 0.5)
  24.  
  25. input unit_to_city_best_human_ratio
  26.     tri a2to3unit_to_city_best_human_ratio(unit_to_city_best_human_ratio, 2.5, 0.5)
  27.     right aover3unit_to_city_best_human_ratio(unit_to_city_best_human_ratio, 3.0, 0.1)
  28.     right aover4unit_to_city_best_human_ratio(unit_to_city_best_human_ratio, 4.0, 0.1)
  29.  
  30. input unit_to_city_ratio
  31.     left dangerously_low_unit_to_city_ratio(unit_to_city_ratio, 3.0, 0.1)
  32.     
  33. input i_agreed_to_stop_polluting
  34.     tri yes_i_agreed_to_stop_polluting(i_agreed_to_stop_polluting, 1.0, 0.5)
  35.  
  36. input i_can_build_wormhole_probe
  37.     tri yes_i_can_build_wormhole_probe(i_can_build_wormhole_probe, 1.0, 0.5)
  38.  
  39. input can_space_settle
  40.     tri yes_can_space_settle(can_space_settle, 1.0, 0.5)
  41.  
  42. input can_sea_settle
  43.     tri yes_can_sea_settle(can_space_settle, 1.0, 0.5)
  44.  
  45. input diff_level
  46.     tri chieftain(diff_level, 0.0, 0.5)
  47.     tri warlord(diff_level, 1.0, 0.5)
  48.     tri prince(diff_level, 2.0, 0.5)
  49.     tri king(diff_level, 3.0, 0.5)
  50.     tri emporer(diff_level, 4.0, 0.5)
  51.     tri diety(diff_level, 5.0, 0.5)
  52.  
  53. output chieftain_test[0.0, 2.0] =0.0
  54.     tri yes_chieftain(chieftain_test, 1.0, 0.5)
  55.  
  56. output diety_test[0.0, 2.0] =0.0
  57.     tri yes_diety(chieftain_test, 1.0, 0.5)
  58.  
  59. if(chieftain)
  60. {
  61.     yes_chieftain
  62. }
  63.  
  64. input most_human_city_delta
  65.     tri my_cities_equal_to_human(most_human_city_delta, 0.0, 3.0)
  66.     right i_have_two_or_more_cities_than_human(most_human_city_delta, 2.0, 0.5)
  67.     right i_have_four_or_more_cities_than_human(most_human_city_delta, 4.0, 0.5)
  68.     right i_have_six_or_more_cities_than_human(most_human_city_delta, 6.0, 0.5)
  69.     right i_have_eight_or_more_cities_than_human(most_human_city_delta, 8.0, 0.5)
  70.     right i_have_ten_or_more_cities_than_human(most_human_city_delta, 10.0, 0.5)
  71.  
  72. input highest_enemy_strength_ratio
  73.     tri i_am_weaker_4x_plus_than_strongest(highest_enemy_strength_ratio, 0.15, 0.15)
  74.     tri i_am_weaker_2x_to_4x_than_strongest(highest_enemy_strength_ratio, 0.5, 0.3)
  75.     tri i_am_equal_to_strongest(highest_enemy_strength_ratio, 1.5, 0.6)
  76.     tri i_am_stronger_2x_to_4x_than_strongest(highest_enemy_strength_ratio, 3.0, 1.0)
  77.     right i_am_stronger_4x_plus_than_strongest(highest_enemy_strength_ratio, 5.0, 1.0)
  78.  
  79. input highest_human_enemy_strength_ratio
  80.     tri i_am_weaker_4x_plus_than_strongest_human(highest_human_enemy_strength_ratio, 0.15, 0.15)
  81.     tri i_am_weaker_2x_to_4x_than_strongest_human(highest_human_enemy_strength_ratio, 0.5, 0.3)
  82.     tri i_am_equal_to_strongest_human(highest_human_enemy_strength_ratio, 1.5, 0.6)
  83.     tri i_am_stronger_2x_to_4x_than_strongest_human(highest_human_enemy_strength_ratio, 3.0, 1.0)
  84.     right i_am_stronger_4x_plus_than_strongest_human(highest_human_enemy_strength_ratio, 5.0, 1.0)
  85.  
  86. input total_enemy_strength_ratio
  87.     tri i_am_weaker_4x_plus_than_total_enemies(total_enemy_strength_ratio, 0.15, 0.15)
  88.     tri i_am_weaker_2x_to_4x_than_total_enemies(total_enemy_strength_ratio, 0.5, 0.3)
  89.     tri i_am_equal_to_total_enemies(total_enemy_strength_ratio, 1.5, 0.6)
  90.     tri i_am_stronger_2x_to_4x_than_total_enemies(total_enemy_strength_ratio, 3.0, 1.0)
  91.     right i_am_stronger_4x_plus_than_total_enemies(total_enemy_strength_ratio, 5.0, 1.0)
  92.  
  93. input allies_vs_enemies_strength_ratio
  94.     tri allies_weaker_4x_plus_than_total_enemies(allies_vs_enemies_strength_ratio, 0.15, 0.15)
  95.     tri allies_weaker_2x_to_4x_than_total_enemies(allies_vs_enemies_strength_ratio, 0.5, 0.3)
  96.     tri allies_equal_to_total_enemies(allies_vs_enemies_strength_ratio, 1.5, 0.6)
  97.     tri allies_stronger_2x_to_4x_than_total_enemies(allies_vs_enemies_strength_ratio, 3.0, 1.0)
  98.     right allies_stronger_4x_plus_than_total_enemies(allies_vs_enemies_strength_ratio, 5.0, 1.0)
  99.  
  100. input most_human_adv_known_delta
  101.     tri i_know_5plus_more_than_human(most_human_adv_known_delta, -50.0, 45.0)
  102.     tri i_know_5plus_less_than_human(most_human_adv_known_delta, 50.5, 45.0)
  103.  
  104. input ratio_advance_cost_me_to_best_human
  105.     tri lots_more_advanced_than_best_human(ratio_advance_cost_me_to_best_human, 4.0, 1.0)
  106.     tri more_advanced_than_best_human(ratio_advance_cost_me_to_best_human, 2.5, 1.0)
  107.     tri equally_advanced_to_best_human(ratio_advance_cost_me_to_best_human, 1.2, 0.3)
  108.     tri less_advanced_than_best_human(ratio_advance_cost_me_to_best_human, 0.6, 0.3)
  109.     tri lots_less_advanced_than_best_human(ratio_advance_cost_me_to_best_human, 0.15, 0.15)
  110.  
  111. input ratio_advance_cost_me_to_best_other
  112.     tri lots_more_advanced_than_best_other(ratio_advance_cost_me_to_best_other, 4.0, 1.0)
  113.     tri more_advanced_than_best_other(ratio_advance_cost_me_to_best_other, 2.5, 1.0)
  114.     tri equally_advanced_to_best_other(ratio_advance_cost_me_to_best_other, 1.2, 0.3)
  115.     tri less_advanced_than_best_other(ratio_advance_cost_me_to_best_other, 0.6, 0.3)
  116.     tri lots_less_advanced_than_best_other(ratio_advance_cost_me_to_best_other, 0.15, 0.15)
  117.  
  118. input distance_to_nearest_human_capitol
  119.     tri human_capitol_ten_or_less(distance_to_nearest_human_capitol, 5.0, 4.5)
  120.     tri human_capitol_ten_to_fifteen(distance_to_nearest_human_capitol, 11.5, 4.0)
  121.     right human_capitol_twenty_or_more(distance_to_nearest_human_capitol, 20.0, 1.0)
  122.  
  123. input public_works
  124.     left asub500_public_works(public_works, 500.0, 10.0)
  125.     tri    a100to300_public_works(public_works, 200.0, 100.0)
  126.     tri    a250to500_public_works(public_works, 375.0, 125.0)
  127.     tri    a500to1000_public_works(public_works, 750.0, 250.0)
  128.     tri    a1000to1500_public_works(public_works, 1250.0, 250.0)
  129.     tri    a1400to2400_public_works(public_works, 1900.0, 500.0)
  130.     tri    a2000to4000_public_works(public_works, 3000.0, 1000.0)
  131.     tri    a3000to6000_public_works(public_works, 4500.0, 1500.0)
  132.     right aover5000_public_works(public_works, 5100.0, 150.0)
  133.     right aover10000_public_works(public_works, 10100.0, 150.0)
  134.  
  135. input count
  136.     tri low_count(count, 5.0, 5.0)
  137.     tri med_count(count, 10.0, 5.0)
  138.     tri high_count(count, 15.0, 5.0)
  139.     tri reddog1_count(count, 3.0, 0.5)
  140.     tri reddog2_count(count, 7.0, 0.5)
  141.     tri reddog3_count(count, 10.0, 0.5)
  142.     tri reddog4_count(count, 19.0, 0.5)
  143.     tri farm_count(count, 10.0, 0.5)
  144.     
  145. input longest_war
  146.     tri start_war(longest_war, 2.5, 2.0)
  147.     tri phase1_war(longest_war, 2.5, 2.5) // gather
  148.     tri phase2_war(longest_war, 15.0, 10.0) // attack
  149.     tri phase3_war(longest_war, 45.0, 10.0) // retreat
  150.     tri phase4_war(longest_war, 65.0, 10.0) // attack
  151.     tri phase5_war(longest_war, 85.0, 10.0) // retreat
  152.     right endless_war(longest_war, 90.0, 5.0) // go back to more standard tactics
  153.  
  154. input shortest_peace
  155.     tri zero_length_peace(shortest_peace, 0.0, 0.5)
  156.     tri a0to5_peace(shortest_peace, 5.0, 5.0)
  157.     tri a5to15_peace(shortest_peace, 10.0, 5.0)
  158.     tri a10to20_peace(shortest_peace, 15.0, 5.0)
  159.     right a20plus_peace(shortest_peace, 20.0, 5.0)
  160.  
  161. input lowest_unit_regard
  162.     tri hot_war_with_most_hostile(lowest_unit_regard, 10.0, 9.0)
  163.     tri hot_war_prep_with_most_hostile(lowest_unit_regard, 23.5, 3.0)
  164.     tri cold_war_with_most_hostile(lowest_unit_regard, 30.0, 9.5)
  165.     tri cold_war_prep_with_most_hostile(lowest_unit_regard, 43.5, 3.0)
  166.     tri peace_parital_with_most_hostile(lowest_unit_regard, 55.0, 15.0)
  167.     tri peace_with_most_hostile(lowest_unit_regard, 90.0, 15)
  168.  
  169. input total_military_incursions
  170.     tri no_incursions(total_military_incursions, 0.0, 0.1)
  171.     tri one_incursion(total_military_incursions, 1.0, 0.1)
  172.     tri few_incursions(total_military_incursions, 3.0, 1.9)
  173.     right many_incursions(total_military_incursions, 6.0, 1.0)
  174.  
  175. // set the military readiness costs
  176. input percent_cost_readiness
  177.     tri cheap_army_pcr(percent_cost_readiness, 0.10, 0.1)
  178.     tri getting_costly_army_pcr(percent_cost_readiness, 0.20, 0.1)
  179.     tri costly_army_pcr(percent_cost_readiness, 0.30, 0.1)
  180.     right ouch_army_pcr(percent_cost_readiness, 0.4, 0.1)
  181.  
  182. // how many people am I fighting
  183. input at_war_count
  184.     tri zero_at_war(at_war_count, 0.0, 0.5)
  185.     tri one_at_war(at_war_count, 1.0, 0.5)
  186.     tri two_at_war(at_war_count, 2.0, 0.5)
  187.     tri three_at_war(at_war_count, 3.0, 0.5)
  188.     tri four_at_war(at_war_count, 4.0, 0.5)
  189.     tri five_at_war(at_war_count, 5.0, 0.5)
  190.     tri six_at_war(at_war_count, 6.0, 0.5)
  191.  
  192. input land_continents_full
  193.     left empty_continent(land_continents_full, 0.1, 0.3)
  194.     tri average_continent(land_continents_full, 0.4, 0.2)
  195.     right full_continent(land_continents_full, 0.75, 0.1)
  196.  
  197. input land_continents_full_of_friends
  198.     left empty_continent_except_friends(land_continents_full_of_friends, 0.1, 0.3)
  199.     tri average_continent_except_friends(land_continents_full_of_friends, 0.4, 0.2)
  200.     right full_continent_except_friends(land_continents_full_of_friends, 0.75, 0.1)
  201.  
  202. input percent_wages_needed_content
  203.     tri zero_percent_wages_needed_content(percent_wages_needed_content, 0.0, 0.05)
  204.     tri ten_percent_wages_needed_content(percent_wages_needed_content, 0.1, 0.05)
  205.     tri twenty_percent_wages_needed_content(percent_wages_needed_content, 0.2, 0.05)
  206.     tri thirty_percent_wages_needed_content(percent_wages_needed_content, 0.3, 0.05)
  207.     tri fourty_percent_wages_needed_content(percent_wages_needed_content, 0.4, 0.05)
  208.     tri fifty_percent_wages_needed_content(percent_wages_needed_content, 0.5, 0.05)
  209.     tri sixty_percent_wages_needed_content(percent_wages_needed_content, 0.6, 0.05)
  210.     tri seventy_percent_wages_needed_content(percent_wages_needed_content, 0.7, 0.05)
  211.     tri eighty_percent_wages_needed_content(percent_wages_needed_content, 0.8, 0.05)
  212.     tri ninety_percent_wages_needed_content(percent_wages_needed_content, 0.9, 0.05)
  213.     right max_percent_wages_needed_content(percent_wages_needed_content, 1.0, 0.05)
  214.  
  215. input city_delta
  216.     tri neg3minus_city_delta(city_delta, -15.0, 12.0)
  217.     tri neg3toneg1_city_delta(city_delta, -2.0, 1.0)
  218.     tri neg3topos3_city_delta(city_delta, 0.0, 3.0)
  219.     tri neg2topos2_city_delta(city_delta, 0.0, 2.0)
  220.     tri neg2topos4_city_delta(city_delta, 1.0, 3.0)
  221.     right pos3plus_city_delta(city_delta, 20.0, 17.0)
  222.  
  223. input num_cities
  224.     left no_num_cities(num_cities, 0.0, 1.0)
  225.     tri a1_num_cities(num_cities, 1.0, 0.5)
  226.     tri a2to3_num_cities(num_cities, 2.5, 0.6)
  227.     tri a2_num_cities(num_cities, 2.0, 0.5)
  228.     tri a1to5_num_cities(num_cities, 3.0, 2.5)
  229.     tri a1to7_num_cities(num_cities, 4.0, 3.5)
  230.     tri a3to5_num_cities(num_cities, 4.0, 1.5)
  231.     tri a3to7_num_cities(num_cities, 5.0, 2.0)
  232.     tri a5to9_num_cities(num_cities, 7.0, 2.0)
  233.     tri a7to11_num_cities(num_cities, 9.0, 2.0)
  234.     tri a9to13_num_cities(num_cities, 11.0, 2.0)
  235.     tri a11to15_num_cities(num_cities, 13.0, 2.0)
  236.     tri a13to17_num_cities(num_cities, 15.0, 2.0)
  237.     tri a15to19_num_cities(num_cities, 17.0, 2.0)
  238.     tri a17to21_num_cities(num_cities, 19.0, 2.0)
  239.     tri a19to23_num_cities(num_cities, 21.0, 2.0)
  240.     tri a21to25_num_cities(num_cities, 23.0, 2.0)
  241.     tri a23to27_num_cities(num_cities, 25.0, 2.0)
  242.     right averybig_num_cities(num_cities, 27.0, 2.0)
  243.     tri a5to25_num_cities(num_cities, 15, 10.0)
  244.     tri a10to25_num_cities(num_cities, 17.5, 7.5)
  245.     tri a1to9_num_cities(num_cities, 5.0, 4.5)
  246.     right giant_num_cities(num_cities, 30.0, 5.0)
  247.  
  248. input time
  249.     tri first_turn(time, 0.0, 0.1)
  250.     left ancient_time(time, 40.0, 40.0) 
  251.     right future_time(time, 250, 5.0)
  252.     tri a0to15_turns(time, 7.5, 7.5)
  253.     right a35_or_more_turns(time, 35.0, 0.1)
  254.     tri a0to100_turns(time, 50.0, 50.0)
  255.     tri a0to200_turns(time, 100.0, 101.0)
  256.     tri a0to150_turns(time, 75.0, 75.0)
  257.     tri a100to200_turns(time, 150.0, 50.0)
  258.     tri a100to150_turns(time, 125.0, 25.0)
  259.     tri a150to200_turns(time, 175.0, 25.0)
  260.     tri a0to50_turns(time, 25.0, 25.0)
  261.     tri a50to200_turns(time, 125.0, 75.0)
  262.     tri a200to300_turns(time, 250.0, 50.0)
  263.     tri a175to275_turns(time, 225, 75.0)
  264.     tri medieval_time(time, 120.0, 45.0) 
  265.     tri renaissance_time(time, 200, 45.0) 
  266.     tri industrial_time(time, 280, 45.0) 
  267.     tri information_time(time, 360, 45.0)
  268.     tri genetic_time(time, 300, 75.0) 
  269.     right aover300_turns(time, 310, 10.0)
  270.     right a200plus_turns(time, 210.0, 10.0)
  271.     right diamond_time(time, 400, 50.0)
  272.     right not_ancient_time(time, 100, 5.0)
  273.  
  274. output opening_gambit_time[0.0, 2.0] = 0.0
  275.     tri yes_opening_gambit_time(opening_gambit_time, 1.0, 0.5)
  276.  
  277.     if(ancient_time)
  278.     {
  279.         yes_opening_gambit_time
  280.     }
  281.  
  282. input size_of_world
  283.     tri a24_48_map(size_of_world, 1152, 250.0)
  284.     tri a32_64_map(size_of_world, 2048, 250.0)
  285.     tri a48_96_map(size_of_world, 4608, 250.0)
  286.     tri a64_128_map(size_of_world, 1152, 250.0)
  287.     tri a70_140_map(size_of_world, 8192, 250.0)
  288.  
  289. input wgf_prod_setting
  290. input wgf_gold_setting 
  291.  
  292. input wgf_food_setting
  293.     tri lowest_wgf_food(wgf_food_setting, -2.0, 0.5)
  294.     tri low_wgf_food(wgf_food_setting, -1.0, 0.5)
  295.     tri average_wgf_food(wgf_food_setting, 0.0, 0.5)
  296.     tri high_wgf_food(wgf_food_setting, 1.0, 0.5)
  297.     tri highest_wgf_food(wgf_food_setting, 2.0, 0.5)
  298.  
  299. input income_expense_cleric
  300. input income_expense_crime
  301. input income_expense_maintenance
  302. input income_expense_wages
  303. input income_expense_science
  304. input income_expense_savings 
  305.     tri dangerously_low_income_expense_savings(income_expense_savings, 0.15, 0.15)
  306.  
  307. input gold_and_wage_percent_cost
  308.     right dangerously_high_gold_and_wages_cost(gold_and_wage_percent_cost, 0.8, 0.1)
  309.  
  310. input save_expense_overtime
  311. input sci_ave_turns_to_advance 
  312.  
  313. input overall_threat
  314. input income_expense_cleric
  315. input income_expense_crime
  316. input income_expense_maintenance
  317. input income_expense_wages
  318. input income_expense_science
  319. input income_expense_savings 
  320. input save_expense_overtime
  321.  
  322. input sci_ave_turns_to_advance 
  323.     left fast_fast_science (sci_ave_turns_to_advance, 1.0, 1.0)
  324.     tri fast_science (sci_ave_turns_to_advance, 3.0, 1.5)
  325.     tri ave_science (sci_ave_turns_to_advance, 4.0, 1.5)
  326.     tri slow_science (sci_ave_turns_to_advance, 6.0, 1.5)
  327.     right slow_slow_science (sci_ave_turns_to_advance, 9.0, 2.0)
  328.  
  329. input power_ratio 
  330.     tri strong_strong_power_ratio(power_ratio, 0.3, 0.2)
  331.     tri strong_power_ratio(power_ratio, 0.4, 0.4)
  332.     tri even_power_ratio(power_ratio, 1.0, 0.4)
  333.     tri pretty_even_power_ratio(power_ratio, 2.0, 1.0)
  334.     tri weak_power_ratio(power_ratio, 4.0, 2.0)
  335.     right weak_weak_power_ratio(power_ratio, 6.0, 2.0)
  336.  
  337. input total_pop_size
  338.     tri one_total_pop(total_pop_size, 1.0, 0.25)
  339.     tri two_total_pop(total_pop_size, 2.0, 0.25)
  340.  
  341. input num_players_in_game
  342.     tri three_players(num_players_in_game, 3.0, 0.5)
  343.     tri four_players(num_players_in_game, 4.0, 0.5)
  344.     tri five_players(num_players_in_game, 5.0, 0.5)
  345.     tri six_players(num_players_in_game, 6.0, 0.5)
  346.     tri seven_players(num_players_in_game, 7.0, 0.5)
  347.     tri eight_players(num_players_in_game, 8.0, 0.5)
  348.