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

  1. //     input_responses.fli
  2.  
  3.     /////////////////////////////////////////////////////////////////////////////
  4.     /// THESE INPUTS ARE FOR REMEMBERING WHAT MESSAGES I ACCEPTED OR REJECTED ///
  5.     /////////////////////////////////////////////////////////////////////////////
  6.     // Me is always the AI currently calculating an action.
  7.     // Him is the Player that I am corresponding with.
  8.     // When I say yes, I add one to my memory unless my memory is negative.
  9.     // If my_responses is currently negative, and the AI says yes, then the
  10.     // old memory is scrubbed completely and only the new positive count is kept.
  11.     // The same applies for rejection, which sets my_responses to -1.
  12.  
  13.     ////////////////////////////////////////////////
  14.     /// THESE OUTPUTS ARE FOR DECAYING MY MEMORY ///
  15.     ////////////////////////////////////////////////
  16.     
  17.     // Once per turn, the my_responses memory is decayed by whatever the fli system
  18.     // requests. Decay is done by multiplication. A decay of one creates a perfect memory.
  19.     // A decay of zero creates a count for this turn only.
  20.     // If not set, these default to one.
  21.  
  22.     //////////////////////
  23.     /// DEMAND_ADVANCE ///
  24.     //////////////////////
  25.         
  26.     input my_responses_DEMAND_ADVANCE 
  27.         tri onceplus_i_said_yes_to_DEMAND_ADVANCE(
  28.             my_responses_DEMAND_ADVANCE, 10.0, 9.1)
  29.         tri once_i_said_yes_to_DEMAND_ADVANCE(
  30.             my_responses_DEMAND_ADVANCE, 0.75, 0.27)
  31.         tri i_never_answered_DEMAND_ADVANCE(
  32.             my_responses_DEMAND_ADVANCE, 0.0, 0.26)
  33.         tri once_i_said_no_to_DEMAND_ADVANCE(
  34.             my_responses_DEMAND_ADVANCE, -0.75, 0.26)
  35.         tri onceplus_i_said_no_to_DEMAND_ADVANCE(
  36.             my_responses_DEMAND_ADVANCE, -10.0, 9.01)
  37.  
  38.     output my_responses_decay_DEMAND_ADVANCE[-1.0, 2.0] = 1.0
  39.         tri my_instant_decay_DEMAND_ADVANCE(
  40.             my_responses_decay_DEMAND_ADVANCE, 0.0, 0.5)
  41.         tri my_long_decay_DEMAND_ADVANCE(
  42.             my_responses_decay_DEMAND_ADVANCE, 0.93, 0.5)
  43.         tri my_zero_decay_DEMAND_ADVANCE(
  44.             my_responses_decay_DEMAND_ADVANCE, 1.0, 0.5)
  45.  
  46.     ///////////////////
  47.     /// DEMAND_CITY ///
  48.     ///////////////////
  49.  
  50.     input my_responses_DEMAND_CITY 
  51.         tri onceplus_i_said_yes_to_DEMAND_CITY(
  52.             my_responses_DEMAND_CITY, 10.0, 9.01)
  53.         tri once_i_said_yes_to_DEMAND_CITY(
  54.             my_responses_DEMAND_CITY, 0.75, 0.26)
  55.         tri i_never_answered_DEMAND_CITY(
  56.             my_responses_DEMAND_CITY, 0.0, 0.26)
  57.         tri once_i_said_no_to_DEMAND_CITY(
  58.             my_responses_DEMAND_CITY, -0.75, 0.26)
  59.         tri onceplus_i_said_no_to_DEMAND_CITY(
  60.             my_responses_DEMAND_CITY, -10.0, 9.01)
  61.  
  62.     output my_responses_decay_DEMAND_CITY[-1.0, 2.0] = 1.0
  63.         tri my_instant_decay_DEMAND_CITY(
  64.             my_responses_decay_DEMAND_CITY, 0.0, 0.5)
  65.         tri my_long_decay_DEMAND_CITY(
  66.             my_responses_decay_DEMAND_CITY, 0.93, 0.5)
  67.         tri my_zero_decay_DEMAND_CITY(
  68.             my_responses_decay_DEMAND_CITY, 1.0, 0.5)
  69.  
  70.     //////////////////
  71.     /// DEMAND_MAP ///
  72.     //////////////////
  73.  
  74.     input my_responses_DEMAND_MAP 
  75.         tri onceplus_i_said_yes_to_DEMAND_MAP(
  76.             my_responses_DEMAND_MAP, 10.0, 9.01)
  77.         tri once_i_said_yes_to_DEMAND_MAP(
  78.             my_responses_DEMAND_MAP, 0.75, 0.26)
  79.         tri i_never_answered_DEMAND_MAP(
  80.             my_responses_DEMAND_MAP, 0.0, 0.26)
  81.         tri once_i_said_no_to_DEMAND_MAP(
  82.             my_responses_DEMAND_MAP, -0.75, 0.26)
  83.         tri onceplus_i_said_no_to_DEMAND_MAP(
  84.             my_responses_DEMAND_MAP, -10.0, 9.01)
  85.  
  86.     output my_responses_decay_DEMAND_MAP[-1.0, 2.0] = 0.93
  87.         tri my_instant_decay_DEMAND_MAP(
  88.             my_responses_decay_DEMAND_MAP, 0.0, 0.5)
  89.         tri my_long_decay_DEMAND_MAP(
  90.             my_responses_decay_DEMAND_MAP, 0.93, 0.5)
  91.         tri my_zero_decay_DEMAND_MAP(
  92.             my_responses_decay_DEMAND_MAP, 1.0, 0.5)
  93.  
  94.     output enough_me_giving_in_to_DEMAND_MAP[0.0, 2.0] = 0.0
  95.         tri yes_enough_me_giving_in_to_DEMAND_MAP(
  96.             enough_me_giving_in_to_DEMAND_MAP, 1.0, 0.5)
  97.  
  98.     if(onceplus_i_said_yes_to_DEMAND_MAP or once_i_said_yes_to_DEMAND_MAP)
  99.     {
  100.         yes_enough_me_giving_in_to_DEMAND_MAP
  101.     }
  102.  
  103.     ///////////////////
  104.     /// DEMAND_GOLD ///
  105.     ///////////////////
  106.  
  107.     input my_responses_DEMAND_GOLD 
  108.         tri onceplus_i_said_no_to_DEMAND_GOLD(
  109.             my_responses_DEMAND_GOLD, -10.0, 9.01)
  110.         tri once_i_said_no_to_DEMAND_GOLD(
  111.             my_responses_DEMAND_GOLD, -0.75, 0.26)
  112.         tri i_never_answered_DEMAND_GOLD(
  113.             my_responses_DEMAND_GOLD, 0.0, 0.26)
  114.         tri once_i_said_yes_to_DEMAND_GOLD(
  115.             my_responses_DEMAND_GOLD, 0.75, 0.26)
  116.         tri onceplus_i_said_yes_to_DEMAND_GOLD(
  117.             my_responses_DEMAND_GOLD, 10.0, 9.01)
  118.  
  119.     output my_responses_decay_DEMAND_GOLD[-1.0, 2.0] = 0.93
  120.         tri my_instant_decay_DEMAND_GOLD(
  121.             my_responses_decay_DEMAND_GOLD, 0.0, 0.5)
  122.         tri my_long_decay_DEMAND_GOLD(
  123.             my_responses_decay_DEMAND_GOLD, 0.93, 0.5)
  124.         tri my_zero_decay_DEMAND_GOLD(
  125.             my_responses_decay_DEMAND_GOLD, 1.0, 0.5)
  126.  
  127.     output enough_me_giving_in_to_DEMAND_GOLD[0.0, 2.0] = 0.0
  128.         tri yes_enough_me_giving_in_to_DEMAND_GOLD(
  129.             enough_me_giving_in_to_DEMAND_GOLD, 1.0, 0.5)
  130.  
  131.     if(onceplus_i_said_yes_to_DEMAND_GOLD or once_i_said_yes_to_DEMAND_GOLD)
  132.     {
  133.         yes_enough_me_giving_in_to_DEMAND_GOLD
  134.     }
  135.     /////////////////////////
  136.     /// DEMAND_STOP_TRADE ///
  137.     /////////////////////////
  138.  
  139.     input my_responses_DEMAND_STOP_TRADE 
  140.         tri onceplus_i_said_yes_to_DEMAND_STOP_TRADE(
  141.             my_responses_DEMAND_STOP_TRADE, 10.0, 9.01)
  142.         tri once_i_said_yes_to_DEMAND_STOP_TRADE(
  143.             my_responses_DEMAND_STOP_TRADE, 0.75, 0.26)
  144.         tri i_never_answered_DEMAND_STOP_TRADE(
  145.             my_responses_DEMAND_STOP_TRADE, 0.0, 0.26)
  146.         tri once_i_said_no_to_DEMAND_STOP_TRADE(
  147.             my_responses_DEMAND_STOP_TRADE, -0.75, 0.26)
  148.         tri onceplus_i_said_no_to_DEMAND_STOP_TRADE(
  149.             my_responses_DEMAND_STOP_TRADE, -10.0, 9.01)
  150.  
  151.     output my_responses_decay_DEMAND_STOP_TRADE[-1.0, 2.0] = 0.93
  152.         tri my_instant_decay_DEMAND_STOP_TRADE(
  153.             my_responses_decay_DEMAND_STOP_TRADE, 0.0, 0.5)
  154.         tri my_long_decay_DEMAND_STOP_TRADE(
  155.             my_responses_decay_DEMAND_STOP_TRADE, 0.93, 0.5)
  156.         tri my_zero_decay_DEMAND_STOP_TRADE(
  157.             my_responses_decay_DEMAND_STOP_TRADE, 1.0, 0.5)
  158.  
  159.     ///////////////////////////
  160.     /// DEMAND_ATTACK_ENEMY ///
  161.     ///////////////////////////
  162.  
  163.     input my_responses_DEMAND_ATTACK_ENEMY 
  164.         tri onceplus_i_said_yes_to_DEMAND_ATTACK_ENEMY(
  165.             my_responses_DEMAND_ATTACK_ENEMY, 10.0, 9.01)
  166.         tri once_i_said_yes_to_DEMAND_ATTACK_ENEMY(
  167.             my_responses_DEMAND_ATTACK_ENEMY, 0.75, 0.26)
  168.         tri i_never_answered_DEMAND_ATTACK_ENEMY(
  169.             my_responses_DEMAND_ATTACK_ENEMY, 0.0, 0.26)
  170.         tri once_i_said_no_to_DEMAND_ATTACK_ENEMY(
  171.             my_responses_DEMAND_ATTACK_ENEMY, -0.75, 0.26)
  172.         tri onceplus_i_said_no_to_DEMAND_ATTACK_ENEMY(
  173.             my_responses_DEMAND_ATTACK_ENEMY, -10.0, 9.01)
  174.  
  175.     output my_responses_decay_DEMAND_ATTACK_ENEMY[-1.0, 2.0] = 0.93
  176.         tri my_instant_decay_DEMAND_ATTACK_ENEMY(
  177.             my_responses_decay_DEMAND_ATTACK_ENEMY, 0.0, 0.5)
  178.         tri my_long_decay_DEMAND_ATTACK_ENEMY(
  179.             my_responses_decay_DEMAND_ATTACK_ENEMY, 0.93, 0.5)
  180.         tri my_zero_decay_DEMAND_ATTACK_ENEMY(
  181.             my_responses_decay_DEMAND_ATTACK_ENEMY, 1.0, 0.5)
  182.  
  183.     //////////////////////////////
  184.     /// DEMAND_LEAVE_OUR_LANDS ///
  185.     //////////////////////////////
  186.  
  187.     input my_responses_DEMAND_LEAVE_OUR_LANDS 
  188.         tri onceplus_i_said_yes_to_DEMAND_LEAVE_OUR_LANDS(
  189.             my_responses_DEMAND_LEAVE_OUR_LANDS, 10.0, 9.01)
  190.         tri once_i_said_yes_to_DEMAND_LEAVE_OUR_LANDS(
  191.             my_responses_DEMAND_LEAVE_OUR_LANDS, 0.75, 0.26)
  192.         tri i_never_answered_DEMAND_LEAVE_OUR_LANDS(
  193.             my_responses_DEMAND_LEAVE_OUR_LANDS, 0.0, 0.26)
  194.         tri once_i_said_no_to_DEMAND_LEAVE_OUR_LANDS(
  195.             my_responses_DEMAND_LEAVE_OUR_LANDS, -0.75, 0.26)
  196.         tri onceplus_i_said_no_to_DEMAND_LEAVE_OUR_LANDS(
  197.             my_responses_DEMAND_LEAVE_OUR_LANDS, -10.0, 9.01)
  198.  
  199.     output my_responses_decay_DEMAND_LEAVE_OUR_LANDS[-1.0, 2.0] = 0.93
  200.         tri my_instant_decay_DEMAND_LEAVE_OUR_LANDS(
  201.             my_responses_decay_DEMAND_LEAVE_OUR_LANDS, 0.0, 0.5)
  202.         tri my_long_decay_DEMAND_LEAVE_OUR_LANDS(
  203.             my_responses_decay_DEMAND_LEAVE_OUR_LANDS, 0.93, 0.5)
  204.         tri my_zero_decay_DEMAND_LEAVE_OUR_LANDS(
  205.             my_responses_decay_DEMAND_LEAVE_OUR_LANDS, 1.0, 0.5)
  206.  
  207.     ///////////////////////////////
  208.     /// DEMAND_REDUCE_POLLUTION ///
  209.     ///////////////////////////////
  210.  
  211.     input my_responses_DEMAND_REDUCE_POLLUTION 
  212.         tri onceplus_i_said_yes_to_DEMAND_REDUCE_POLLUTION(
  213.             my_responses_DEMAND_REDUCE_POLLUTION, 10.0, 9.01)
  214.         tri once_i_said_yes_to_DEMAND_REDUCE_POLLUTION(
  215.             my_responses_DEMAND_REDUCE_POLLUTION, 0.75, 0.26)
  216.         tri i_never_answered_DEMAND_REDUCE_POLLUTION(
  217.             my_responses_DEMAND_REDUCE_POLLUTION, 0.0, 0.26)
  218.         tri once_i_said_no_to_DEMAND_REDUCE_POLLUTION(
  219.             my_responses_DEMAND_REDUCE_POLLUTION, -0.75, 0.26)
  220.         tri onceplus_i_said_no_to_DEMAND_REDUCE_POLLUTION(
  221.             my_responses_DEMAND_REDUCE_POLLUTION, -10.0, 9.01)
  222.  
  223.     output my_responses_decay_DEMAND_REDUCE_POLLUTION[-1.0, 2.0] = 0.93
  224.         tri my_instant_decay_DEMAND_REDUCE_POLLUTION(
  225.             my_responses_decay_DEMAND_REDUCE_POLLUTION, 0.0, 0.5)
  226.         tri my_long_decay_DEMAND_REDUCE_POLLUTION(
  227.             my_responses_decay_DEMAND_REDUCE_POLLUTION, 0.93, 0.5)
  228.         tri my_zero_decay_DEMAND_REDUCE_POLLUTION(
  229.             my_responses_decay_DEMAND_REDUCE_POLLUTION, 1.0, 0.5)
  230.  
  231.     /////////////////////
  232.     /// LOWER_TARIFFS ///
  233.     /////////////////////
  234.  
  235.     input my_responses_DEMAND_LOWER_TARIFFS 
  236.         tri onceplus_i_said_yes_to_DEMAND_LOWER_TARIFFS(
  237.             my_responses_DEMAND_LOWER_TARIFFS, 10.0, 9.01)
  238.         tri once_i_said_yes_to_DEMAND_LOWER_TARIFFS(
  239.             my_responses_DEMAND_LOWER_TARIFFS, 0.75, 0.26)
  240.         tri i_never_answered_DEMAND_LOWER_TARIFFS(
  241.             my_responses_DEMAND_LOWER_TARIFFS, 0.0, 0.26)
  242.         tri once_i_said_no_to_DEMAND_LOWER_TARIFFS(
  243.             my_responses_DEMAND_LOWER_TARIFFS, -0.75, 0.26)
  244.         tri onceplus_i_said_no_to_DEMAND_LOWER_TARIFFS(
  245.             my_responses_DEMAND_LOWER_TARIFFS, -10.0, 9.01)
  246.  
  247.     output my_responses_decay_DEMAND_LOWER_TARIFFS[-1.0, 2.0] = 0.93
  248.         tri my_instant_decay_DEMAND_LOWER_TARIFFS(
  249.             my_responses_decay_DEMAND_LOWER_TARIFFS, 0.0, 0.5)
  250.         tri my_long_decay_DEMAND_LOWER_TARIFFS(
  251.             my_responses_decay_DEMAND_LOWER_TARIFFS, 0.93, 0.5)
  252.         tri my_zero_decay_DEMAND_LOWER_TARIFFS(
  253.             my_responses_decay_DEMAND_LOWER_TARIFFS, 1.0, 0.5)
  254.  
  255.     /////////////////////
  256.     /// OFFER_ADVANCE ///
  257.     /////////////////////
  258.  
  259.     input my_responses_OFFER_ADVANCE 
  260.         tri onceplus_i_said_yes_to_OFFER_ADVANCE(
  261.             my_responses_OFFER_ADVANCE, 10.0, 9.01)
  262.         tri once_i_said_yes_to_OFFER_ADVANCE(
  263.             my_responses_OFFER_ADVANCE, 0.75, 0.26)
  264.         tri i_never_answered_OFFER_ADVANCE(
  265.             my_responses_OFFER_ADVANCE, 0.0, 0.26)
  266.         tri once_i_said_no_to_OFFER_ADVANCE(
  267.             my_responses_OFFER_ADVANCE, -0.75, 0.26)
  268.         tri onceplus_i_said_no_to_OFFER_ADVANCE(
  269.             my_responses_OFFER_ADVANCE, -10.0, 9.01)
  270.  
  271.     output my_responses_decay_OFFER_ADVANCE[-1.0, 2.0] = 0.93
  272.         tri my_instant_decay_OFFER_ADVANCE(
  273.             my_responses_decay_OFFER_ADVANCE, 0.0, 0.5)
  274.         tri my_long_decay_OFFER_ADVANCE(
  275.             my_responses_decay_OFFER_ADVANCE, 0.93, 0.5)
  276.         tri my_zero_decay_OFFER_ADVANCE(
  277.             my_responses_decay_OFFER_ADVANCE, 1.0, 0.5)
  278.  
  279.     //////////////////
  280.     /// OFFER_CITY ///
  281.     //////////////////
  282.  
  283.     input my_responses_OFFER_CITY 
  284.         tri onceplus_i_said_yes_to_OFFER_CITY(
  285.             my_responses_OFFER_CITY, 10.0, 9.01)
  286.         tri once_i_said_yes_to_OFFER_CITY(
  287.             my_responses_OFFER_CITY, 0.75, 0.26)
  288.         tri i_never_answered_OFFER_CITY(
  289.             my_responses_OFFER_CITY, 0.0, 0.26)
  290.         tri once_i_said_no_to_OFFER_CITY(
  291.             my_responses_OFFER_CITY, -0.75, 0.26)
  292.         tri onceplus_i_said_no_to_OFFER_CITY(
  293.             my_responses_OFFER_CITY, -10.0, 9.01)
  294.  
  295.     output my_responses_decay_OFFER_CITY[-1.0, 2.0] = 0.93
  296.         tri my_instant_decay_OFFER_CITY(
  297.             my_responses_decay_OFFER_CITY, 0.0, 0.5)
  298.         tri my_long_decay_OFFER_CITY(
  299.             my_responses_decay_OFFER_CITY, 0.93, 0.5)
  300.         tri my_zero_decay_OFFER_CITY(
  301.             my_responses_decay_OFFER_CITY, 1.0, 0.5)
  302.  
  303.     /////////////////
  304.     /// OFFER_MAP ///
  305.     /////////////////
  306.  
  307.     input my_responses_OFFER_MAP 
  308.         tri onceplus_i_said_yes_to_OFFER_MAP(
  309.             my_responses_OFFER_MAP, 10.0, 9.01)
  310.         tri once_i_said_yes_to_OFFER_MAP(
  311.             my_responses_OFFER_MAP, 0.75, 0.26)
  312.         tri i_never_answered_OFFER_MAP(
  313.             my_responses_OFFER_MAP, 0.0, 0.26)
  314.         tri once_i_said_no_to_OFFER_MAP(
  315.             my_responses_OFFER_MAP, -0.75, 0.26)
  316.         tri onceplus_i_said_no_to_OFFER_MAP(
  317.             my_responses_OFFER_MAP, -10.0, 9.01)
  318.  
  319.     output my_responses_decay_OFFER_MAP[-1.0, 2.0] = 0.93
  320.         tri my_instant_decay_OFFER_MAP(
  321.             my_responses_decay_OFFER_MAP, 0.0, 0.5)
  322.         tri my_long_decay_OFFER_MAP(
  323.             my_responses_decay_OFFER_MAP, 0.93, 0.5)
  324.         tri my_zero_decay_OFFER_MAP(
  325.             my_responses_decay_OFFER_MAP, 1.0, 0.5)
  326.  
  327.     //////////////////
  328.     /// OFFER_GOLD ///
  329.     //////////////////
  330.  
  331.     input my_responses_OFFER_GOLD 
  332.         tri onceplus_i_said_yes_to_OFFER_GOLD(
  333.             my_responses_OFFER_GOLD, 10.0, 9.01)
  334.         tri once_i_said_yes_to_OFFER_GOLD(
  335.             my_responses_OFFER_GOLD, 0.75, 0.26)
  336.         tri i_never_answered_OFFER_GOLD(
  337.             my_responses_OFFER_GOLD, 0.0, 0.26)
  338.         tri once_i_said_no_to_OFFER_GOLD(
  339.             my_responses_OFFER_GOLD, -0.75, 0.26)
  340.         tri onceplus_i_said_no_to_OFFER_GOLD(
  341.             my_responses_OFFER_GOLD, -10.0, 9.01)
  342.  
  343.     output my_responses_decay_OFFER_GOLD[-1.0, 2.0] = 0.93
  344.         tri my_instant_decay_OFFER_GOLD(
  345.             my_responses_decay_OFFER_GOLD, 0.0, 0.5)
  346.         tri my_long_decay_OFFER_GOLD(
  347.             my_responses_decay_OFFER_GOLD, 0.93, 0.5)
  348.         tri my_zero_decay_OFFER_GOLD(
  349.             my_responses_decay_OFFER_GOLD, 1.0, 0.5)
  350.  
  351.     output enough_me_accepting_OFFER_GOLD[0.0, 2.0] = 0.1
  352.         tri yes_enough_me_accepting_OFFER_GOLD(
  353.             enough_me_accepting_OFFER_GOLD, 1.0, 0.5)
  354.  
  355.     if(onceplus_i_said_yes_to_OFFER_GOLD or once_i_said_yes_to_OFFER_GOLD)
  356.     {
  357.         yes_enough_me_accepting_OFFER_GOLD
  358.     }
  359.     
  360.     ////////////////////////
  361.     /// OFFER_CEASE_FIRE ///
  362.     ////////////////////////
  363.  
  364.     input my_responses_OFFER_CEASE_FIRE 
  365.         tri onceplus_i_said_yes_to_OFFER_CEASE_FIRE(
  366.             my_responses_OFFER_CEASE_FIRE, 10.0, 9.01)
  367.         tri once_i_said_yes_to_OFFER_CEASE_FIRE(
  368.             my_responses_OFFER_CEASE_FIRE, 0.75, 0.26)
  369.         tri i_never_answered_OFFER_CEASE_FIRE(
  370.             my_responses_OFFER_CEASE_FIRE, 0.0, 0.26)
  371.         tri once_i_said_no_to_OFFER_CEASE_FIRE(
  372.             my_responses_OFFER_CEASE_FIRE, -0.75, 0.26)
  373.         tri onceplus_i_said_no_to_OFFER_CEASE_FIRE(
  374.             my_responses_OFFER_CEASE_FIRE, -10.0, 9.01)
  375.  
  376.     output my_responses_decay_OFFER_CEASE_FIRE[-1.0, 2.0] = 0.965
  377.         tri my_instant_decay_OFFER_CEASE_FIRE(
  378.             my_responses_decay_OFFER_CEASE_FIRE, 0.0, 0.5)
  379.         tri my_long_decay_OFFER_CEASE_FIRE(
  380.             my_responses_decay_OFFER_CEASE_FIRE, 0.93, 0.5)
  381.         tri my_zero_decay_OFFER_CEASE_FIRE(
  382.             my_responses_decay_OFFER_CEASE_FIRE, 1.0, 0.5)
  383.  
  384.     ////////////////////////////////
  385.     /// OFFER_PERMANENT_ALLIANCE ///
  386.     ////////////////////////////////
  387.  
  388.     input my_responses_OFFER_PERMANENT_ALLIANCE 
  389.         tri onceplus_i_said_yes_to_OFFER_PERMANENT_ALLIANCE(
  390.             my_responses_OFFER_PERMANENT_ALLIANCE, 10.0, 9.01)
  391.         tri once_i_said_yes_to_OFFER_PERMANENT_ALLIANCE(
  392.             my_responses_OFFER_PERMANENT_ALLIANCE, 0.75, 0.26)
  393.         tri i_never_answered_OFFER_PERMANENT_ALLIANCE(
  394.             my_responses_OFFER_PERMANENT_ALLIANCE, 0.0, 0.26)
  395.         tri once_i_said_no_to_OFFER_PERMANENT_ALLIANCE(
  396.             my_responses_OFFER_PERMANENT_ALLIANCE, -0.75, 0.26)
  397.         tri onceplus_i_said_no_to_OFFER_PERMANENT_ALLIANCE(
  398.             my_responses_OFFER_PERMANENT_ALLIANCE, -10.0, 9.01)
  399.  
  400.     output my_responses_decay_OFFER_PERMANENT_ALLIANCE[-1.0, 2.0] = 0.93
  401.         tri my_instant_decay_OFFER_PERMANENT_ALLIANCE(
  402.             my_responses_decay_OFFER_PERMANENT_ALLIANCE, 0.0, 0.5)
  403.         tri my_long_decay_OFFER_PERMANENT_ALLIANCE(
  404.             my_responses_decay_OFFER_PERMANENT_ALLIANCE, 0.93, 0.5)
  405.         tri my_zero_decay_OFFER_PERMANENT_ALLIANCE(
  406.             my_responses_decay_OFFER_PERMANENT_ALLIANCE, 1.0, 0.5)
  407.  
  408.     ///////////////////////////////
  409.     /// OFFER_PACT_CAPTURE_CITY ///
  410.     ///////////////////////////////
  411.  
  412.     input my_responses_OFFER_PACT_CAPTURE_CITY 
  413.         tri onceplus_i_said_yes_to_OFFER_PACT_CAPTURE_CITY(
  414.             my_responses_OFFER_PACT_CAPTURE_CITY, 10.0, 9.01)
  415.         tri once_i_said_yes_to_OFFER_PACT_CAPTURE_CITY(
  416.             my_responses_OFFER_PACT_CAPTURE_CITY, 0.75, 0.26)
  417.         tri i_never_answered_OFFER_PACT_CAPTURE_CITY(
  418.             my_responses_OFFER_PACT_CAPTURE_CITY, 0.0, 0.26)
  419.         tri once_i_said_no_to_OFFER_PACT_CAPTURE_CITY(
  420.             my_responses_OFFER_PACT_CAPTURE_CITY, -0.75, 0.26)
  421.         tri onceplus_i_said_no_to_OFFER_PACT_CAPTURE_CITY(
  422.             my_responses_OFFER_PACT_CAPTURE_CITY, -10.0, 9.01)
  423.  
  424.     output my_responses_decay_OFFER_PACT_CAPTURE_CITY[-1.0, 2.0] = 0.93
  425.         tri my_instant_decay_OFFER_PACT_CAPTURE_CITY(
  426.             my_responses_decay_OFFER_PACT_CAPTURE_CITY, 0.0, 0.5)
  427.         tri my_long_decay_OFFER_PACT_CAPTURE_CITY(
  428.             my_responses_decay_OFFER_PACT_CAPTURE_CITY, 0.93, 0.5)
  429.         tri my_zero_decay_OFFER_PACT_CAPTURE_CITY(
  430.             my_responses_decay_OFFER_PACT_CAPTURE_CITY, 1.0, 0.5)
  431.  
  432.     ////////////////////////////////
  433.     /// OFFER_PACT_END_POLLUTION ///
  434.     ////////////////////////////////
  435.  
  436.     input my_responses_OFFER_PACT_END_POLLUTION 
  437.         tri onceplus_i_said_yes_to_OFFER_PACT_END_POLLUTION(
  438.             my_responses_OFFER_PACT_END_POLLUTION, 10.0, 9.01)
  439.         tri once_i_said_yes_to_OFFER_PACT_END_POLLUTION(
  440.             my_responses_OFFER_PACT_END_POLLUTION, 0.75, 0.26)
  441.         tri i_never_answered_OFFER_PACT_END_POLLUTION(
  442.             my_responses_OFFER_PACT_END_POLLUTION, 0.0, 0.26)
  443.         tri once_i_said_no_to_OFFER_PACT_END_POLLUTION(
  444.             my_responses_OFFER_PACT_END_POLLUTION, -0.75, 0.26)
  445.         tri onceplus_i_said_no_to_OFFER_PACT_END_POLLUTION(
  446.             my_responses_OFFER_PACT_END_POLLUTION, -10.0, 9.01)
  447.  
  448.     output my_responses_decay_OFFER_PACT_END_POLLUTION[-1.0, 2.0] = 0.93
  449.         tri my_instant_decay_OFFER_PACT_END_POLLUTION(
  450.             my_responses_decay_OFFER_PACT_END_POLLUTION, 0.0, 0.5)
  451.         tri my_long_decay_OFFER_PACT_END_POLLUTION(
  452.             my_responses_decay_OFFER_PACT_END_POLLUTION, 0.93, 0.5)
  453.         tri my_zero_decay_OFFER_PACT_END_POLLUTION(
  454.             my_responses_decay_OFFER_PACT_END_POLLUTION, 1.0, 0.5)
  455.  
  456.     ////////////////////////
  457.     /// EXCHANGE_ADVANCE ///
  458.     ////////////////////////
  459.  
  460.     input my_responses_EXCHANGE_ADVANCE 
  461.         tri onceplus_i_said_yes_to_EXCHANGE_ADVANCE(
  462.             my_responses_EXCHANGE_ADVANCE, 10.0, 9.01)
  463.         tri once_i_said_yes_to_EXCHANGE_ADVANCE(
  464.             my_responses_EXCHANGE_ADVANCE, 0.75, 0.26)
  465.         tri i_never_answered_EXCHANGE_ADVANCE(
  466.             my_responses_EXCHANGE_ADVANCE, 0.0, 0.26)
  467.         tri once_i_said_no_to_EXCHANGE_ADVANCE(
  468.             my_responses_EXCHANGE_ADVANCE, -0.75, 0.26)
  469.         tri onceplus_i_said_no_to_EXCHANGE_ADVANCE(
  470.             my_responses_EXCHANGE_ADVANCE, -10.0, 9.01)
  471.  
  472.     output my_responses_decay_EXCHANGE_ADVANCE[-1.0, 2.0] = 0.93
  473.         tri my_instant_decay_EXCHANGE_ADVANCE(
  474.             my_responses_decay_EXCHANGE_ADVANCE, 0.0, 0.5)
  475.         tri my_long_decay_EXCHANGE_ADVANCE(
  476.             my_responses_decay_EXCHANGE_ADVANCE, 0.93, 0.5)
  477.         tri my_zero_decay_EXCHANGE_ADVANCE(
  478.             my_responses_decay_EXCHANGE_ADVANCE, 1.0, 0.5)
  479.  
  480.     /////////////////////
  481.     /// EXCHANGE_CITY ///
  482.     /////////////////////
  483.  
  484.     input my_responses_EXCHANGE_CITY 
  485.         tri onceplus_i_said_yes_to_EXCHANGE_CITY(
  486.             my_responses_EXCHANGE_CITY, 10.0, 9.01)
  487.         tri once_i_said_yes_to_EXCHANGE_CITY(
  488.             my_responses_EXCHANGE_CITY, 0.75, 0.26)
  489.         tri i_never_answered_EXCHANGE_CITY(
  490.             my_responses_EXCHANGE_CITY, 0.0, 0.26)
  491.         tri once_i_said_no_to_EXCHANGE_CITY(
  492.             my_responses_EXCHANGE_CITY, -0.75, 0.26)
  493.         tri onceplus_i_said_no_to_EXCHANGE_CITY(
  494.             my_responses_EXCHANGE_CITY, -10.0, 9.01)
  495.  
  496.     output my_responses_decay_EXCHANGE_CITY[-1.0, 2.0] = 0.93
  497.         tri my_instant_decay_EXCHANGE_CITY(
  498.             my_responses_decay_EXCHANGE_CITY, 0.0, 0.5)
  499.         tri my_long_decay_EXCHANGE_CITY(
  500.             my_responses_decay_EXCHANGE_CITY, 0.93, 0.5)
  501.         tri my_zero_decay_EXCHANGE_CITY(
  502.             my_responses_decay_EXCHANGE_CITY, 1.0, 0.5)
  503.  
  504.     ////////////////////
  505.     /// EXCHANGE_MAP ///
  506.     ////////////////////
  507.  
  508.     input my_responses_EXCHANGE_MAP 
  509.         tri onceplus_i_said_yes_to_EXCHANGE_MAP(
  510.             my_responses_EXCHANGE_MAP, 10.0, 9.01)
  511.         tri once_i_said_yes_to_EXCHANGE_MAP(
  512.             my_responses_EXCHANGE_MAP, 0.75, 0.26)
  513.         tri i_never_answered_EXCHANGE_MAP(
  514.             my_responses_EXCHANGE_MAP, 0.0, 0.26)
  515.         tri once_i_said_no_to_EXCHANGE_MAP(
  516.             my_responses_EXCHANGE_MAP, -0.75, 0.26)
  517.         tri onceplus_i_said_no_to_EXCHANGE_MAP(
  518.             my_responses_EXCHANGE_MAP, -10.0, 9.01)
  519.  
  520.     output my_responses_decay_EXCHANGE_MAP[-1.0, 2.0] = 0.93
  521.         tri my_instant_decay_EXCHANGE_MAP(
  522.             my_responses_decay_EXCHANGE_MAP, 0.0, 0.5)
  523.         tri my_long_decay_EXCHANGE_MAP(
  524.             my_responses_decay_EXCHANGE_MAP, 0.93, 0.5)
  525.         tri my_zero_decay_EXCHANGE_MAP(
  526.             my_responses_decay_EXCHANGE_MAP, 1.0, 0.5)
  527.  
  528. //kjm i took this out
  529. //    output enough_me_asking_to_EXCHANGE_MAP[0.0, 2.0] = 0.0
  530. //    tri yes_enough_me_giving_in_to_EXCHANGE_(
  531. //            enough_me_giving_in_to_EXCHANGE_, 1.0, 0.5)
  532. //
  533.  
  534. //kjm 3/1/99 it seems to want this
  535.     output enough_me_giving_in_to_EXCHANGE_MAP[0.0, 2.0] = 0.0
  536.         tri yes_enough_me_giving_in_to_EXCHANGE_MAP(
  537.             enough_me_giving_in_to_EXCHANGE_MAP, 1.0, 0.5)
  538.  
  539.  
  540.  
  541.     if(onceplus_i_said_yes_to_EXCHANGE_MAP or once_i_said_yes_to_EXCHANGE_MAP)
  542.     {
  543.         yes_enough_me_giving_in_to_EXCHANGE_MAP
  544.     }
  545.  
  546.     /////////////////////////////////////////////////////////////////////////////
  547.     /// THESE INPUTS ARE FOR REMEMBERING WHAT MESSAGES HE ACCEPTED OR REJECTED ///
  548.     /////////////////////////////////////////////////////////////////////////////
  549.     // Me is always the AI currently calculating an action.
  550.     // Him is the Player that I am corresponding with.
  551.     // When I say yes, I add one to my memory unless my memory is negative.
  552.     // If my_responses is currently negative, and the AI says yes, then the
  553.     // old memory is scrubbed completely and only the new positive count is kept.
  554.     // The same applies for rejection, which sets my_responses to -1.
  555.  
  556.     ////////////////////////////////////////////////
  557.     /// THESE OUTPUTS ARE FOR DECAYING HIS MEMORY ///
  558.     ////////////////////////////////////////////////
  559.     
  560.     // Once per turn, the my_responses memory is decayed by whatever the fli system
  561.     // requests. Decay is done by multiplication. A decay of one creates a perfect memory.
  562.     // A decay of zero creates a count for this turn only.
  563.     // If not set, these default to one.
  564.  
  565.     ////////////////
  566.     /// GREETING ///
  567.     ////////////////
  568.         
  569.     input his_responses_GREETING 
  570.         tri onceplus_he_said_yes_to_GREETING(
  571.             his_responses_GREETING, 10.0, 9.01)
  572.         tri once_he_said_yes_to_GREETING(
  573.             his_responses_GREETING, 0.75, 0.26)
  574.         tri he_never_answered_GREETING(
  575.             his_responses_GREETING, 0.0, 0.26)
  576.         tri once_he_said_no_to_GREETING(
  577.             his_responses_GREETING, -0.75, 0.26)
  578.         tri onceplus_he_said_no_to_GREETING(
  579.             his_responses_GREETING, -10.0, 9.01)
  580.  
  581.     output his_responses_decay_GREETING[-1.0, 2.0] = 1.0
  582.         tri his_instant_decay_GREETING(
  583.             his_responses_decay_GREETING, 0.0, 0.5)
  584.         tri his_long_decay_GREETING(
  585.             his_responses_decay_GREETING, 0.93, 0.5)
  586.         tri his_zero_decay_GREETING(
  587.             his_responses_decay_GREETING, 1.0, 0.5)
  588.  
  589.     //////////////////////
  590.     /// DEMAND_ADVANCE ///
  591.     //////////////////////
  592.         
  593.     input his_responses_DEMAND_ADVANCE 
  594.         tri onceplus_he_said_yes_to_DEMAND_ADVANCE(
  595.             his_responses_DEMAND_ADVANCE, 10.0, 9.01)
  596.         tri once_he_said_yes_to_DEMAND_ADVANCE(
  597.             his_responses_DEMAND_ADVANCE, 0.75, 0.26)
  598.         tri he_never_answered_DEMAND_ADVANCE(
  599.             his_responses_DEMAND_ADVANCE, 0.0, 0.26)
  600.         tri once_he_said_no_to_DEMAND_ADVANCE(
  601.             his_responses_DEMAND_ADVANCE, -0.75, 0.26)
  602.         tri onceplus_he_said_no_to_DEMAND_ADVANCE(
  603.             his_responses_DEMAND_ADVANCE, -10.0, 9.01)
  604.  
  605.     output his_responses_decay_DEMAND_ADVANCE[-1.0, 2.0] = 0.93
  606.         tri his_instant_decay_DEMAND_ADVANCE(
  607.             his_responses_decay_DEMAND_ADVANCE, 0.0, 0.5)
  608.         tri his_long_decay_DEMAND_ADVANCE(
  609.             his_responses_decay_DEMAND_ADVANCE, 0.93, 0.5)
  610.         tri his_zero_decay_DEMAND_ADVANCE(
  611.             his_responses_decay_DEMAND_ADVANCE, 1.0, 0.5)
  612.  
  613.     ///////////////////
  614.     /// DEMAND_CITY ///
  615.     ///////////////////
  616.  
  617.     input his_responses_DEMAND_CITY 
  618.         tri onceplus_he_said_yes_to_DEMAND_CITY(
  619.             his_responses_DEMAND_CITY, 10.0, 9.01)
  620.         tri once_he_said_yes_to_DEMAND_CITY(
  621.             his_responses_DEMAND_CITY, 0.75, 0.26)
  622.         tri he_never_answered_DEMAND_CITY(
  623.             his_responses_DEMAND_CITY, 0.0, 0.26)
  624.         tri once_he_said_no_to_DEMAND_CITY(
  625.             his_responses_DEMAND_CITY, -0.75, 0.26)
  626.         tri onceplus_he_said_no_to_DEMAND_CITY(
  627.             his_responses_DEMAND_CITY, -10.0, 9.01)
  628.  
  629.     output his_responses_decay_DEMAND_CITY[-1.0, 2.0] = 0.93
  630.         tri his_instant_decay_DEMAND_CITY(
  631.             his_responses_decay_DEMAND_CITY, 0.0, 0.5)
  632.         tri his_long_decay_DEMAND_CITY(
  633.             his_responses_decay_DEMAND_CITY, 0.93, 0.5)
  634.         tri his_zero_decay_DEMAND_CITY(
  635.             his_responses_decay_DEMAND_CITY, 1.0, 0.5)
  636.  
  637.     //////////////////
  638.     /// DEMAND_MAP ///
  639.     //////////////////
  640.  
  641.     input his_responses_DEMAND_MAP 
  642.         tri onceplus_he_said_yes_to_DEMAND_MAP(
  643.             his_responses_DEMAND_MAP, 10.0, 9.01)
  644.         tri once_he_said_yes_to_DEMAND_MAP(
  645.             his_responses_DEMAND_MAP, 0.75, 0.26)
  646.         tri he_never_answered_DEMAND_MAP(
  647.             his_responses_DEMAND_MAP, 0.0, 0.26)
  648.         tri once_he_said_no_to_DEMAND_MAP(
  649.             his_responses_DEMAND_MAP, -0.75, 0.26)
  650.         tri onceplus_he_said_no_to_DEMAND_MAP(
  651.             his_responses_DEMAND_MAP, -10.0, 9.01)
  652.  
  653.     output his_responses_decay_DEMAND_MAP[-1.0, 2.0] = 0.93
  654.         tri his_instant_decay_DEMAND_MAP(
  655.             his_responses_decay_DEMAND_MAP, 0.0, 0.5)
  656.         tri his_long_decay_DEMAND_MAP(
  657.             his_responses_decay_DEMAND_MAP, 0.93, 0.5)
  658.         tri his_zero_decay_DEMAND_MAP(
  659.             his_responses_decay_DEMAND_MAP, 1.0, 0.5)
  660.  
  661.     ///////////////////
  662.     /// DEMAND_GOLD ///
  663.     ///////////////////
  664.  
  665.     input his_responses_DEMAND_GOLD 
  666.         tri onceplus_he_said_yes_to_DEMAND_GOLD(
  667.             his_responses_DEMAND_GOLD, 10.0, 9.01)
  668.         tri once_he_said_yes_to_DEMAND_GOLD(
  669.             his_responses_DEMAND_GOLD, 0.75, 0.26)
  670.         tri he_never_answered_DEMAND_GOLD(
  671.             his_responses_DEMAND_GOLD, 0.0, 0.26)
  672.         tri once_he_said_no_to_DEMAND_GOLD(
  673.             his_responses_DEMAND_GOLD, -0.75, 0.26)
  674.         tri onceplus_he_said_no_to_DEMAND_GOLD(
  675.             his_responses_DEMAND_GOLD, -10.0, 9.01)
  676.  
  677.     output his_responses_decay_DEMAND_GOLD[-1.0, 2.0] = 0.97
  678.         tri his_instant_decay_DEMAND_GOLD(
  679.             his_responses_decay_DEMAND_GOLD, 0.0, 0.5)
  680.         tri his_long_decay_DEMAND_GOLD(
  681.             his_responses_decay_DEMAND_GOLD, 0.93, 0.5)
  682.         tri his_zero_decay_DEMAND_GOLD(
  683.             his_responses_decay_DEMAND_GOLD, 1.0, 0.5)
  684.  
  685.     /////////////////////////
  686.     /// DEMAND_STOP_TRADE ///
  687.     /////////////////////////
  688.  
  689.     input his_responses_DEMAND_STOP_TRADE 
  690.         tri onceplus_he_said_yes_to_DEMAND_STOP_TRADE(
  691.             his_responses_DEMAND_STOP_TRADE, 10.0, 9.01)
  692.         tri once_he_said_yes_to_DEMAND_STOP_TRADE(
  693.             his_responses_DEMAND_STOP_TRADE, 0.75, 0.26)
  694.         tri he_never_answered_DEMAND_STOP_TRADE(
  695.             his_responses_DEMAND_STOP_TRADE, 0.0, 0.26)
  696.         tri once_he_said_no_to_DEMAND_STOP_TRADE(
  697.             his_responses_DEMAND_STOP_TRADE, -0.75, 0.26)
  698.         tri onceplus_he_said_no_to_DEMAND_STOP_TRADE(
  699.             his_responses_DEMAND_STOP_TRADE, -10.0, 9.01)
  700.  
  701.     output his_responses_decay_DEMAND_STOP_TRADE[-1.0, 2.0] = 0.93
  702.         tri his_instant_decay_DEMAND_STOP_TRADE(
  703.             his_responses_decay_DEMAND_STOP_TRADE, 0.0, 0.5)
  704.         tri his_long_decay_DEMAND_STOP_TRADE(
  705.             his_responses_decay_DEMAND_STOP_TRADE, 0.93, 0.5)
  706.         tri his_zero_decay_DEMAND_STOP_TRADE(
  707.             his_responses_decay_DEMAND_STOP_TRADE, 1.0, 0.5)
  708.  
  709.     ///////////////////////////
  710.     /// DEMAND_ATTACK_ENEMY ///
  711.     ///////////////////////////
  712.  
  713.     input his_responses_DEMAND_ATTACK_ENEMY 
  714.         tri onceplus_he_said_yes_to_DEMAND_ATTACK_ENEMY(
  715.             his_responses_DEMAND_ATTACK_ENEMY, 10.0, 9.01)
  716.         tri once_he_said_yes_to_DEMAND_ATTACK_ENEMY(
  717.             his_responses_DEMAND_ATTACK_ENEMY, 0.75, 0.26)
  718.         tri he_never_answered_DEMAND_ATTACK_ENEMY(
  719.             his_responses_DEMAND_ATTACK_ENEMY, 0.0, 0.26)
  720.         tri once_he_said_no_to_DEMAND_ATTACK_ENEMY(
  721.             his_responses_DEMAND_ATTACK_ENEMY, -0.75, 0.26)
  722.         tri onceplus_he_said_no_to_DEMAND_ATTACK_ENEMY(
  723.             his_responses_DEMAND_ATTACK_ENEMY, -10.0, 9.01)
  724.  
  725.     output his_responses_decay_DEMAND_ATTACK_ENEMY[-1.0, 2.0] = 0.965
  726.         tri his_instant_decay_DEMAND_ATTACK_ENEMY(
  727.             his_responses_decay_DEMAND_ATTACK_ENEMY, 0.0, 0.5)
  728.         tri his_long_decay_DEMAND_ATTACK_ENEMY(
  729.             his_responses_decay_DEMAND_ATTACK_ENEMY, 0.93, 0.5)
  730.         tri his_zero_decay_DEMAND_ATTACK_ENEMY(
  731.             his_responses_decay_DEMAND_ATTACK_ENEMY, 1.0, 0.5)
  732.  
  733.     //////////////////////////////
  734.     /// DEMAND_LEAVE_OUR_LANDS ///
  735.     //////////////////////////////
  736.     
  737.     input his_responses_DEMAND_LEAVE_OUR_LANDS 
  738.         tri onceplus_he_said_yes_to_DEMAND_LEAVE_OUR_LANDS(
  739.             his_responses_DEMAND_LEAVE_OUR_LANDS, 10.0, 9.01)
  740.  
  741.         tri once_he_said_yes_to_DEMAND_LEAVE_OUR_LANDS(
  742.             his_responses_DEMAND_LEAVE_OUR_LANDS, 0.75, 0.26)
  743.  
  744.         tri he_never_answered_DEMAND_LEAVE_OUR_LANDS(
  745.             his_responses_DEMAND_LEAVE_OUR_LANDS, 0.0, 0.5)
  746.  
  747.         tri once_he_said_no_to_DEMAND_LEAVE_OUR_LANDS(
  748.             his_responses_DEMAND_LEAVE_OUR_LANDS, -0.76, .25)
  749.  
  750.         tri twice_he_said_no_to_DEMAND_LEAVE_OUR_LANDS(
  751.             his_responses_DEMAND_LEAVE_OUR_LANDS, -1.4, 0.2)
  752.  
  753.         tri onceplus_he_said_no_to_DEMAND_LEAVE_OUR_LANDS(
  754.             his_responses_DEMAND_LEAVE_OUR_LANDS, -10.0, 9.01)
  755.  
  756.     output his_responses_decay_DEMAND_LEAVE_OUR_LANDS[-1.0, 2.0] = 0.93
  757.         tri his_instant_decay_DEMAND_LEAVE_OUR_LANDS(
  758.             his_responses_decay_DEMAND_LEAVE_OUR_LANDS, 0.0, 0.5)
  759.         tri his_long_decay_DEMAND_LEAVE_OUR_LANDS(
  760.             his_responses_decay_DEMAND_LEAVE_OUR_LANDS, 0.93, 0.5)
  761.         tri his_longer_decay_DEMAND_LEAVE_OUR_LANDS(
  762.             his_responses_decay_DEMAND_LEAVE_OUR_LANDS, 0.965, 0.5)
  763.         tri his_zero_decay_DEMAND_LEAVE_OUR_LANDS(
  764.             his_responses_decay_DEMAND_LEAVE_OUR_LANDS, 1.0, 0.5)
  765.  
  766.     ///////////////////////////////
  767.     /// DEMAND_REDUCE_POLLUTION ///
  768.     ///////////////////////////////
  769.  
  770.     input his_responses_DEMAND_REDUCE_POLLUTION 
  771.         tri onceplus_he_said_yes_to_DEMAND_REDUCE_POLLUTION(
  772.             his_responses_DEMAND_REDUCE_POLLUTION, 10.0, 9.01)
  773.         tri once_he_said_yes_to_DEMAND_REDUCE_POLLUTION(
  774.             his_responses_DEMAND_REDUCE_POLLUTION, 0.75, 0.26)
  775.         tri he_never_answered_DEMAND_REDUCE_POLLUTION(
  776.             his_responses_DEMAND_REDUCE_POLLUTION, 0.0, 0.5)
  777.         tri once_he_said_no_to_DEMAND_REDUCE_POLLUTION(
  778.             his_responses_DEMAND_REDUCE_POLLUTION, -0.75, 0.26)
  779.         tri onceplus_he_said_no_to_DEMAND_REDUCE_POLLUTION(
  780.             his_responses_DEMAND_REDUCE_POLLUTION, -10.0, 9.01)
  781.  
  782.     output his_responses_decay_DEMAND_REDUCE_POLLUTION[-1.0, 2.0] = 0.93
  783.         tri his_instant_decay_DEMAND_REDUCE_POLLUTION(
  784.             his_responses_decay_DEMAND_REDUCE_POLLUTION, 0.0, 0.5)
  785.         tri his_long_decay_DEMAND_REDUCE_POLLUTION(
  786.             his_responses_decay_DEMAND_REDUCE_POLLUTION, 0.93, 0.5)
  787.         tri his_zero_decay_DEMAND_REDUCE_POLLUTION(
  788.             his_responses_decay_DEMAND_REDUCE_POLLUTION, 1.0, 0.5)
  789.  
  790.     /////////////////////
  791.     /// LOWER_TARIFFS ///
  792.     /////////////////////
  793.  
  794.     input his_responses_DEMAND_LOWER_TARIFFS 
  795.         tri onceplus_he_said_yes_to_DEMAND_LOWER_TARIFFS(
  796.             his_responses_DEMAND_LOWER_TARIFFS, 10.0, 9.01)
  797.         tri once_he_said_yes_to_DEMAND_LOWER_TARIFFS(
  798.             his_responses_DEMAND_LOWER_TARIFFS, 0.75, 0.26)
  799.         tri he_never_answered_DEMAND_LOWER_TARIFFS(
  800.             his_responses_DEMAND_LOWER_TARIFFS, 0.0, 0.5)
  801.         tri once_he_said_no_to_DEMAND_LOWER_TARIFFS(
  802.             his_responses_DEMAND_LOWER_TARIFFS, -0.75, 0.26)
  803.         tri onceplus_he_said_no_to_DEMAND_LOWER_TARIFFS(
  804.             his_responses_DEMAND_LOWER_TARIFFS, -10.0, 9.01)
  805.  
  806.     output his_responses_decay_DEMAND_LOWER_TARIFFS[-1.0, 2.0] = 0.93
  807.         tri his_instant_decay_DEMAND_LOWER_TARIFFS(
  808.             his_responses_decay_DEMAND_LOWER_TARIFFS, 0.0, 0.5)
  809.         tri his_long_decay_DEMAND_LOWER_TARIFFS(
  810.             his_responses_decay_DEMAND_LOWER_TARIFFS, 0.93, 0.5)
  811.         tri his_zero_decay_DEMAND_LOWER_TARIFFS(
  812.             his_responses_decay_DEMAND_LOWER_TARIFFS, 1.0, 0.5)
  813.  
  814.     /////////////////////
  815.     /// OFFER_ADVANCE ///
  816.     /////////////////////
  817.  
  818.     input his_responses_OFFER_ADVANCE 
  819.         tri onceplus_he_said_yes_to_OFFER_ADVANCE(
  820.             his_responses_OFFER_ADVANCE, 10.0, 9.01)
  821.         tri once_he_said_yes_to_OFFER_ADVANCE(
  822.             his_responses_OFFER_ADVANCE, 0.75, 0.26)
  823.         tri he_never_answered_OFFER_ADVANCE(
  824.             his_responses_OFFER_ADVANCE, 0.0, 0.26)
  825.         tri once_he_said_no_to_OFFER_ADVANCE(
  826.             his_responses_OFFER_ADVANCE, -0.75, 0.26)
  827.         tri onceplus_he_said_no_to_OFFER_ADVANCE(
  828.             his_responses_OFFER_ADVANCE, -10.0, 9.01)
  829.  
  830.     output his_responses_decay_OFFER_ADVANCE[-1.0, 2.0] = 0.93
  831.         tri his_instant_decay_OFFER_ADVANCE(
  832.             his_responses_decay_OFFER_ADVANCE, 0.0, 0.5)
  833.         tri his_long_decay_OFFER_ADVANCE(
  834.             his_responses_decay_OFFER_ADVANCE, 0.93, 0.5)
  835.         tri his_zero_decay_OFFER_ADVANCE(
  836.             his_responses_decay_OFFER_ADVANCE, 1.0, 0.5)
  837.  
  838.     ///////////////////
  839.     /// OFFER_CITY  ///
  840.     ///////////////////
  841.  
  842.     input his_responses_OFFER_CITY 
  843.         tri onceplus_he_said_yes_to_OFFER_CITY(
  844.             his_responses_OFFER_CITY, 10.0, 9.01)
  845.         tri once_he_said_yes_to_OFFER_CITY(
  846.             his_responses_OFFER_CITY, 0.75, 0.26)
  847.         tri he_never_answered_OFFER_CITY(
  848.             his_responses_OFFER_CITY, 0.0, 0.26)
  849.         tri once_he_said_no_to_OFFER_CITY(
  850.             his_responses_OFFER_CITY, -0.75, 0.26)
  851.         tri onceplus_he_said_no_to_OFFER_CITY(
  852.             his_responses_OFFER_CITY, -10.0, 9.01)
  853.  
  854.     output his_responses_decay_OFFER_CITY[-1.0, 2.0] = 0.93
  855.         tri his_instant_decay_OFFER_CITY(
  856.             his_responses_decay_OFFER_CITY, 0.0, 0.5)
  857.         tri his_long_decay_OFFER_CITY(
  858.             his_responses_decay_OFFER_CITY, 0.93, 0.5)
  859.         tri his_zero_decay_OFFER_CITY(
  860.             his_responses_decay_OFFER_CITY, 1.0, 0.5)
  861.  
  862.     /////////////////
  863.     /// OFFER_MAP ///
  864.     /////////////////
  865.  
  866.     input his_responses_OFFER_MAP 
  867.         tri onceplus_he_said_yes_to_OFFER_MAP(
  868.             his_responses_OFFER_MAP, 10.0, 9.01)
  869.         tri once_he_said_yes_to_OFFER_MAP(
  870.             his_responses_OFFER_MAP, 0.75, 0.26)
  871.         tri he_never_answered_OFFER_MAP(
  872.             his_responses_OFFER_MAP, 0.0, 0.26)
  873.         tri once_he_said_no_to_OFFER_MAP(
  874.             his_responses_OFFER_MAP, -0.75, 0.26)
  875.         tri onceplus_he_said_no_to_OFFER_MAP(
  876.             his_responses_OFFER_MAP, -10.0, 9.01)
  877.  
  878.     output his_responses_decay_OFFER_MAP[-1.0, 2.0] = 0.97
  879.         tri his_instant_decay_OFFER_MAP(
  880.             his_responses_decay_OFFER_MAP, 0.0, 0.5)
  881.         tri his_long_decay_OFFER_MAP(
  882.             his_responses_decay_OFFER_MAP, 0.93, 0.5)
  883.         tri his_zero_decay_OFFER_MAP(
  884.             his_responses_decay_OFFER_MAP, 1.0, 0.5)
  885.  
  886.     //////////////////
  887.     /// OFFER_GOLD ///
  888.     //////////////////
  889.  
  890.     input his_responses_OFFER_GOLD 
  891.         tri onceplus_he_said_yes_to_OFFER_GOLD(
  892.             his_responses_OFFER_GOLD, 10.0, 9.01)
  893.         tri once_he_said_yes_to_OFFER_GOLD(
  894.             his_responses_OFFER_GOLD, 0.75, 0.26)
  895.         tri he_never_answered_OFFER_GOLD(
  896.             his_responses_OFFER_GOLD, 0.0, 0.26)
  897.         tri once_he_said_no_to_OFFER_GOLD(
  898.             his_responses_OFFER_GOLD, -0.75, 0.26)
  899.         tri onceplus_he_said_no_to_OFFER_GOLD(
  900.             his_responses_OFFER_GOLD, -10.0, 9.01)
  901.  
  902.     output his_responses_decay_OFFER_GOLD[-1.0, 2.0] = 0.965
  903.         tri his_instant_decay_OFFER_GOLD(
  904.             his_responses_decay_OFFER_GOLD, 0.0, 0.5)
  905.         tri his_long_decay_OFFER_GOLD(
  906.             his_responses_decay_OFFER_GOLD, 0.93, 0.5)
  907.         tri his_zero_decay_OFFER_GOLD(
  908.             his_responses_decay_OFFER_GOLD, 1.0, 0.5)
  909.  
  910.  
  911.     ////////////////////////
  912.     /// OFFER_CEASE_FIRE ///
  913.     ////////////////////////
  914.  
  915.     input his_responses_OFFER_CEASE_FIRE 
  916.         tri onceplus_he_said_yes_to_OFFER_CEASE_FIRE(
  917.             his_responses_OFFER_CEASE_FIRE, 10.0, 9.01)
  918.         tri once_he_said_yes_to_OFFER_CEASE_FIRE(
  919.             his_responses_OFFER_CEASE_FIRE, 0.75, 0.26)
  920.         tri he_never_answered_OFFER_CEASE_FIRE(
  921.             his_responses_OFFER_CEASE_FIRE, 0.0, 0.26)
  922.         tri once_he_said_no_to_OFFER_CEASE_FIRE(
  923.             his_responses_OFFER_CEASE_FIRE, -0.75, 0.26)
  924.         tri onceplus_he_said_no_to_OFFER_CEASE_FIRE(
  925.             his_responses_OFFER_CEASE_FIRE, -10.0, 9.01)
  926.  
  927.     output his_responses_decay_OFFER_CEASE_FIRE[-1.0, 2.0] = 0.965
  928.         tri his_instant_decay_OFFER_CEASE_FIRE(
  929.             his_responses_decay_OFFER_CEASE_FIRE, 0.0, 0.5)
  930.         tri his_long_decay_OFFER_CEASE_FIRE(
  931.             his_responses_decay_OFFER_CEASE_FIRE, 0.93, 0.5)
  932.         tri his_zero_decay_OFFER_CEASE_FIRE(
  933.             his_responses_decay_OFFER_CEASE_FIRE, 1.0, 0.5)
  934.  
  935.     ////////////////////////////////
  936.     /// OFFER_PERMANENT_ALLIANCE ///
  937.     ////////////////////////////////
  938.  
  939.     input his_responses_OFFER_PERMANENT_ALLIANCE 
  940.         tri onceplus_he_said_yes_to_OFFER_PERMANENT_ALLIANCE(
  941.             his_responses_OFFER_PERMANENT_ALLIANCE, 10.0, 9.01)
  942.         tri once_he_said_yes_to_OFFER_PERMANENT_ALLIANCE(
  943.             his_responses_OFFER_PERMANENT_ALLIANCE, 0.75, 0.26)
  944.         tri he_never_answered_OFFER_PERMANENT_ALLIANCE(
  945.             his_responses_OFFER_PERMANENT_ALLIANCE, 0.0, 0.26)
  946.         tri once_he_said_no_to_OFFER_PERMANENT_ALLIANCE(
  947.             his_responses_OFFER_PERMANENT_ALLIANCE, -0.75, 0.26)
  948.         tri onceplus_he_said_no_to_OFFER_PERMANENT_ALLIANCE(
  949.             his_responses_OFFER_PERMANENT_ALLIANCE, -10.0, 9.01)
  950.  
  951.     output his_responses_decay_OFFER_PERMANENT_ALLIANCE[-1.0, 2.0] = 0.93
  952.         tri his_instant_decay_OFFER_PERMANENT_ALLIANCE(
  953.             his_responses_decay_OFFER_PERMANENT_ALLIANCE, 0.0, 0.5)
  954.         tri his_long_decay_OFFER_PERMANENT_ALLIANCE(
  955.             his_responses_decay_OFFER_PERMANENT_ALLIANCE, 0.93, 0.5)
  956.         tri his_zero_decay_OFFER_PERMANENT_ALLIANCE(
  957.             his_responses_decay_OFFER_PERMANENT_ALLIANCE, 1.0, 0.5)
  958.  
  959.     ///////////////////////////////
  960.     /// OFFER_PACT_CAPTURE_CITY ///
  961.     ///////////////////////////////
  962.  
  963.     input his_responses_OFFER_PACT_CAPTURE_CITY 
  964.         tri onceplus_he_said_yes_to_OFFER_PACT_CAPTURE_CITY(
  965.             his_responses_OFFER_PACT_CAPTURE_CITY, 10.0, 9.01)
  966.         tri once_he_said_yes_to_OFFER_PACT_CAPTURE_CITY(
  967.             his_responses_OFFER_PACT_CAPTURE_CITY, 0.75, 0.26)
  968.         tri he_never_answered_OFFER_PACT_CAPTURE_CITY(
  969.             his_responses_OFFER_PACT_CAPTURE_CITY, 0.0, 0.26)
  970.         tri once_he_said_no_to_OFFER_PACT_CAPTURE_CITY(
  971.             his_responses_OFFER_PACT_CAPTURE_CITY, -0.75, 0.26)
  972.         tri onceplus_he_said_no_to_OFFER_PACT_CAPTURE_CITY(
  973.             his_responses_OFFER_PACT_CAPTURE_CITY, -10.0, 9.01)
  974.  
  975.     output his_responses_decay_OFFER_PACT_CAPTURE_CITY[-1.0, 2.0] = 0.93
  976.         tri his_instant_decay_OFFER_PACT_CAPTURE_CITY(
  977.             his_responses_decay_OFFER_PACT_CAPTURE_CITY, 0.0, 0.5)
  978.         tri his_long_decay_OFFER_PACT_CAPTURE_CITY(
  979.             his_responses_decay_OFFER_PACT_CAPTURE_CITY, 0.93, 0.5)
  980.         tri his_zero_decay_OFFER_PACT_CAPTURE_CITY(
  981.             his_responses_decay_OFFER_PACT_CAPTURE_CITY, 1.0, 0.5)
  982.  
  983.     ////////////////////////////////
  984.     /// OFFER_PACT_END_POLLUTION ///
  985.     ////////////////////////////////
  986.  
  987.     input his_responses_OFFER_PACT_END_POLLUTION 
  988.         tri onceplus_he_said_yes_to_OFFER_PACT_END_POLLUTION(
  989.             his_responses_OFFER_PACT_END_POLLUTION, 10.0, 9.01)
  990.         tri once_he_said_yes_to_OFFER_PACT_END_POLLUTION(
  991.             his_responses_OFFER_PACT_END_POLLUTION, 0.75, 0.26)
  992.         tri he_never_answered_OFFER_PACT_END_POLLUTION(
  993.             his_responses_OFFER_PACT_END_POLLUTION, 0.0, 0.26)
  994.         tri once_he_said_no_to_OFFER_PACT_END_POLLUTION(
  995.             his_responses_OFFER_PACT_END_POLLUTION, -0.75, 0.26)
  996.         tri onceplus_he_said_no_to_OFFER_PACT_END_POLLUTION(
  997.             his_responses_OFFER_PACT_END_POLLUTION, -10.0, 9.01)
  998.  
  999.     output his_responses_decay_OFFER_PACT_END_POLLUTION[-1.0, 2.0] = 0.93
  1000.         tri his_instant_decay_OFFER_PACT_END_POLLUTION(
  1001.             his_responses_decay_OFFER_PACT_END_POLLUTION, 0.0, 0.5)
  1002.         tri his_long_decay_OFFER_PACT_END_POLLUTION(
  1003.             his_responses_decay_OFFER_PACT_END_POLLUTION, 0.93, 0.5)
  1004.         tri his_zero_decay_OFFER_PACT_END_POLLUTION(
  1005.             his_responses_decay_OFFER_PACT_END_POLLUTION, 1.0, 0.5)
  1006.  
  1007.     ////////////////////////
  1008.     /// EXCHANGE_ADVANCE ///
  1009.     ////////////////////////
  1010.  
  1011.     input his_responses_EXCHANGE_ADVANCE 
  1012.         tri onceplus_he_said_yes_to_EXCHANGE_ADVANCE(
  1013.             his_responses_EXCHANGE_ADVANCE, 10.0, 9.01)
  1014.         tri once_he_said_yes_to_EXCHANGE_ADVANCE(
  1015.             his_responses_EXCHANGE_ADVANCE, 0.75, 0.26)
  1016.         tri he_never_answered_EXCHANGE_ADVANCE(
  1017.             his_responses_EXCHANGE_ADVANCE, 0.0, 0.26)
  1018.         tri once_he_said_no_to_EXCHANGE_ADVANCE(
  1019.             his_responses_EXCHANGE_ADVANCE, -0.75, 0.26)
  1020.         tri onceplus_he_said_no_to_EXCHANGE_ADVANCE(
  1021.             his_responses_EXCHANGE_ADVANCE, -10.0, 9.01)
  1022.  
  1023.     output his_responses_decay_EXCHANGE_ADVANCE[-1.0, 2.0] = 0.93
  1024.         tri his_instant_decay_EXCHANGE_ADVANCE(
  1025.             his_responses_decay_EXCHANGE_ADVANCE, 0.0, 0.5)
  1026.         tri his_long_decay_EXCHANGE_ADVANCE(
  1027.             his_responses_decay_EXCHANGE_ADVANCE, 0.93, 0.5)
  1028.         tri his_zero_decay_EXCHANGE_ADVANCE(
  1029.             his_responses_decay_EXCHANGE_ADVANCE, 1.0, 0.5)
  1030.  
  1031.     /////////////////////
  1032.     /// EXCHANGE_CITY ///
  1033.     /////////////////////
  1034.  
  1035.     input his_responses_EXCHANGE_CITY 
  1036.         tri onceplus_he_said_yes_to_EXCHANGE_CITY(
  1037.             his_responses_EXCHANGE_CITY, 10.0, 9.01)
  1038.         tri once_he_said_yes_to_EXCHANGE_CITY(
  1039.             his_responses_EXCHANGE_CITY, 0.75, 0.26)
  1040.         tri he_never_answered_EXCHANGE_CITY(
  1041.             his_responses_EXCHANGE_CITY, 0.0, 0.26)
  1042.         tri once_he_said_no_to_EXCHANGE_CITY(
  1043.             his_responses_EXCHANGE_CITY, -0.75, 0.26)
  1044.         tri onceplus_he_said_no_to_EXCHANGE_CITY(
  1045.             his_responses_EXCHANGE_CITY, -10.0, 9.01)
  1046.  
  1047.     output his_responses_decay_EXCHANGE_CITY[-1.0, 2.0] = 0.93
  1048.         tri his_instant_decay_EXCHANGE_CITY(
  1049.             his_responses_decay_EXCHANGE_CITY, 0.0, 0.5)
  1050.         tri his_long_decay_EXCHANGE_CITY(
  1051.             his_responses_decay_EXCHANGE_CITY, 0.93, 0.5)
  1052.         tri his_zero_decay_EXCHANGE_CITY(
  1053.             his_responses_decay_EXCHANGE_CITY, 1.0, 0.5)
  1054.  
  1055.     ////////////////////
  1056.     /// EXCHANGE_MAP ///
  1057.     ////////////////////
  1058.  
  1059.     input his_responses_EXCHANGE_MAP 
  1060.         tri onceplus_he_said_yes_to_EXCHANGE_MAP(
  1061.             his_responses_EXCHANGE_MAP, 10.0, 9.01)
  1062.         tri once_he_said_yes_to_EXCHANGE_MAP(
  1063.             his_responses_EXCHANGE_MAP, 0.75, 0.26)
  1064.         tri he_never_answered_EXCHANGE_MAP(
  1065.             his_responses_EXCHANGE_MAP, 0.0, 0.26)
  1066.         tri once_he_said_no_to_EXCHANGE_MAP(
  1067.             his_responses_EXCHANGE_MAP, -0.75, 0.26)
  1068.         tri onceplus_he_said_no_to_EXCHANGE_MAP(
  1069.             his_responses_EXCHANGE_MAP, -10.0, 9.01)
  1070.  
  1071.     output his_responses_decay_EXCHANGE_MAP[-1.0, 2.0] = 0.97
  1072.         tri his_instant_decay_EXCHANGE_MAP(
  1073.             his_responses_decay_EXCHANGE_MAP, 0.0, 0.5)
  1074.         tri his_long_decay_EXCHANGE_MAP(
  1075.             his_responses_decay_EXCHANGE_MAP, 0.93, 0.5)
  1076.         tri his_longer_decay_EXCHANGE_MAP(
  1077.             his_responses_decay_EXCHANGE_MAP, 0.98, 0.5)
  1078.         tri his_zero_decay_EXCHANGE_MAP(
  1079.             his_responses_decay_EXCHANGE_MAP, 1.0, 0.5)
  1080.  
  1081. ////////////////////
  1082. /// MEMORY TESTS ///
  1083. ////////////////////
  1084.  
  1085.     //////////////////////////////////////////////////////
  1086.     /// TEST TO SEE IF I'VE RECENTLY TOLD HIM TO LEAVE ///
  1087.     /// NO NEED SPAM HIM                                /// 
  1088.     //////////////////////////////////////////////////////
  1089.  
  1090.     output he_has_been_warned_to_LEAVE_OUR_LANDS[0.0, 2.0] = 0.0
  1091.         tri yes_he_has_been_warned_to_LEAVE_OUR_LANDS(
  1092.             he_has_been_warned_to_LEAVE_OUR_LANDS, 1.0, 0.5)
  1093.  
  1094.     if    (    
  1095.         (onceplus_he_said_yes_to_DEMAND_LEAVE_OUR_LANDS
  1096.         or once_he_said_yes_to_DEMAND_LEAVE_OUR_LANDS
  1097.         or onceplus_he_said_no_to_DEMAND_LEAVE_OUR_LANDS
  1098.         or once_he_said_no_to_DEMAND_LEAVE_OUR_LANDS)
  1099.         and
  1100.         (onceplus_he_said_yes_to_GREETING
  1101.         or once_he_said_yes_to_GREETING
  1102.         or onceplus_he_said_no_to_GREETING
  1103.         or once_he_said_no_to_GREETING)
  1104.         )
  1105.         {
  1106.             yes_he_has_been_warned_to_LEAVE_OUR_LANDS
  1107.         }
  1108.     
  1109.     ////////////////////////////////////////////////////////
  1110.     /// CHECK IF I'VE OFFERED TO EXCHANGED MAPS RECENTLY ///
  1111.     ////////////////////////////////////////////////////////
  1112.  
  1113.     output he_has_been_asked_to_EXCHANGE_MAP[0.0, 2.0] = 0.0
  1114.         tri yes_he_has_been_asked_to_EXCHANGE_MAP(
  1115.             he_has_been_asked_to_EXCHANGE_MAP, 1.0, 0.5)
  1116.  
  1117.     if    (    onceplus_he_said_yes_to_EXCHANGE_MAP
  1118.             or once_he_said_yes_to_EXCHANGE_MAP
  1119.             or onceplus_he_said_no_to_EXCHANGE_MAP
  1120.             or once_he_said_no_to_EXCHANGE_MAP
  1121.         )
  1122.         {
  1123.             yes_he_has_been_asked_to_EXCHANGE_MAP
  1124.         }
  1125.  
  1126.  
  1127.     ////////////////////////////////////////////////////////
  1128.     /// CHECK IF HE GOT MY MAPS RECENTLY
  1129.     /// THEN DONT GIVE HIM MAPS OR EXCHANGE MAPS
  1130.     ////////////////////////////////////////////////////////
  1131.  
  1132.     output youve_got_my_map[0.0, 2.0] = 0.0
  1133.         tri yes_youve_got_my_map(
  1134.             youve_got_my_map, 1.0, 0.5)
  1135.  
  1136.     if(    onceplus_i_said_yes_to_DEMAND_MAP or once_i_said_yes_to_DEMAND_MAP
  1137.         or onceplus_he_said_yes_to_EXCHANGE_MAP or once_he_said_yes_to_EXCHANGE_MAP
  1138.         or onceplus_he_said_yes_to_OFFER_MAP or once_he_said_yes_to_OFFER_MAP)
  1139.     {
  1140.         yes_youve_got_my_map
  1141.     }
  1142.  
  1143.  
  1144.     ///////////////////////////////////////////////////////////
  1145.     /// CHECK IF I GOT HIS MAPS RECENTLY                    ///
  1146.     /// THEN DONT BECOME MORE FRIENDLY WHEN HE GIVES MAPS    ///
  1147.     ///////////////////////////////////////////////////////////
  1148.  
  1149.     output ive_got_your_map[0.0, 2.0] = 0.0
  1150.         tri yes_ive_got_your_map(
  1151.             ive_got_your_map, 1.0, 0.5)
  1152.  
  1153.     if(    onceplus_he_said_yes_to_DEMAND_MAP or once_he_said_yes_to_DEMAND_MAP
  1154.         or onceplus_i_said_yes_to_EXCHANGE_MAP or once_i_said_yes_to_EXCHANGE_MAP
  1155.         or onceplus_i_said_yes_to_OFFER_MAP or once_i_said_yes_to_OFFER_MAP)
  1156.     {
  1157.         yes_ive_got_your_map
  1158.     }
  1159.  
  1160.     ///////////////////////////////////////////////////////////
  1161.     /// CHECK IF I RECENTLY GAVE GOLD TO HIM                ///
  1162.     /// THEN DONT GIVE MORE FOR A WHILE                        ///
  1163.     ///////////////////////////////////////////////////////////
  1164.  
  1165.     output he_said_yes_recently_to_OFFER_GOLD[0.0, 2.0] = 0.0
  1166.         tri yes_he_said_yes_recently_to_OFFER_GOLD(he_said_yes_recently_to_OFFER_GOLD, 1.0, 0.5)
  1167.  
  1168.  
  1169.     if(    onceplus_he_said_yes_to_OFFER_GOLD or once_he_said_yes_to_OFFER_GOLD )
  1170.     {
  1171.         yes_he_said_yes_recently_to_OFFER_GOLD
  1172.     }
  1173.  
  1174.     output he_said_yes_very_recently_to_OFFER_GOLD[0.0, 2.0] = 0.0
  1175.         tri yes_he_said_yes_very_recently_to_OFFER_GOLD(he_said_yes_very_recently_to_OFFER_GOLD, 1.0, 0.5)
  1176.  
  1177.     if(    once_he_said_yes_to_OFFER_GOLD )
  1178.     {
  1179.         yes_he_said_yes_very_recently_to_OFFER_GOLD
  1180.     }
  1181.  
  1182.     ///////////////////////////////////////////////////////////
  1183.     /// CHECK IF I RECENTLY GOT GOLD OR ADVANCES FROM HIM    ///
  1184.     /// THEN GIVE HIM STUFF BACK                            ///
  1185.     ///////////////////////////////////////////////////////////
  1186.  
  1187.     output ive_got_your_gift[0.0, 2.0] = 0.0
  1188.         tri yes_ive_got_your_gift(
  1189.             ive_got_your_gift, 1.0, 0.5)
  1190.  
  1191.     if(    onceplus_i_said_yes_to_OFFER_ADVANCE or once_i_said_yes_to_OFFER_ADVANCE
  1192.         or onceplus_i_said_yes_to_OFFER_GOLD or once_i_said_yes_to_OFFER_GOLD )
  1193.     {
  1194.         yes_ive_got_your_gift
  1195.     }
  1196.  
  1197.  
  1198.     ///////////////////////////////////////////////////////////
  1199.     /// CHECK IF I GOT HIS MAPS RECENTLY                    ///
  1200.     /// THEN DONT BECOME MORE FRIENDLY WHEN HE GIVES MAPS    ///
  1201.     ///////////////////////////////////////////////////////////
  1202.  
  1203.     output we_just_made_a_peace_treaty[0.0, 2.0] = 0.0
  1204.         tri yes_we_just_made_a_peace_treaty(
  1205.             we_just_made_a_peace_treaty, 1.0, 0.5)
  1206.  
  1207.     if(    onceplus_he_said_yes_to_OFFER_CEASE_FIRE or once_he_said_yes_to_OFFER_CEASE_FIRE
  1208.         or onceplus_i_said_yes_to_OFFER_CEASE_FIRE or once_i_said_yes_to_OFFER_CEASE_FIRE )
  1209.     {
  1210.         yes_we_just_made_a_peace_treaty
  1211.     }
  1212.  
  1213.  
  1214.     //////////////////////////////////////////////////////
  1215.     /// TEST TO SEE IF I'VE RECENTLY TOLD HIM TO GIVE  ///
  1216.     /// GOLD -- no need to spam                           /// 
  1217.     //////////////////////////////////////////////////////
  1218.  
  1219.     output i_just_asked_for_gold[0.0, 2.0] = 0.0
  1220.         tri yes_i_just_asked_for_gold (i_just_asked_for_gold, 1.0, 0.5)
  1221.  
  1222.     if(    onceplus_he_said_yes_to_DEMAND_GOLD or once_he_said_yes_to_DEMAND_GOLD
  1223.         or onceplus_he_said_no_to_DEMAND_GOLD or once_he_said_no_to_DEMAND_GOLD )
  1224.     {
  1225.         yes_i_just_asked_for_gold
  1226.     }
  1227.  
  1228.     ///////////////////////////////////////////////////////////
  1229.     /// CHECK IF I RECENTLY GAVE ADVANCES TO HIM            ///
  1230.     /// THEN DONT GIVE MORE FOR A WHILE                        ///
  1231.     ///////////////////////////////////////////////////////////
  1232.  
  1233.     output enough_me_giving_in_to_DEMAND_ADVANCE[0.0, 2.0] = 0.0
  1234.         tri yes_enough_me_giving_in_to_DEMAND_ADVANCE(
  1235.             enough_me_giving_in_to_DEMAND_ADVANCE, 1.0, 0.5)
  1236.  
  1237.     if(onceplus_i_said_yes_to_DEMAND_ADVANCE or once_i_said_yes_to_DEMAND_ADVANCE)
  1238.     {
  1239.         yes_enough_me_giving_in_to_DEMAND_ADVANCE
  1240.     }
  1241.     
  1242.     ///////////////////////////////////////////////////////////
  1243.     /// CHECK IF I RECENTLY TOLD HIM TO GO TO WAR            ///
  1244.     /// THEN DONT GIVE MORE FOR A WHILE                        ///
  1245.     ///////////////////////////////////////////////////////////
  1246.  
  1247.     output i_ve_asked_enough_about_attacking_enemy[0.0, 2.0] = 0.0
  1248.         tri yes_i_ve_asked_enough_about_attacking_enemy(
  1249.             i_ve_asked_enough_about_attacking_enemy, 1.0, 0.5)
  1250.  
  1251.     if(    onceplus_he_said_yes_to_DEMAND_ATTACK_ENEMY or once_he_said_yes_to_DEMAND_ATTACK_ENEMY
  1252.         or
  1253.         onceplus_he_said_no_to_DEMAND_ATTACK_ENEMY or once_he_said_no_to_DEMAND_ATTACK_ENEMY)
  1254.     {
  1255.         yes_i_ve_asked_enough_about_attacking_enemy
  1256.     }
  1257.     
  1258.  
  1259.  
  1260.