<?xml version="1.0" encoding="utf-8"?>
<eventSystem xmlns="iqsoftwaregames">

  <!-- AI Spain research plan 1940-->
  <event eventID="10230" countryID="15" oneTimeChecking="0" visibleByPlayer="0">
    <title>ZID_10230_title</title>
    <description>ZID_10230_desc</description>
    <beginDate day="1" month="1" year="1940"/>
    <endDate day="25" month="12" year="1940"/>
    <condition>
      <and>
		<!--Country is AI controlled-->
		<expression>
			<leftOperand method="Country.IsAIControlled" param0="15"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--Country is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="15"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
	    <!--Flag not fired yet-->
        <expression>
          <leftOperand method="Flag.GetValue" param0="10230"/>
          <operator value="equals"/>
          <rightOperand constValue="0"/>
        </expression>
		<!--Only if the country has got more than 100 of PP-->
        <expression>
          <leftOperand method="Country.GetProductionPoints" param0="15"/>
          <operator value="greater"/>
          <rightOperand constValue="100"/>
        </expression>
      </and>
    </condition>
    <options>
      <option optionID="1" chanceAI="100">
        <description>ZID_10230_op1</description>
        <tooltip>ZID_10230_desc1</tooltip>
        <effects>
		  <!--Set flag on -->
          <effect method="Flag.SetValue" param0="10230" param1="1"/>
          <!--Country: Try to get level 2 infantry tech-->
          <effect method="AI.SetDesiredTechLevel" param0="15" param1="1" param2="2"/>
          <!--Country: Try to get level 2 armor tech-->
          <effect method="AI.SetDesiredTechLevel" param0="15" param1="2" param2="2"/>
          <!--Country: Try to get level 1 warfare tech-->
          <effect method="AI.SetDesiredTechLevel" param0="15" param1="3" param2="1"/>
        </effects>
      </option>
    </options>
  </event>
  
		
  <!-- AI Spain research plan 1941-->
  <event eventID="10231" countryID="15" oneTimeChecking="0" visibleByPlayer="0">
    <title>ZID_10231_title</title>
    <description>ZID_10231_desc</description>
    <beginDate day="1" month="1" year="1941"/>
    <endDate day="25" month="12" year="1941"/>
    <condition>
      <and>
		<!--Country is AI controlled-->
		<expression>
			<leftOperand method="Country.IsAIControlled" param0="15"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--Country is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="15"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
	    <!--Flag not fired yet-->
        <expression>
          <leftOperand method="Flag.GetValue" param0="10231"/>
          <operator value="equals"/>
          <rightOperand constValue="0"/>
        </expression>
		<!--Only if the country has got more than 100 of PP-->
        <expression>
          <leftOperand method="Country.GetProductionPoints" param0="15"/>
          <operator value="greater"/>
          <rightOperand constValue="100"/>
        </expression>
      </and>
    </condition>
    <options>
      <option optionID="1" chanceAI="100">
        <description>ZID_10231_op1</description>
        <tooltip>ZID_10231_desc1</tooltip>
        <effects>
		  <!--Set flag on -->
          <effect method="Flag.SetValue" param0="10231" param1="1"/>
          <!--Country: Try to get level 3 infantry tech-->
          <effect method="AI.SetDesiredTechLevel" param0="15" param1="1" param2="3"/>
          <!--Country: Try to get level 3 armor tech-->
          <effect method="AI.SetDesiredTechLevel" param0="15" param1="2" param2="3"/>
          <!--Country: Try to get level 2 warfare tech-->
          <effect method="AI.SetDesiredTechLevel" param0="15" param1="3" param2="2"/>
        </effects>
      </option>
    </options>
  </event>
  
		
  <!-- AI Spain research plan 1942-->
  <event eventID="10232" countryID="15" oneTimeChecking="0" visibleByPlayer="0">
    <title>ZID_10232_title</title>
    <description>ZID_10232_desc</description>
    <beginDate day="1" month="1" year="1942"/>
    <endDate day="25" month="12" year="1943"/>
    <condition>
      <and>
		<!--Country is AI controlled-->
		<expression>
			<leftOperand method="Country.IsAIControlled" param0="15"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--Country is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="15"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
	    <!--Flag not fired yet-->
        <expression>
          <leftOperand method="Flag.GetValue" param0="10232"/>
          <operator value="equals"/>
          <rightOperand constValue="0"/>
        </expression>
		<!--Only if the country has got more than 100 of PP-->
        <expression>
          <leftOperand method="Country.GetProductionPoints" param0="15"/>
          <operator value="greater"/>
          <rightOperand constValue="100"/>
        </expression>
      </and>
    </condition>
    <options>
      <option optionID="1" chanceAI="100">
        <description>ZID_10232_op1</description>
        <tooltip>ZID_10232_desc1</tooltip>
        <effects>
		  <!--Set flag on -->
          <effect method="Flag.SetValue" param0="10232" param1="1"/>
          <!--Country: Try to get level 2 planes tech-->
          <effect method="AI.SetDesiredTechLevel" param0="15" param1="4" param2="2"/>
          <!--Country: Try to get level 3 navy tech-->
          <effect method="AI.SetDesiredTechLevel" param0="15" param1="6" param2="2"/>
          <!--Country: Try to get level 3 warfare tech-->
          <effect method="AI.SetDesiredTechLevel" param0="15" param1="3" param2="3"/>
        </effects>
      </option>
    </options>
  </event>
    
  
  <!-- AI Spain research plan 1944-->
  <event eventID="10235" countryID="15" oneTimeChecking="0" visibleByPlayer="0">
    <title>ZID_10233_title</title>
    <description>ZID_10233_desc</description>
    <beginDate day="1" month="1" year="1944"/>
    <endDate day="25" month="12" year="1945"/>
    <condition>
      <and>
		<!--Country is AI controlled-->
		<expression>
			<leftOperand method="Country.IsAIControlled" param0="15"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--Country is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="15"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
	    <!--Flag not fired yet-->
        <expression>
          <leftOperand method="Flag.GetValue" param0="10235"/>
          <operator value="equals"/>
          <rightOperand constValue="0"/>
        </expression>
		<!--Only if the country has got more than 100 of PP-->
        <expression>
          <leftOperand method="Country.GetProductionPoints" param0="15"/>
          <operator value="greater"/>
          <rightOperand constValue="100"/>
        </expression>
      </and>
    </condition>
    <options>
      <option optionID="1" chanceAI="100">
        <description>ZID_10233_op1</description>
        <tooltip>ZID_10233_desc1</tooltip>
        <effects>
		  <!--Set flag on -->
          <effect method="Flag.SetValue" param0="10235" param1="1"/>
          <!--Country: Try to get level 3 planes tech-->
          <effect method="AI.SetDesiredTechLevel" param0="15" param1="4" param2="3"/>
          <!--Country: Try to get level 4 warfare tech-->
          <effect method="AI.SetDesiredTechLevel" param0="15" param1="3" param2="4"/>
          <!--Country: Try to get level 4 infantry tech-->
          <effect method="AI.SetDesiredTechLevel" param0="15" param1="1" param2="4"/>
        </effects>
      </option>
    </options>
  </event>
    
	
  <!-- AI Spain research plan 1946-->
  <event eventID="10238" countryID="15" oneTimeChecking="0" visibleByPlayer="0">
    <title>ZID_10234_title</title>
    <description>ZID_10234_desc</description>
    <beginDate day="1" month="1" year="1946"/>
    <condition>
      <and>
		<!--Country is AI controlled-->
		<expression>
			<leftOperand method="Country.IsAIControlled" param0="15"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--Country is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="15"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
	    <!--Flag not fired yet-->
        <expression>
          <leftOperand method="Flag.GetValue" param0="10238"/>
          <operator value="equals"/>
          <rightOperand constValue="0"/>
        </expression>
		<!--Only if the country has got more than 100 of PP-->
        <expression>
          <leftOperand method="Country.GetProductionPoints" param0="15"/>
          <operator value="greater"/>
          <rightOperand constValue="100"/>
        </expression>
      </and>
    </condition>
    <options>
      <option optionID="1" chanceAI="100">
        <description>ZID_10234_op1</description>
        <tooltip>ZID_10234_desc1</tooltip>
        <effects>
		  <!--Set flag on -->
          <effect method="Flag.SetValue" param0="10238" param1="1"/>
          <!--Country: Try to get level 5 infantry tech-->
          <effect method="AI.SetDesiredTechLevel" param0="16" param1="1" param2="5"/>
          <!--Country: Try to get level 5 armor tech-->
          <effect method="AI.SetDesiredTechLevel" param0="16" param1="2" param2="5"/>
          <!--Country: Try to get level 5 warfare tech-->
          <effect method="AI.SetDesiredTechLevel" param0="16" param1="3" param2="5"/>
          <!--Country: Try to get level 5 plane tech-->
          <effect method="AI.SetDesiredTechLevel" param0="16" param1="4" param2="5"/>
          <!--Country: Try to get level 5 naval tech-->
          <effect method="AI.SetDesiredTechLevel" param0="16" param1="6" param2="5"/>
          <!--Country: Try to get level 5 subs tech-->
          <effect method="AI.SetDesiredTechLevel" param0="16" param1="5" param2="5"/>
        </effects>
      </option>
    </options>
  </event>
    
		
  </eventSystem>