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

  1. //////////////////////////////////////////////
  2. //// BEGIN TURN DIPLOMACY FOR BARBARIANS//////
  3. //////////////////////////////////////////////    
  4.  
  5. fuzzy_begin_diplomacy {
  6. // begin turn processing once for each foreign player
  7. input military_incursions
  8. left no_incursions(military_incursions, 0, 0.5)
  9. tri few_incursions(military_incursions, 1, 0.1)
  10. tri many_incursions(military_incursions, 3, 0.5)
  11. right floods_incursions(military_incursions, 4, 0.5)
  12.  
  13. input his_hotwar_attacked_me // How many times he's ever attacked
  14. left hasnt_attacked_me(his_hotwar_attacked_me, 0, 0.2)
  15. tri once_attacked_me(his_hotwar_attacked_me, 1, 0.5)
  16. right often_attacked_me(his_hotwar_attacked_me, 2, 0.5)
  17.  
  18. output his_hotwar_attacked_me_decay [0, 1.0] = 0.6
  19.  
  20. input last_attacked_me // the number of turns since he last attacked
  21. tri attacked_recently(last_attacked_me, 2, 2)
  22. tri attacked_not_long_ago(last_attacked_me, 4, 2)
  23. right attacked_long_ago(last_attacked_me, 8, 4)
  24.  
  25. input diplomatic_regard_towards_him
  26. left hate_him(diplomatic_regard_towards_him, 10, 10)
  27. tri dislike_him(diplomatic_regard_towards_him, 30, 10)
  28. tri neutral_towards_him(diplomatic_regard_towards_him, 50, 10)
  29. tri neutral_or_better_towards_him(diplomatic_regard_towards_him, 60, 10)
  30. tri like_him(diplomatic_regard_towards_him, 70, 10)
  31. right love_him(diplomatic_regard_towards_him, 90, 10)
  32.  
  33. output diplomatic_regard_delta[-20, 20] = -20 
  34. tri loath_him_more(diplomatic_regard_delta, -10, 10.0)
  35. tri hate_him_more(diplomatic_regard_delta, -8, 4.0)
  36. tri dislike_him_more(diplomatic_regard_delta, -5, 2.0)
  37. tri wary_of_him_more(diplomatic_regard_delta, -3, 1.0)
  38. tri same_like_him(diplomatic_regard_delta, 0, 1.0)
  39. tri like_him_more(diplomatic_regard_delta, 2, 1.0)
  40. tri love_him_more(diplomatic_regard_delta, 5, 2.0)
  41. right worship_him_more(diplomatic_regard_delta, 8, 4)
  42.  
  43. output unit_regard_delta[-100, 100] = -100.0
  44. tri go_to_hot_war(unit_regard_delta,10, 40.0)
  45. tri go_to_hot_war_prep(unit_regard_delta,25, 10.0)
  46. tri go_to_cold_war(unit_regard_delta, 35, 10.0)
  47. tri go_to_cold_war_prep(unit_regard_delta, 50, 5.0)
  48. tri go_to_peace_partial(unit_regard_delta, 60, 5.0)
  49. tri go_to_peace_full(unit_regard_delta, 80, 10.0)
  50. //official relations rules
  51.  
  52. }
  53. //end fuzzy_begin_diplomacy
  54.  
  55.  
  56. //////////////////////////////////////////////
  57. //////// PRE INCOMING DIPLOMACY //////////////
  58. //////////////////////////////////////////////    
  59.  
  60. fuzzy_pre_incoming_diplomacy diplomacy_label { 
  61.  
  62. // this determines whether or not AI accepts messages
  63.  
  64. input his_message_tone
  65. left hostile_message(his_message_tone, 1, 1)
  66. tri neutral_message(his_message_tone,  2, 1)
  67. right friendly_mesnsage(his_message_tone, 3, 1)
  68.  
  69. input his_hotwar_attacked_me // How many times he's ever attacked
  70. left hasnt_attacked_me(his_hotwar_attacked_me, 0, 0.5)
  71. tri once_attacked_me(his_hotwar_attacked_me, 1, 0.5)
  72. right often_attacked_me(his_hotwar_attacked_me, 2, 0.5)
  73.  
  74. output accept_threshold[0, 1000] = 1000
  75. left always_accept_message (accept_threshold, 0, 200);
  76. tri definitely_accept_message(accept_threshold, 250, 100);
  77. tri possibly_accept_message(accept_threshold, 500, 100);
  78. tri rarely_accept_message(accept_threshold, 750, 100);
  79. right never_accept_message(accept_threshold, 1000, 200);
  80.  
  81. input diplomatic_regard_towards_him
  82. left hate_him(diplomatic_regard_towards_him, 10, 10)
  83. tri dislike_him(diplomatic_regard_towards_him, 30, 10)
  84. tri neutral_towards_him(diplomatic_regard_towards_him, 50, 10)
  85. tri neutral_or_better_towards_him(diplomatic_regard_towards_him, 60, 10)
  86. tri like_him(diplomatic_regard_towards_him, 70, 10)
  87. right love_him(diplomatic_regard_towards_him, 90, 10)
  88.  
  89. //new regard modifier
  90. output diplomatic_regard_delta[-20, 20] = -20.0
  91. tri loath_him_more(diplomatic_regard_delta, -10, 10.0)
  92. tri hate_him_more(diplomatic_regard_delta, -8, 4.0)
  93. tri dislike_him_more(diplomatic_regard_delta, -5, 2.0)
  94. tri wary_of_him_more(diplomatic_regard_delta, -3, 1.0)
  95. tri same_like_him(diplomatic_regard_delta, 0, 1.0)
  96. tri like_him_more(diplomatic_regard_delta, 2, 1.0)
  97. tri love_him_more(diplomatic_regard_delta, 5, 2.0)
  98. right worship_him_more(diplomatic_regard_delta, 8, 4)
  99.     
  100. output gold_utility[0,10] = 10
  101.  
  102. input military_incursions
  103. left no_incursions(military_incursions, 0, 0.2)
  104. tri few_incursions(military_incursions, 2, 1.5)
  105. right many_incursions(military_incursions, 3, 1)
  106.  
  107. output give_advance [0, 2] = 1.0
  108. right yes_give_adv(give_advance, 0, 0.5)
  109. tri maybe_give_adv(give_advance, 0.5, 0.25)
  110. left no_way_give_adv(give_advance, 1.0, 0.5) 
  111.  
  112. // Production produced by the city we're considering asking for
  113. input projected_production
  114. right gains_production(projected_production, 20, 15)
  115.  
  116. input he_gains_advance
  117. right his_advance(he_gains_advance, 1, .5)
  118.  
  119. input he_gains_city
  120. right gives_him_city(he_gains_city, 1, .5)
  121.     
  122. input relative_strength
  123. left terrified_of_him(relative_strength, 0.1, 0.2) 
  124. tri afraid_of_him(relative_strength, 0.5, 0.25)
  125. tri equal_to_him(relative_strength, 1, 0.2)
  126. right stronger_than_him(relative_strength, 2.5, 0.25)
  127.  
  128.         if(once_attacked_me or often_attacked_me) 
  129.         {
  130.             very rarely_accept_message;
  131.         }
  132.  
  133. //love at first sight
  134. input contact_gained
  135. right gives_contact_gained(contact_gained, 1.0, 0.5)
  136.  
  137.         if(gives_contact_gained and not hate_him) 
  138.         {
  139.             definitely_accept_message
  140.             like_him_more
  141.         }
  142.  
  143. //demand advances 
  144. input he_gains_advance
  145. right yes_he_gains_advance(he_gains_advance, 1.0, 0.5)
  146.     
  147.         if(yes_he_gains_advance and terrified_of_him) 
  148.         {
  149.             possibly_accept_message
  150.             wary_of_him_more
  151.             maybe_give_adv
  152.         } 
  153.  
  154. //demand gold
  155. input he_gains_gold
  156. right gives_him_gold(he_gains_gold, 1, .5)
  157.  
  158.         if(gives_him_gold and (love_him or terrified_of_him)) 
  159.         {
  160.             possibly_accept_message
  161.             dislike_him_more
  162.         }
  163. //demand map
  164. input he_gets_map
  165. right gives_him_map(he_gets_map, 1, .5)
  166.  
  167.         if(gives_him_map and terrified_of_him) 
  168.         {
  169.             possibly_accept_message
  170.             dislike_him_more
  171.         }
  172.  
  173. //demand leave lands
  174. input i_will_leave_his_lands
  175. right im_leaving(i_will_leave_his_lands, 1, 0.5)
  176.  
  177.         if(im_leaving and love_him and afraid_of_him)
  178.         {
  179.             possibly_accept_message
  180.             hate_him_more
  181.         }
  182.  
  183.  
  184.         if(im_leaving and terrified_of_him)
  185.         {
  186.             definitely_accept_message
  187.             dislike_him_more
  188.         } 
  189.  
  190. //demand reduce pollution
  191. input his_pollution_level
  192. left low_his_pollution(his_pollution_level, 50.0, 5.0)
  193. tri average_his_pollution(his_pollution_level, 100.0, 50.0)
  194. right high_his_pollution(his_pollution_level, 200.0, 75.0)
  195.  
  196. input my_pollution_level
  197. left low_my_pollution(my_pollution_level, 50.0, 5.0)
  198. tri average_my_pollution(my_pollution_level, 100.0, 50.0)
  199. right high_my_pollution(my_pollution_level, 200.0, 75.0)
  200.  
  201. input global_pollution_level
  202. left low_global_pollution(global_pollution_level, 500.0, 5.0)
  203. tri average_global_pollution(global_pollution_level, 1000.0, 500.0)
  204. right high_global_pollution(global_pollution_level, 2000.0, 1000.0)
  205.  
  206. output reduce_pollution_utility[0,1.0]=0  
  207. left cant_reduce_pollution(reduce_pollution_utility, 0.1, 0.05)
  208. tri maybe_reduce_pollution(reduce_pollution_utility, 0.5, 0.25)
  209. right yes_reduce_pollution(reduce_pollution_utility, 1.0, 0.25)
  210.  
  211. //determine extent of global pollution
  212.     if(low_global_pollution)
  213.     {
  214.         cant_reduce_pollution
  215.     }
  216.     
  217.     if(average_global_pollution)
  218.     {
  219.         maybe_reduce_pollution
  220.     }
  221.     if(high_global_pollution)
  222.     {
  223.         yes_reduce_pollution
  224.     }
  225.  
  226.         if(high_my_pollution and love_him and afraid_of_him)
  227.         {
  228.             possibly_accept_message
  229.             dislike_him_more
  230.         }
  231.  
  232.         if(high_my_pollution and terrified_of_him)
  233.         {
  234.             definitely_accept_message
  235.             hate_him_more
  236.         }
  237.  
  238. //demand stop piracy
  239. //this won't work yet
  240. input i_will_stop_piracy
  241. right stop_piracy (i_will_stop_piracy, 1.0, 0.5)
  242.  
  243.         if(stop_piracy and love_him and afraid_of_him)
  244.         {
  245.             possibly_accept_message
  246.             dislike_him_more
  247.         }
  248.  
  249. // demand stop trade 
  250. input his_trade_with_third_party
  251. left no_trade_with_third(his_trade_with_third_party, 0, 0.1)
  252. tri some_trade_with_third_party(his_trade_with_third_party, 2, 1)
  253. right much_trade_with_third_party(his_trade_with_third_party, 5, 2)
  254.  
  255. input third_party_regard
  256. left low_third_party_regard(third_party_regard, 20, 10)
  257. right high_third_party_regard(third_party_regard, 80, 10)
  258. tri neutral_third_party_regard(third_party_regard, 50, 25)
  259.  
  260. input stops_trade_with_third_party
  261. right does_stop_third_party_trade(stops_trade_with_third_party, 1, .5)
  262.  
  263. output trade_utility [0, 1000] = 1000
  264. left ok_i_stop (trade_utility, 0, 100)
  265. tri maybe_i_stop (trade_utility, 500, 250)
  266. right no_way_jose (trade_utility, 1000, 250)
  267.  
  268.     if(love_him)
  269.     {
  270.         ok_i_stop
  271.     }
  272.         
  273.     if(like_him or neutral_or_better_towards_him or neutral_towards_him)
  274.     {
  275.         maybe_i_stop    
  276.     }
  277.         
  278.     if(dislike_him or hate_him)
  279.     {
  280.         no_way_jose
  281.     }
  282.  
  283.         if(does_stop_third_party_trade and love_him and afraid_of_him and low_third_party_regard and         some_trade_with_third_party)
  284.         {
  285.             possibly_accept_message
  286.             hate_him_more
  287.         }
  288.  
  289.         if(does_stop_third_party_trade and no_trade_with_third)
  290.         {        
  291.             definitely_accept_message
  292.             dislike_him_more
  293.         }
  294.             
  295. //demand attack enemy
  296. input i_will_attack_third_party
  297. right i_attack_enemy (i_will_attack_third_party, 1.0, 0.5)
  298.  
  299. // = his_strength / third_party_strength 
  300. input his_third_party_relative_strength
  301. left he_is_weaker_than_3rd(his_third_party_relative_strength, 0.5, 0.25)
  302. tri he_is_same_as_3rd(his_third_party_relative_strength, 1.0, 0.2)
  303. right he_is_stronger_than_3rd(his_third_party_relative_strength, 4.0, 3.0)
  304.  
  305. // = my_strength / third_party_strength
  306. input third_party_relative_strength
  307. left i_am_weaker_than_3rd(third_party_relative_strength, 0.5, 0.25)
  308. tri i_am_same_as_3rd(third_party_relative_strength, 1.0, 0.2)
  309. right i_am_stronger_than_3rd(third_party_relative_strength, 4.0, 3.0)
  310.  
  311.         if(i_attack_enemy and i_am_weaker_than_3rd)
  312.         {
  313.             definitely_accept_message
  314.         }
  315.  
  316.         if(i_attack_enemy and love_him and he_is_weaker_than_3rd)
  317.         {
  318.             possibly_accept_message
  319.         }
  320.  
  321.         if(i_attack_enemy and love_him and he_is_stronger_than_3rd and i_am_stronger_than_3rd)
  322.         {
  323.             definitely_accept_message
  324.             dislike_him_more
  325.         }
  326.  
  327. // exchange advance begin
  328. input i_gain_advance
  329. right yes_i_gain_advance(i_gain_advance, 1.0, .5)
  330.  
  331.         if(yes_he_gains_advance and yes_i_gain_advance and (like_him or love_him))
  332.         {
  333.             possibly_accept_message
  334.         }
  335.  
  336. //exchange map    
  337. input last_got_map
  338. right got_map_centuries_ago(last_got_map, 30, 10)
  339.  
  340. input i_gain_map
  341. right yes_i_gain_map(i_gain_map, 1.0, 0.5)
  342.  
  343.  
  344.         if((gives_him_map and yes_i_gain_map) and (like_him or love_him) and afraid_of_him)
  345.         {
  346.             possibly_accept_message
  347.         }
  348.  
  349.         if((gives_him_map and yes_i_gain_map) and got_map_centuries_ago and not(hate_him or dislike_him))
  350.         {
  351.             definitely_accept_message
  352.             like_him_more
  353.         }
  354.  
  355. //offer advance
  356.  
  357.         if(yes_i_gain_advance and not hate_him)
  358.         {
  359.             definitely_accept_message
  360.             like_him_more
  361.         }
  362.     
  363. //offer gold
  364. input gold_gained
  365. tri gains_gold(gold_gained, 0.2, 0.05)
  366. tri gains_much_gold(gold_gained, 1.0, 0.5)
  367. tri gains_a_whole_lotta_gold(gold_gained, 2.0, 0.5)
  368. right gains_incredible_gold(gold_gained, 5.0, 2.0)
  369.  
  370.         if(gains_gold) 
  371.         {
  372.             possibly_accept_message
  373.             love_him_more
  374.         } 
  375.  
  376.         if(gains_much_gold)     
  377.         {
  378.             possibly_accept_message
  379.             love_him_more 
  380.         }
  381.     
  382.         if(gains_a_whole_lotta_gold)
  383.         {
  384.             definitely_accept_message
  385.             love_him_more
  386.         }
  387.  
  388.         if(gains_incredible_gold) 
  389.         {
  390.             definitely_accept_message
  391.             worship_him_more
  392.         }
  393.  
  394. //offer map
  395.  
  396.         if(yes_i_gain_map and not hate_him) 
  397.         {
  398.             definitely_accept_message
  399.             like_him_more
  400.         }
  401.  
  402. //offer cease fire
  403. input gains_cease_fire
  404. right does_gain_cease_fire(gains_cease_fire, 1, .5)
  405.  
  406.         if(does_gain_cease_fire and not afraid_of_him) 
  407.         {
  408.             possibly_accept_message
  409.         }
  410.  
  411.         if(does_gain_cease_fire and afraid_of_him) 
  412.         {
  413.             definitely_accept_message
  414.             like_him_more
  415.         }
  416.  
  417. //offer permanent alliance
  418. input gains_alliance
  419. right does_gain_alliance(gains_alliance, 1, .5)
  420.  
  421. output alliance[0,1] = 0
  422. right no_alliance(alliance, 0, 0.2)
  423. tri perchance_alliance(alliance, 0.5, 0.25)
  424. left married(alliance, 1.0, 0.25)
  425.  
  426.     if(hate_him or dislike_him)
  427.     {
  428.         no_alliance
  429.     }
  430.  
  431.     if(neutral_towards_him or neutral_or_better_towards_him)
  432.     {
  433.         perchance_alliance
  434.     }
  435.  
  436.     if(like_him or love_him)
  437.     {
  438.         married
  439.     }
  440.  
  441.  
  442.         if(does_gain_alliance and terrified_of_him) 
  443.         {
  444.             definitely_accept_message
  445.         }
  446.  
  447.         if(does_gain_alliance and afraid_of_him)
  448.         {
  449.             possibly_accept_message
  450.         }
  451.  
  452.         if(does_gain_alliance and equal_to_him) 
  453.         {
  454.             rarely_accept_message
  455.         }
  456.  
  457. // offer ecopact 
  458. input end_pollution_pact
  459. right yes_end_pollution_pact(end_pollution_pact, 1.0, 0.5)
  460.  
  461.         if(yes_end_pollution_pact and (like_him or love_him) and high_my_pollution and high_his_pollution)
  462.         {
  463.             possibly_accept_message
  464.         }
  465.  
  466. }
  467. //end fuzzy_pre_incoming_diplomacy diplomacy_label
  468.  
  469. //////////////////////////////////////
  470. //BEGIN FUZZY_PRE_OUTGOING_DIPLOMACY//
  471. //////////////////////////////////////
  472.  
  473. fuzzy_pre_outgoing_diplomacy {
  474. output send_threshold[0, 1000] = 1000 
  475. left almost_always_send(send_threshold, 50, 50)
  476. tri often_send(send_threshold, 200, 150)
  477. tri sometimes_send(send_threshold, 600, 100)
  478. tri occasionally_send(send_threshold, 750, 100)
  479. right rarely_send(send_threshold, 1000, 200)
  480.  
  481. input diplomatic_regard_towards_him
  482. left hate_him(diplomatic_regard_towards_him, 10, 10)
  483. tri dislike_him(diplomatic_regard_towards_him, 30, 10)
  484. tri neutral_towards_him(diplomatic_regard_towards_him, 40, 10)
  485. tri neutral_or_better_towards_him(diplomatic_regard_towards_him, 50, 10)
  486. tri like_him(diplomatic_regard_towards_him, 60, 15)
  487. right love_him(diplomatic_regard_towards_him, 90, 10)
  488.  
  489. //new regard modifier
  490. output diplomatic_regard_delta[-20, 20] = -20.0
  491. tri loath_him_more(diplomatic_regard_delta, -10, 10.0)
  492. tri hate_him_more(diplomatic_regard_delta, -8, 4.0)
  493. tri dislike_him_more(diplomatic_regard_delta, -5, 2.0)
  494. tri wary_of_him_more(diplomatic_regard_delta, -3, 1.0)
  495. tri same_like_him(diplomatic_regard_delta, 0, 1.0)
  496. tri like_him_more(diplomatic_regard_delta, 2, 1.0)
  497. tri love_him_more(diplomatic_regard_delta, 5, 2.0)
  498. right worship_him_more(diplomatic_regard_delta, 8, 4)
  499.  
  500. output send_tone[0, 5] = 2.5
  501. left hostile_tone(send_tone, 0, 2.5)
  502. tri neutral_tone(send_tone, 2.5, 1)
  503. right friendly_tone(send_tone, 5, 2.5)
  504.  
  505. input his_hotwar_attacked_me
  506. left hasnt_attacked_me(his_hotwar_attacked_me, 0, 0.5)
  507. right has_attacked_me(his_hotwar_attacked_me, 1, 0.5)
  508.  
  509. input contact_gained // 0 - 100
  510. right gains_contact(contact_gained, 100, 100)
  511.     
  512. output gold_utility[0,10] = 10
  513.  
  514. input gold_gained
  515. tri gains_gold(gold_gained, 50, 49)
  516. tri gains_much_gold(gold_gained, 100, 50)
  517. right gains_incredible_gold(gold_gained, 200, 100)
  518.  
  519. input military_incursions
  520. left no_incursions(military_incursions, 0, 0.2)
  521. tri few_incursions(military_incursions, 2, 1.5)
  522. right many_incursions(military_incursions, 3, 1)
  523.  
  524. input reduces_incursions
  525. left doesnt_reduce_incursions(reduces_incursions, 0, 0.5)
  526. right does_reduce_incursions(reduces_incursions, 1, 0.25)
  527.  
  528. output found_message_i[0,2] = 0
  529. left didnt_find(found_message_i, 0, 1)
  530. right found(found_message_i, 1, 0.5)
  531.  
  532. input advances_skipped
  533. left no_advances_skipped(advances_skipped, 0, 0.5)
  534. tri few_advances_skipped(advances_skipped, 2, 1.2)
  535. tri some_advances_skipped(advances_skipped, 4, 1.2)
  536. right many_advances_skipped(advances_skipped, 6, 2)
  537.  
  538. input last_got_map
  539. right got_map_centuries_ago(last_got_map, 0, 10)
  540.  
  541. input his_trade_with_third_party
  542. //tri some_trade_with_third_party(his_trade_with_third_party, 2, 1)
  543. right much_trade_with_third_party(his_trade_with_third_party, 2, 2)
  544.  
  545. input third_party_regard
  546. left low_third_party_regard(third_party_regard, 20, 10)
  547. right high_third_party_regard(third_party_regard, 80, 10)
  548. tri neutral_third_party_regard(third_party_regard, 50, 25)
  549.  
  550. input he_attacks_enemy
  551. right attacks_enemy(he_attacks_enemy, 1, .5)
  552.  
  553. input he_gains_advance
  554. right his_advance(he_gains_advance, 1, .5)
  555.  
  556. input i_gain_advance
  557. right my_advance(i_gain_advance, 1, .5)
  558.  
  559. input relative_strength
  560. left afraid_of_him(relative_strength, 0.5, 0.25)
  561. tri equal_to_him(relative_strength, 1, 0.2)
  562. right stronger_than_him(relative_strength, 2.5, 0.25)
  563.  
  564. //how much does the AI wanna give away an advance
  565. output advance_give [0, 1] = 0
  566. left no_way_jose(advance_give, 0, 0.2)
  567. tri maybe_i_will(advance_give, 0.5, 0.25)
  568. right ok_here(advance_give, 1.0, 0.25)
  569.  
  570. //does the AI wanna give away gold
  571. output gold_need [0, 2] = 0
  572. left crack_ho(gold_need, 0, 0.2)
  573. tri middle_class(gold_need, 0.5, 0.25)
  574. right im_rich(gold_need, 1.0, 0.25)
  575.  
  576. //set when AI will give away gold or advances
  577.     if(stronger_than_him or hate_him)
  578.     {
  579.         no_way_jose
  580.         crack_ho
  581.     }
  582.  
  583.     if(like_him or afraid_of_him)
  584.     {
  585.         maybe_i_will
  586.         middle_class    
  587.     }
  588.  
  589.     if(love_him)
  590.     {
  591.         ok_here
  592.         im_rich
  593.     }    
  594.  
  595. // Set tone
  596.     if(hate_him or dislike_him){
  597.         hostile_tone
  598.     }
  599.  
  600.     if(neutral_towards_him or neutral_or_better_towards_him){
  601.         neutral_tone
  602.     }
  603.  
  604.     if(like_him or love_him){
  605.         friendly_tone
  606.     } 
  607.  
  608.  
  609. // set threshold
  610. // each message should set found, so that the rarely_send clause doesn't
  611. // take effect
  612.  
  613. //love at first sight send
  614.         if(gains_contact) 
  615.         {
  616.             often_send
  617.             found
  618.         } 
  619.  
  620. //demand advance send
  621. output demand_advance [0, 1] = 0
  622. left wont_demand_adv(demand_advance, 0, 0.1)
  623. tri thinkin_bout_demandin_adv(demand_advance, 0.5, 0.25)
  624. right gimmee_adv(demand_advance, 1.0, 0.25)
  625.  
  626. //set fz_demand_advance
  627.     if(like_him or love_him)
  628.     {
  629.         wont_demand_adv
  630.     }
  631.     if(neutral_towards_him or neutral_or_better_towards_him)
  632.     {
  633.         thinkin_bout_demandin_adv
  634.     }
  635.     if((dislike_him or hate_him) and stronger_than_him)
  636.     {
  637.         gimmee_adv
  638.     }
  639.  
  640.  
  641.         if(my_advance and dislike_him and stronger_than_him)
  642.         {
  643.             occasionally_send
  644.             found
  645.         }
  646.  
  647.         if(my_advance and hate_him and stronger_than_him)    
  648.         {
  649.             often_send
  650.             found
  651.         }
  652.  
  653.  
  654. //demand gold send
  655.         if(gains_gold and (dislike_him or hate_him)) 
  656.         {
  657.             occasionally_send
  658.             found
  659.         } 
  660.  
  661.         if(gains_much_gold and (dislike_him or hate_him)) 
  662.         {
  663.             sometimes_send
  664.             found
  665.         }
  666.  
  667.         if(gains_incredible_gold and hate_him) 
  668.         {
  669.             often_send
  670.             found
  671.         }
  672.  
  673. //demand map send
  674. input map_area_gained 
  675. right ai_gets_map(map_area_gained, 1, 0.5) 
  676.  
  677.         if(ai_gets_map and (dislike_him or hate_him) and stronger_than_him)
  678.         {
  679.             occasionally_send
  680.             found
  681.         }
  682.  
  683. //demand leave our lands send
  684.         if(dislike_him and many_incursions) 
  685.         {
  686.             often_send
  687.             found
  688.         }
  689.  
  690.         if(hate_him and stronger_than_him and (few_incursions or many_incursions)) 
  691.         {
  692.             often_send
  693.             found
  694.         } 
  695.         
  696.         if(stronger_than_him and dislike_him and many_incursions) 
  697.         {
  698.             often_send
  699.             found
  700.         }
  701.  
  702. //demand reduce pollution send
  703. output stop_polluting_others [0, 1000] = 0
  704. left sierra_club(stop_polluting_others, 100, 100)
  705. tri average_consumer(stop_polluting_others, 500, 250)
  706. right dupont_chemical(stop_polluting_others, 1000, 250)
  707.  
  708. input his_pollution_level
  709. left low_his_pollution(his_pollution_level, 50.0, 5.0)
  710. tri average_his_pollution(his_pollution_level, 100.0, 50.0)
  711. right high_his_pollution(his_pollution_level, 200.0, 75.0)
  712.  
  713. input my_pollution_level
  714. left low_my_pollution(my_pollution_level, 50.0, 5.0)
  715. tri average_my_pollution(my_pollution_level, 100.0, 50.0)
  716. right high_my_pollution(my_pollution_level, 200.0, 75.0)
  717.  
  718. input global_pollution_level
  719. left low_global_pollution(global_pollution_level, 500.0, 5.0)
  720. tri average_global_pollution(global_pollution_level, 1000.0, 500.0)
  721. right high_global_pollution(global_pollution_level, 2000.0, 1000.0)
  722.  
  723. //determine extent of global pollution
  724.     if(low_global_pollution)
  725.     {
  726.         sierra_club
  727.     }
  728.     
  729.     if(average_global_pollution)
  730.     {
  731.         average_consumer
  732.     }
  733.     if(high_global_pollution)
  734.     {
  735.         dupont_chemical
  736.     }
  737.     
  738.  
  739.         if(stronger_than_him and (dislike_him or hate_him) and average_his_pollution)
  740.         {
  741.             sometimes_send
  742.             found
  743.         }
  744.  
  745.         if(stronger_than_him and high_his_pollution)
  746.         {
  747.              occasionally_send
  748.              found
  749.         }    
  750.  
  751. //demand stop piracy send
  752. input his_pirated_me
  753. left hasnt_pirated_me(his_pirated_me, 0, 0.2)
  754. tri pirated_a_little(his_pirated_me, 2, 1)
  755. right blue_beard(his_pirated_me, 5, 2)
  756.  
  757. output piracy_decay [0, 1] = 0.8
  758.  
  759.  
  760.         if(pirated_a_little)
  761.         {
  762.             occasionally_send
  763.             found
  764.         }    
  765.          
  766.         if(blue_beard)
  767.         {
  768.             sometimes_send
  769.             found
  770.         }    
  771.  
  772. //demand stop trade send        
  773. output stop_trade [0, 1] = 0
  774. left dont_stop (stop_trade, 0, 0.2)
  775. tri think_about_it (stop_trade, 0.5, 0.25)
  776. right stop_trading_you_bastard (stop_trade, 1.0, 0.25)
  777.  
  778.     if(love_him)
  779.     {
  780.         dont_stop
  781.     }
  782.     
  783.     if(like_him or neutral_or_better_towards_him or neutral_towards_him)
  784.     {
  785.         think_about_it
  786.     }
  787.         
  788.     if(dislike_him or hate_him)
  789.     {
  790.         stop_trading_you_bastard
  791.     }
  792.         
  793.         if(much_trade_with_third_party and (hate_him or low_third_party_regard) and stronger_than_him) 
  794.         {
  795.             often_send
  796.             found
  797.         }
  798.  
  799. //demand attack enemy send
  800. // = his_strength / third_party_strength 
  801. input his_third_party_relative_strength
  802. left he_is_weaker_than_3rd(his_third_party_relative_strength, 0.5, 0.25)
  803. tri he_is_same_as_3rd(his_third_party_relative_strength, 1.0, 0.2)
  804. right he_is_stronger_than_3rd(his_third_party_relative_strength, 4.0, 3.0)
  805.  
  806. // = my_strength / third_party_strength
  807. input third_party_relative_strength
  808. left i_am_weaker_than_3rd(third_party_relative_strength, 0.5, 0.25)
  809. tri i_am_same_as_3rd(third_party_relative_strength, 1.0, 0.25)
  810. right i_am_stronger_than_3rd(third_party_relative_strength, 4.0, 3.0)
  811.  
  812. // num_his_trade_routes_with_third
  813. input his_trade_with_third_party
  814. left hes_not_trading_with_3rd(his_trade_with_third_party, 0, 0.5)
  815. right hes_trading_with_3rd(his_trade_with_third_party, 10, 9 )
  816.  
  817.  
  818.         if(hes_not_trading_with_3rd and he_is_stronger_than_3rd and i_am_weaker_than_3rd and love_him)
  819.         {
  820.             often_send
  821.             found
  822.         }
  823.  
  824.  
  825. // exchange advance send 
  826.         if(my_advance and his_advance and love_him)
  827.         {
  828.             sometimes_send
  829.             found
  830.         }
  831.  
  832. //exchange map send
  833. output map_exchange [0, 100] = 0
  834. left no_map_xd(map_exchange, 0, 20)
  835. tri maybe_map_xd(map_exchange, 50, 25)
  836. right hell_yeah_map_xd(map_exchange, 100, 25)
  837. //set fz_map_exchange    
  838.  
  839.     if(dislike_him or hate_him)
  840.     {
  841.         no_map_xd
  842.     }
  843.     if(neutral_towards_him or neutral_or_better_towards_him or like_him)
  844.     {
  845.         maybe_map_xd
  846.     }
  847.     if(love_him)
  848.     {
  849.         hell_yeah_map_xd
  850.     }
  851.  
  852. input map_area_gained 
  853. right ai_gets_map(map_area_gained, 1, 0.5) 
  854.  
  855. input he_gets_map
  856. right gives_him_map(he_gets_map, 1, .5)
  857.  
  858.         if(gives_him_map and ai_gets_map and love_him and afraid_of_him)
  859.         {
  860.             sometimes_send
  861.             found
  862.         }
  863.  
  864. //offer advance send 
  865.         if(many_advances_skipped and his_advance and love_him) 
  866.         {
  867.             sometimes_send
  868.             found
  869.         } 
  870.         if(his_advance and some_advances_skipped and love_him) 
  871.         {
  872.             occasionally_send
  873.             found
  874.         }
  875.  
  876. //offer gold send
  877. input he_gains_gold
  878. right gives_him_gold(he_gains_gold, 1, .5)
  879.  
  880.         if(gives_him_gold and love_him and afraid_of_him) 
  881.         {
  882.             occasionally_send
  883.             found
  884.         }
  885.  
  886. //offer map send
  887.  
  888.         if(gives_him_map and love_him and afraid_of_him) 
  889.         {
  890.             occasionally_send
  891.             found
  892.         }
  893.  
  894. //offer map alt send
  895.         if(gives_him_map and got_map_centuries_ago and love_him) 
  896.         {
  897.             occasionally_send
  898.             found
  899.         }
  900.  
  901. //offer cease fire send
  902. input gains_cease_fire
  903. right does_gain_cease_fire(gains_cease_fire, 1, .5)
  904.  
  905. input war_with_him
  906. right warring(war_with_him, 1, 0.5)
  907.  
  908. input length_of_war_with_him 
  909. left no_recent_war(length_of_war_with_him, 0, 0.2)
  910. tri skirmish(length_of_war_with_him, 2, 1)
  911. tri battle(length_of_war_with_him, 5, 2)
  912. tri war(length_Of_war_with_him, 10, 4)
  913. right hatfields_n_mccoys(length_of_war_with_him, 15, 5)
  914.  
  915.         if(does_gain_cease_fire and equal_to_him and warring and war and not(hate_him or dislike_him))
  916.         {
  917.             occasionally_send
  918.             found
  919.         }
  920.  
  921.         if(does_gain_cease_fire and warring and afraid_of_him and hatfields_n_mccoys) 
  922.         {
  923.             often_send
  924.             found
  925.         }
  926.  
  927. //offer permanent alliance send
  928. input gains_alliance
  929. right does_gain_alliance(gains_alliance, 1, .5)
  930.  
  931. input num_he_is_at_war
  932. left ghandi(num_he_is_at_war, 0, 0.2)
  933. tri grudge(num_he_is_at_war, 2, 1)
  934. tri schoolyard_bully(num_he_is_at_war, 4, 2)
  935. right postal(num_he_is_at_war, 8, 3)
  936.  
  937. output alliance [0,1] = 0
  938. right no_alliance(alliance, 0, 0.2)
  939. tri perchance_alliance(alliance, 0.5, 0.25)
  940. left married(alliance, 1.0, 0.25)
  941.  
  942. //loyalty ain't in yet, so this is the hack    
  943. output perceived_loyalty [0,5] = 2.5
  944. left traitor(perceived_loyalty, 0, 1)
  945. tri den_of_thieves (perceived_loyalty, 2.5, 1)
  946. right bushido (perceived_loyalty, 5, 2)
  947.  
  948.     if(schoolyard_bully or postal)
  949.     {
  950.         no_alliance
  951.         traitor
  952.     }
  953.  
  954.     if(grudge)
  955.     {
  956.         perchance_alliance
  957.         den_of_thieves
  958.     }
  959.  
  960.     if(ghandi)
  961.     {
  962.         married
  963.         bushido
  964.     }
  965.  
  966.         if(does_gain_alliance and afraid_of_him and warring and (war or hatfields_n_mccoys)) 
  967.         {
  968.             sometimes_send
  969.             found
  970.         }
  971.  
  972. //offer ecopact send
  973. output pact_end_pollution [0, 1000]= 0
  974. left toxic_wastrel(pact_end_pollution, 0, 100)
  975. tri joe_lunchpail(pact_end_pollution, 500, 250)
  976. right pollution_sucks(pact_end_pollution, 1000, 250)
  977.  
  978. input end_pollution_pact
  979. right stinky_pants(end_pollution_pact, 1.0, 0.5)
  980.  
  981.     if(high_his_pollution or high_my_pollution)
  982.     {
  983.         pollution_sucks
  984.     }
  985.     
  986.     if(average_his_pollution or average_my_pollution)
  987.     {
  988.         joe_lunchpail
  989.     }
  990.  
  991.     if(low_his_pollution or low_my_pollution)    
  992.     {
  993.         toxic_wastrel
  994.     }
  995.  
  996.         if(stinky_pants and love_him and high_global_pollution)
  997.         {
  998.             often_send
  999.             found
  1000.         }
  1001.  
  1002. //message type not found send
  1003.         if(didnt_find) 
  1004.         {
  1005.             rarely_send
  1006.         }
  1007. }
  1008. //end fuzzy_pre_outgoing_diplomacy
  1009.  
  1010.  
  1011. ////////////////////////////////
  1012. //BEGIN FUZZY_REJECTED_MESSAGE//
  1013. ////////////////////////////////
  1014.  
  1015. fuzzy_rejected_message {
  1016.  
  1017. input diplomatic_regard_towards_him
  1018. left hate_him(diplomatic_regard_towards_him, 10, 10)
  1019. tri dislike_him(diplomatic_regard_towards_him, 30, 10)
  1020. tri neutral_towards_him(diplomatic_regard_towards_him, 50, 10)
  1021. tri neutral_or_better_towards_him(diplomatic_regard_towards_him, 70, 10)
  1022. tri like_him(diplomatic_regard_towards_him, 80, 10)
  1023. right love_him(diplomatic_regard_towards_him, 90, 10)
  1024.  
  1025. //new regard modifier
  1026. output diplomatic_regard_delta[-20, 20] = -20.0
  1027. tri loath_him_more(diplomatic_regard_delta, -10, 10.0)
  1028. tri hate_him_more(diplomatic_regard_delta, -8, 4.0)
  1029. tri dislike_him_more(diplomatic_regard_delta, -5, 2.0)
  1030. tri wary_of_him_more(diplomatic_regard_delta, -3, 1.0)
  1031. tri same_like_him(diplomatic_regard_delta, 0, 1.0)
  1032. tri like_him_more(diplomatic_regard_delta, 2, 1.0)
  1033. tri love_him_more(diplomatic_regard_delta, 5, 2.0)
  1034. right worship_him_more(diplomatic_regard_delta, 8, 4)
  1035.  
  1036. input he_rejected_greetings
  1037. right yes_he_rejected_greetings(he_rejected_greetings, 1.0, .5)
  1038.  
  1039. input relative_strength
  1040. left afraid_of_him(relative_strength, 0.5, 0.25)
  1041. tri equal_to_him(relative_strength, 1, 0.2)
  1042. right stronger_than_him(relative_strength, 2.5, 0.25)
  1043.  
  1044. //rejected greetings
  1045.     if(yes_he_rejected_greetings)
  1046.     {
  1047.         wary_of_him_more
  1048.     }
  1049.  
  1050. //rejected advance demand
  1051. input he_rejected_demand_advance
  1052. right yes_he_rejected_demand_advance(he_rejected_demand_advance, 1.0, .5)
  1053.  
  1054.  
  1055. //rejected gold demand
  1056. input he_rejected_gold_demand
  1057. right yes_he_rejected_gold_demand(he_rejected_gold_demand, 1.0, .5)
  1058.  
  1059. //rejected map demand
  1060. input he_rejected_demand_map
  1061. right yes_he_rejected_demand_map(he_rejected_demand_map, 1.0, .5)
  1062.  
  1063. //rejected leave our lands demand
  1064. input he_rejected_demand_leave_our_lands
  1065. right yes_he_rejected_demand_leave_our_lands(he_rejected_demand_leave_our_lands, 1.0, .5)
  1066.  
  1067. //rejected reduce pollution demand
  1068. input he_rejected_demand_reduce_pollution
  1069. right yes_he_rejected_demand_reduce_pollution(he_rejected_demand_reduce_pollution, 1.0, .5)
  1070.  
  1071. //rejected stop piracy
  1072. input he_rejected_demand_no_piracy
  1073. right yes_he_rejected_demand_no_piracy(he_rejected_demand_no_piracy, 1.0, .5)
  1074.  
  1075. //rejected stop trade 
  1076. input he_rejected_demand_stop_trade
  1077. right yes_he_rejected_demand_stop_trade(he_rejected_demand_stop_trade, 1.0, .5)
  1078.  
  1079. //rejected attack enemy
  1080. input he_rejected_demand_attack_enemy
  1081. right rejected_attack(he_rejected_demand_attack_enemy, 1.0, 0.5)
  1082.  
  1083. //rejected exchange advance
  1084. input he_rejected_exchange_advance
  1085. right yes_he_rejected_exchange_advance(he_rejected_exchange_advance, 1.0, .5)
  1086.  
  1087. //rejected exchange map
  1088. input he_rejected_exchange_map
  1089. right yes_he_rejected_exchange_map(he_rejected_exchange_map, 1.0, .5)
  1090.  
  1091.     if(yes_he_rejected_exchange_map)
  1092.     {
  1093.         dislike_him_more
  1094.     }
  1095.  
  1096. //rejected advance offer
  1097. input he_rejected_offer_advance
  1098. right yes_he_rejected_offer_advance(he_rejected_offer_advance, 1.0, .5)
  1099.  
  1100.     if(yes_he_rejected_offer_advance)
  1101.     {
  1102.         dislike_him_more
  1103.     }
  1104.  
  1105. //rejected gold offer
  1106. input he_rejected_offer_gold
  1107. right yes_he_rejected_offer_gold(he_rejected_offer_gold, 1.0, .5)
  1108.  
  1109.     if(yes_he_rejected_offer_gold)
  1110.     {
  1111.         dislike_him_more
  1112.     }
  1113.  
  1114. //rejected map offer
  1115. input he_rejected_offer_map
  1116. right yes_he_rejected_offer_map(he_rejected_offer_map, 1.0, .5)
  1117.  
  1118.     if(yes_he_rejected_offer_map)
  1119.     {
  1120.         dislike_him_more
  1121.     }
  1122.  
  1123. //rejected cease fire
  1124. input he_rejected_offer_cease_fire
  1125. right yes_he_rejected_offer_cease_fire(he_rejected_offer_cease_fire, 1.0, .5)
  1126.  
  1127.     if(yes_he_rejected_offer_cease_fire)
  1128.     {
  1129.         dislike_him_more
  1130.     }
  1131.  
  1132. //rejected permanent alliance
  1133. input he_rejected_offer_alliance
  1134. right yes_he_rejected_offer_alliance(he_rejected_offer_alliance, 1.0, .5)
  1135.  
  1136.     if(yes_he_rejected_offer_alliance)
  1137.     {
  1138.         dislike_him_more
  1139.     }
  1140.  
  1141. //reject ecopact
  1142. input he_rejected_offer_pact_end_pollution
  1143. right he_rejected_ecopact (he_rejected_offer_pact_end_pollution, 1.0, 0.5)
  1144.  
  1145.     if(he_rejected_ecopact)
  1146.     {
  1147.         dislike_him_more
  1148.     }
  1149.  
  1150. }
  1151. //end fuzzy rejected message
  1152.  
  1153.  
  1154. ////////////////////////////////
  1155. //BEGIN FUZZY_ACCEPTED_MESSAGE//
  1156. ////////////////////////////////
  1157.  
  1158. fuzzy_accepted_message {
  1159.  
  1160. //new regard modifier
  1161. output diplomatic_regard_delta[-20, 20] = 0.0
  1162. tri loath_him_more(diplomatic_regard_delta, -10, 10.0)
  1163. tri hate_him_more(diplomatic_regard_delta, -8, 4.0)
  1164. tri dislike_him_more(diplomatic_regard_delta, -5, 2.0)
  1165. tri wary_of_him_more(diplomatic_regard_delta, -3, 1.0)
  1166. tri same_like_him(diplomatic_regard_delta, 0, 1.0)
  1167. tri like_him_more(diplomatic_regard_delta, 2, 1.0)
  1168. tri love_him_more(diplomatic_regard_delta, 5, 2.0)
  1169. right worship_him_more(diplomatic_regard_delta, 8, 4)
  1170.  
  1171. input he_accepted_greetings
  1172. right yes_he_accepted_greetings(he_accepted_greetings, 1.0, .5)
  1173.  
  1174.  
  1175. //accepted greetings
  1176.     if(yes_he_accepted_greetings)
  1177.     {
  1178.         love_him_more
  1179.     }
  1180.  
  1181. //accepted advance demand
  1182. input he_accepted_demand_advance
  1183. right yes_he_accepted_demand_advance(he_accepted_demand_advance, 1.0, .5)
  1184.  
  1185.     if(yes_he_accepted_demand_advance)
  1186.     {
  1187.         like_him_more
  1188.     }
  1189.  
  1190. //accepted gold demand
  1191. input he_accepted_gold_demand
  1192. right yes_he_accepted_gold_demand(he_accepted_gold_demand, 1.0, .5)
  1193.  
  1194.     if(yes_he_accepted_gold_demand)
  1195.     {
  1196.         like_him_more
  1197.     }
  1198.  
  1199. //accepted map demand
  1200. input he_accepted_demand_map
  1201. right yes_he_accepted_demand_map(he_accepted_demand_map, 1.0, .5)
  1202.  
  1203.     if(yes_he_accepted_demand_map)
  1204.     {
  1205.         like_him_more
  1206.     }
  1207.  
  1208. //accepted leave our lands demand
  1209. input he_accepted_demand_leave_our_lands
  1210. right yes_he_accepted_demand_leave_our_lands(he_accepted_demand_leave_our_lands, 1.0, .5)
  1211.  
  1212.     if(yes_he_accepted_demand_leave_our_lands)
  1213.     {
  1214.         like_him_more
  1215.     }
  1216.  
  1217. //accepted reduce pollution demand
  1218. input he_accepted_demand_reduce_pollution
  1219. right yes_he_accepted_demand_reduce_pollution(he_accepted_demand_reduce_pollution, 1.0, .5)
  1220.  
  1221.     if(yes_he_accepted_demand_reduce_pollution)
  1222.     {
  1223.         like_him_more
  1224.     }
  1225.  
  1226. //accepted stop piracy demand
  1227. input he_accepted_demand_no_piracy
  1228. right yes_he_accepted_demand_no_piracy(he_accepted_demand_no_piracy, 1.0, .5)
  1229.  
  1230.     if(yes_he_accepted_demand_no_piracy)
  1231.     {
  1232.         love_him_more
  1233.     }
  1234.  
  1235. //accepted stop trade demand
  1236. input he_accepted_demand_stop_trade
  1237. right yes_he_accepted_demand_stop_trade(he_accepted_demand_stop_trade, 1.0, .5)
  1238.  
  1239.     if(yes_he_accepted_demand_stop_trade)
  1240.     {
  1241.         like_him_more
  1242.     }
  1243.  
  1244. //accepted attack enemy
  1245. input he_accepted_demand_attack_enemy
  1246. right accepted_attack(he_accepted_demand_attack_enemy, 1.0, 0.5)
  1247.  
  1248.     if(accepted_attack)    
  1249.     {
  1250.         like_him_more
  1251.     }
  1252.  
  1253. //accepted exchange advance 
  1254. input he_accepted_exchange_advance
  1255. right yes_he_accepted_exchange_advance(he_accepted_exchange_advance, 1.0, .5)
  1256.  
  1257.     if(yes_he_accepted_exchange_advance)
  1258.     {
  1259.         love_him_more
  1260.     }
  1261.  
  1262. //accepted exchange map
  1263. input he_accepted_exchange_map
  1264. right yes_he_accepted_exchange_map(he_accepted_exchange_map, 1.0, .5)
  1265.  
  1266.     if(yes_he_accepted_exchange_map)
  1267.     {
  1268.         love_him_more
  1269.     }
  1270.  
  1271. //accepted advance offer
  1272. input he_accepted_offer_advance
  1273. right yes_he_accepted_offer_advance(he_accepted_offer_advance, 1.0, .5)
  1274.  
  1275.     if(yes_he_accepted_offer_advance)
  1276.     {
  1277.         love_him_more
  1278.     }
  1279.  
  1280. //accepted gold offer
  1281. input he_accepted_offer_gold
  1282. right yes_he_accepted_offer_gold(he_accepted_offer_gold, 1.0, .5)
  1283.  
  1284.     if(yes_he_accepted_offer_gold)
  1285.     {
  1286.         love_him_more
  1287.     }
  1288.  
  1289. //accepted map offer
  1290. input he_accepted_offer_map
  1291. right yes_he_accepted_offer_map(he_accepted_offer_map, 1.0, .5)
  1292.  
  1293.     if(yes_he_accepted_offer_map)
  1294.     {
  1295.         love_him_more
  1296.     }
  1297.  
  1298.  
  1299. //accepted cease fire
  1300. input he_accepted_offer_cease_fire
  1301. right yes_he_accepted_offer_cease_fire(he_accepted_offer_cease_fire, 1.0, .5)
  1302.  
  1303.     if(yes_he_accepted_offer_cease_fire)
  1304.     {
  1305.         love_him_more
  1306.     }
  1307.  
  1308. //accepted permanent alliance
  1309. input he_accepted_offer_alliance
  1310. right yes_he_accepted_offer_alliance(he_accepted_offer_alliance, 1.0, .5)
  1311.  
  1312.     if(yes_he_accepted_offer_alliance)
  1313.     {
  1314.         love_him_more
  1315.     }
  1316.  
  1317. //accepted ecopact
  1318. input he_accepted_offer_pact_end_pollution 
  1319. right he_accepted_ecopact(he_accepted_offer_pact_end_pollution, 1.0, 0.5)
  1320.  
  1321.     if(he_accepted_ecopact)
  1322.     {
  1323.         love_him_more
  1324.     }
  1325. }
  1326. //end fuzzy_accepted_message
  1327.  
  1328. //END DIPLOMACY.FLI
  1329.