<?xml version="1.0" encoding="us-ascii"?>
<database name="hammerheart">
  <table name="random_event_option" version="1">
    <header>
      <column name="chance_expression" type="character varying" />
      <column name="condition_expression" type="character varying" />
      <column name="fail_cmd" type="character varying" />
      <column name="fail_msg" type="character varying" />
      <column name="random_event_option_id" type="integer" />
      <column name="random_event_option_set_id" type="integer" />
      <column name="random_event_source_type_id" type="integer" />
      <column name="success_cmd" type="character varying" />
      <column name="success_msg" type="character varying" />
      <column name="ui_caption" type="character varying" />
    </header>
    <rows>
      <row chance_expression="1" condition_expression="1" fail_cmd="&quot;&quot;" fail_msg="" random_event_option_id="1" random_event_option_set_id="1" random_event_source_type_id="1" success_cmd="FastTravel.Stop()" success_msg="" ui_caption="test_eventUiCaption" />
      <row chance_expression="0.5" condition_expression="1" fail_cmd="FastTravel.Stop()" fail_msg="" random_event_option_id="2" random_event_option_set_id="1" random_event_source_type_id="1" success_cmd="&quot;&quot;" success_msg="" ui_caption="test_eventUiCaption" />
      <row chance_expression="1" condition_expression="1" fail_cmd="&quot;&quot;" fail_msg="" random_event_option_id="3" random_event_option_set_id="1" random_event_source_type_id="2" success_cmd="FastTravel.Stop()" success_msg="" ui_caption="test_eventUiCaption" />
      <row chance_expression="0.2" condition_expression="1" fail_cmd="FastTravel.Stop()" fail_msg="" random_event_option_id="4" random_event_option_set_id="1" random_event_source_type_id="2" success_cmd="&quot;&quot;" success_msg="" ui_caption="test_eventUiCaption" />
      <row chance_expression="1" condition_expression="0" fail_cmd="&quot;&quot;" fail_msg="" random_event_option_id="5" random_event_option_set_id="1" random_event_source_type_id="3" success_cmd="FastTravel.Stop()" success_msg="" ui_caption="test_eventUiCaption" />
      <row chance_expression="1" condition_expression="0" fail_cmd="&quot;&quot;" fail_msg="" random_event_option_id="6" random_event_option_set_id="1" random_event_source_type_id="3" success_cmd="&quot;&quot;" success_msg="" ui_caption="test_eventUiCaption" />
      <row chance_expression="1" condition_expression="1" fail_cmd="&quot;&quot;" fail_msg="" random_event_option_id="7" random_event_option_set_id="2" random_event_source_type_id="1" success_cmd="FastTravel.Stop()" success_msg="" ui_caption="test_eventUiCaption" />
      <row chance_expression="1" condition_expression="1" fail_cmd="FastTravel.Stop()" fail_msg="" random_event_option_id="8" random_event_option_set_id="2" random_event_source_type_id="1" success_cmd="&quot;&quot;" success_msg="" ui_caption="test_eventUiCaption" />
      <row chance_expression="1" condition_expression="1" fail_cmd="&quot;&quot;" fail_msg="" random_event_option_id="9" random_event_option_set_id="3" random_event_source_type_id="1" success_cmd="FastTravel.Stop()" success_msg="" ui_caption="chap12_sch20_Bmon_e4_pPRz" />
      <row chance_expression="1" condition_expression="1" fail_cmd="FastTravel.Stop()" fail_msg="" random_event_option_id="10" random_event_option_set_id="3" random_event_source_type_id="2" success_cmd="FastTravel.Stop()" success_msg="" ui_caption="chap12_sch20_Bmon_e3_4ZbU" />
      <row chance_expression="1 -- probability computed in code" condition_expression="1" fail_cmd="&quot;&quot;" fail_msg="" random_event_option_id="11" random_event_option_set_id="3" random_event_source_type_id="1" success_cmd="EventSystem:GenericEventEvade()" success_msg="" ui_caption="chap12_sch20_Bmon_e8_evade" />
      <row chance_expression="1" condition_expression="1" fail_cmd="&quot;&quot;" fail_msg="" random_event_option_id="12" random_event_option_set_id="4" random_event_source_type_id="1" success_cmd="FastTravel.Stop()" success_msg="" ui_caption="chap5_sch50_NV1D_e16_ewho" />
      <row chance_expression="1" condition_expression="1" fail_cmd="&quot;&quot;" fail_msg="" random_event_option_id="16" random_event_option_set_id="4" random_event_source_type_id="2" success_cmd="FastTravel.Stop()" success_msg="" ui_caption="chap5_sch50_NV1D_e17_PQwb" />
      <row chance_expression="1" condition_expression="1" fail_cmd="&quot;&quot;" fail_msg="" random_event_option_id="17" random_event_option_set_id="5" random_event_source_type_id="1" success_cmd="FastTravel.Stop()" success_msg="" ui_caption="chap5_sch44_mS8C_e498_udhL" />
      <row chance_expression="1 --RandomEventImpressProbablity(0.8 - 0.1*gvar('event_roadsidecorpse_experience'))" condition_expression="CallScriptFunctionInTable('EventSystem','IsPlayerMounted')" fail_cmd="Variables.SetGlobal('event_roadsidecorpse_escapeFailed',1)" fail_msg="" random_event_option_id="18" random_event_option_set_id="5" random_event_source_type_id="1" success_cmd="FastTravel.DespawnLastRandomEvent()" success_msg="" ui_caption="chap5_sch44_mS8C_e499_Gkvg" />
      <row chance_expression="1 --RandomEventImpressProbablity(1 - 0.1*gvar('event_roadsidecorpse_experience'))" condition_expression="!CallScriptFunctionInTable('EventSystem','IsPlayerMounted')" fail_cmd="Variables.SetGlobal('event_roadsidecorpse_escapeFailed',1)" fail_msg="" random_event_option_id="19" random_event_option_set_id="5" random_event_source_type_id="1" success_cmd="FastTravel.DespawnLastRandomEvent()" success_msg="" ui_caption="chap5_sch44_mS8C_e500_6K58" />
      <row chance_expression="1" condition_expression="gvar('event_ambushplr_scene') == 2" fail_cmd="&quot;&quot;" fail_msg="" random_event_option_id="20" random_event_option_set_id="4" random_event_source_type_id="1" success_cmd="FastTravel.DespawnLastRandomEvent()" success_msg="" ui_caption="chap5_sch50_NV1D_e19_RGfd" />
      <row chance_expression="RandomEventThreatenProbablity(0.3)" condition_expression="gvar('event_ambushplr_scene') &gt; 2" fail_cmd="&quot;&quot;" fail_msg="" random_event_option_id="21" random_event_option_set_id="4" random_event_source_type_id="1" success_cmd="FastTravel.DespawnLastRandomEvent()" success_msg="" ui_caption="chap5_sch50_NV1D_e19_RGfd" />
      <row chance_expression="RandomEventImpressProbablity(0.6)" condition_expression="gvar('event_ambushplr_phase') == 1" fail_cmd="FastTravel.Stop()" fail_msg="" random_event_option_id="22" random_event_option_set_id="4" random_event_source_type_id="2" success_cmd="FastTravel.DespawnLastRandomEvent()" success_msg="" ui_caption="chap5_sch50_NV1D_e18_2dRv" />
      <row chance_expression="RandomEventEscapeProbability(0.5)" condition_expression="gvar('event_ambushplr_phase') == 2" fail_cmd="FastTravel.Stop()" fail_msg="" random_event_option_id="23" random_event_option_set_id="4" random_event_source_type_id="2" success_cmd="FastTravel.DespawnLastRandomEvent()" success_msg="" ui_caption="chap5_sch50_NV1D_e18_2dRv" />
      <row chance_expression="1" condition_expression="1" fail_cmd="&quot;&quot;" fail_msg="" random_event_option_id="24" random_event_option_set_id="5" random_event_source_type_id="2" success_cmd="FastTravel.Stop()" success_msg="" ui_caption="chap5_sch44_mS8C_e503_wcog" />
      <row chance_expression="RandomEventEscapeProbability(0.5)" condition_expression="1" fail_cmd="FastTravel.Stop()" fail_msg="" random_event_option_id="25" random_event_option_set_id="5" random_event_source_type_id="2" success_cmd="FastTravel.DespawnLastRandomEvent()" success_msg="" ui_caption="chap5_sch44_mS8C_e504_4I17" />
      <row chance_expression="1" condition_expression="1" fail_cmd="&quot;&quot;" fail_msg="" random_event_option_id="26" random_event_option_set_id="6" random_event_source_type_id="1" success_cmd="FastTravel.Stop()" success_msg="" ui_caption="chap5_sch42_ZQyf_e19_lmga" />
      <row chance_expression="RandomEventThreatenProbablity(0.2)" condition_expression="1" fail_cmd="&quot;&quot;" fail_msg="" random_event_option_id="27" random_event_option_set_id="6" random_event_source_type_id="1" success_cmd="FastTravel.DespawnLastRandomEvent()" success_msg="" ui_caption="chap5_sch42_ZQyf_e14_Ii0w" />
      <row chance_expression="1" condition_expression="1" fail_cmd="&quot;&quot;" fail_msg="" random_event_option_id="28" random_event_option_set_id="6" random_event_source_type_id="2" success_cmd="FastTravel.Stop()" success_msg="" ui_caption="chap5_sch42_ZQyf_e18_AlMX" />
      <row chance_expression="RandomEventEscapeProbability(0.5)" condition_expression="1" fail_cmd="FastTravel.Stop()" fail_msg="" random_event_option_id="29" random_event_option_set_id="6" random_event_source_type_id="2" success_cmd="FastTravel.DespawnLastRandomEvent()" success_msg="" ui_caption="chap5_sch42_ZQyf_e19_velx" />
      <row chance_expression="1" condition_expression="1" fail_cmd="&quot;&quot;" fail_msg="" random_event_option_id="30" random_event_option_set_id="7" random_event_source_type_id="1" success_cmd="FastTravel.Stop()" success_msg="" ui_caption="chap32_sch1_Yhte_e4_dQKb" />
      <row chance_expression="1" condition_expression="gvar('wanderer_canIgnore')==1" fail_cmd="&quot;&quot;" fail_msg="" random_event_option_id="31" random_event_option_set_id="7" random_event_source_type_id="1" success_cmd="FastTravel.DespawnLastRandomEvent()" success_msg="" ui_caption="chap32_sch1_Yhte_e5_yZbc" />
      <row chance_expression="RandomEventThreatenProbablity(0.2)" condition_expression="gvar('wanderer_canIgnore')==0" fail_cmd="&quot;&quot;" fail_msg="" random_event_option_id="32" random_event_option_set_id="7" random_event_source_type_id="1" success_cmd="FastTravel.DespawnLastRandomEvent()" success_msg="" ui_caption="chap32_sch1_Yhte_e5_yZbc" />
      <row chance_expression="1" condition_expression="1" fail_cmd="&quot;&quot;" fail_msg="" random_event_option_id="33" random_event_option_set_id="7" random_event_source_type_id="2" success_cmd="FastTravel.Stop()" success_msg="" ui_caption="chap32_sch1_Yhte_e7_obSX" />
      <row chance_expression="RandomEventEscapeProbability(0.5)" condition_expression="1" fail_cmd="FastTravel.Stop()" fail_msg="" random_event_option_id="34" random_event_option_set_id="7" random_event_source_type_id="2" success_cmd="FastTravel.DespawnLastRandomEvent()" success_msg="" ui_caption="chap32_sch1_Yhte_e8_5efG" />
      <row chance_expression="RandomEventEscapeProbability(0.5)" condition_expression="1" fail_cmd="FastTravel.Stop()" fail_msg="" random_event_option_id="35" random_event_option_set_id="3" random_event_source_type_id="2" success_cmd="EventSystem:GenericEventEvade()" success_msg="" ui_caption="chap12_sch20_Bmon_e6_FZId" />
      <row chance_expression="RandomEventThreatenProbablity(0.6)" condition_expression="gvar('event_ambushplr_scene') == 1" fail_cmd="&quot;&quot;" fail_msg="" random_event_option_id="36" random_event_option_set_id="4" random_event_source_type_id="1" success_cmd="FastTravel.DespawnLastRandomEvent()" success_msg="" ui_caption="chap5_sch50_NV1D_e19_RGfd" />
      <row chance_expression="1" condition_expression="1" fail_cmd="&quot;&quot;" fail_msg="" random_event_option_id="37" random_event_option_set_id="8" random_event_source_type_id="1" success_cmd="FastTravel.Stop()" success_msg="" ui_caption="chap32_sch1_Yhte_e7_obSX" />
      <row chance_expression="1" condition_expression="1" fail_cmd="&quot;&quot;" fail_msg="" random_event_option_id="38" random_event_option_set_id="8" random_event_source_type_id="1" success_cmd="FastTravel.DespawnLastRandomEvent()" success_msg="" ui_caption="chap32_sch1_Yhte_e5_yZbc" />
    </rows>
  </table>
</database>
