<?xml version="1.0"?>
<dialogues>

  <dialogue id="9400">
    <mood value="1"/>
    <enter id="1" image="0" left="1"/>
    <text id="1" text="I wonder what'll happen if I toss a coin into the fountain."/>

    <flag name="Misc-CheckMoney" value="100"/>
    <game id="11"/>
    <goto id="10" flag="ResultMoney" value="1"/>

    <flag name="Misc-CheckMoney" value="10"/>
    <game id="11"/>
    <goto id="11" flag="ResultMoney" value="1"/>

    <flag name="Misc-CheckMoney" value="1"/>
    <game id="11"/>
    <goto id="12" flag="ResultMoney" value="1"/>
    <goto id="13"/>

    <label id="10"/>
    <flag name="Misc-Money100" value="1"/>
    <label id="11"/>
    <flag name="Misc-Money10" value="1"/>
    <label id="12"/>
    <flag name="Misc-Money1" value="1"/>
    <label id="13"/>

    <choices text="Toss some coins?">
      <choice text="Toss 100 coins" flag="Misc-Money100" value="1">
        <flag name="FlagValue" value="100"/>
        <goto id="2"/>
      </choice>
      <choice text="Toss 10 coins" flag="Misc-Money10" value="1">
        <flag name="FlagValue" value="10"/>
        <goto id="2"/>
      </choice>
      <choice text="Toss 1 coin" flag="Misc-Money1" value="1">
        <flag name="FlagValue" value="1"/>
        <goto id="2"/>
      </choice>
      <choice text="No!">
        <goto id="1"/>
      </choice>
    </choices>

    <label id="2"/>

    <goto id="30" flag="FlagValue" value="100"/>
    <goto id="31" flag="FlagValue" value="10"/>
    <flag name="Money" add="-1"/>
    <goto id="32"/>
    <label id="30"/>
    <flag name="Money" add="-100"/>
    <goto id="32"/>
    <label id="31"/>
    <flag name="Money" add="-10"/>
    <label id="32"/>

    <text id="1" text="Alright, here goes!"/>
    <flag name="Misc-GambleResult" random="2"/>
    <goto id="3" flag="Misc-GambleResult" value="2"/>

    <goto id="20" flag="FlagValue" value="100"/>
    <goto id="21" flag="FlagValue" value="10"/>
    <flag name="FlagValue" value="2"/>
    <flag name="Money" add="2"/>
    <goto id="22"/>
    <label id="20"/>
    <flag name="FlagValue" value="200"/>
    <flag name="Money" add="200"/>
    <goto id="22"/>
    <label id="21"/>
    <flag name="FlagValue" value="20"/>
    <flag name="Money" add="20"/>
    <label id="22"/>

    <enter id="2" message="1"/>
    <text id="2" text="Mysteriously, some coins magically materialize in $NAME$'s hand!"/>
    <text id="2" text="You received $$FLAG_VALUE$!"/>
    <exit id="2"/>
    <text id="1" text="Oh! That was weird... But I'm not looking a gift horse in the mouth!" flag="Misc-Gamble" value="0"/>
    <flag name="Misc-Gamble"/>
    <goto id="1"/>

    <label id="3"/>
    <wait value="1"/>
    <mood value="4"/>
    <text id="1" text="Aww... Nothing happened!"/>

    <label id="1"/>
    <flag name="Misc-Money100" value="0"/>
    <flag name="Misc-Money10" value="0"/>
    <flag name="Misc-Money1" value="0"/>
    <flag name="FlagValue" value="0"/>
    <flag name="ResultMoney" value="0"/>
    <exit id="1"/>
  </dialogue>

  <dialogue id="9401">
    <mood value="1"/>
    <enter id="1" image="0" left="1"/>
    <text id="1" text="Knock knock!"/>
    <enter id="2" image="99999" right="1" block="0" x="900"/>
    <text id="2" text="Who's there?"/>
    <actor id="2" block="1"/>
    <text id="1" text="Interrupting cow."/>
    <text id="2" text="Interrupt-" block="0"/>
    <text id="1" text="MOO!!!"/>
    <wait value="1"/>
    <text id="2" text="Get lost, you freak."/>
    <exit id="2"/>
    <exit id="1"/>
  </dialogue>

</dialogues>
