<init update.dt="100" storage="ep15"/>
<values task.first="83" task.last="83"/>

<!-- locations available -->
<values mis.16.new="1" mis.18.new="1"/>

<!-- initial task : found instruments + disable mission show on start -->
<values
    show.task.done="1"
    mis.16.completed="1" mis.18.completed="0"

    vo.show.mon-normal="1"
    vo.show.mon-critical="0"
/>
<!-- show talk on arrival -->
<if condition="loc=18" 
    talk="talk142"
    sound.track="sound/game/E15/heart_monitor.wav"
/>                             
<!-- show mission after the talk : found instruments -->
<if condition="talk142.done=1"
    task.update="true" set.show.task.done="0" set.mission.id="83"

    set.scalpel_doctor="5"
    set.pipette_doctor="3"
    set.plaster_doctor="3"
    set.X-ray_photography_doctor="5"
    set.hammer_doctor="3"
    set.spiritlamp_doctor="1"
    set.stethoscope_doctor="2"
    set.test-tube_doctor="5"
    set.tweezers_doctor="3"

    set.new.scalpel_doctor="1"
    set.new.pipette_doctor="1"
    set.new.plaster_doctor="1"
    set.new.X-ray_photography_doctor="1"
    set.new.hammer_doctor="1"
    set.new.spiritlamp_doctor="1"
    set.new.stethoscope_doctor="1"
    set.new.test-tube_doctor="1"
    set.new.tweezers_doctor="1"
/>        
<!-- when instruments founded : go to find adrenalin -->
<if condition="scalpel_doctor=0 pipette_doctor=0 plaster_doctor=0 X-ray_photography_doctor=0 hammer_doctor=0 spiritlamp_doctor=0 stethoscope_doctor=0 test-tube_doctor=0 tweezers_doctor=0"
    speech="speech82" set.show.task.done="0" set.mission.id="84"
    set.mis.16.completed="0" set.mis.18.completed="0"
    sound.track="sound/game/E15/heart_monitor_emergency.wav"

    set.door1int_doctor="1"
    set.adrenalin_doctor="1"
    set.dropper1int_doctor="1"
    set.arm1int_doctor="1"

    set.new.door1int_doctor="1"
    set.new.adrenalin_doctor="1"
    set.new.dropper1int_doctor="1"

    set.vo.show.mon-normal="0"
    set.vo.show.mon-critical="1"
    obj.show="mon-critical"
    obj.hide="mon-normal"
/>
<!-- when adrenalin added : go to defibrilation -->
<if condition="arm1int_doctor=0"
    speech="speech83" set.show.task.done="0" set.mission.id="85"
    set.mis.16.completed="1" set.mis.18.completed="0"
    
    set.flex1int_doctor="1"
    set.body1int_doctor="1"

    set.new.flex1int_doctor="1"
/>
<!-- when body shaked : go to find the book -->
<if condition="body1int_doctor=0"
    speech="speech84" set.show.task.done="0" set.mission.id="86"
    set.mis.16.completed="0" set.mis.18.completed="0"

    set.book1int_doctor="1"
    set.book2int_doctor="1"
    set.new.book1int_doctor="1"

    set.vo.show.defibrillators="0"
    set.vo.show.plate="1"
/>
<!-- when book opened -->
<if condition="book1int_doctor=0" 
    speech="speech85" set.show.task.done="1"
    set.mis.16.completed="0" set.mis.18.completed="0"
/>
<!-- when book closed : go to find the crystall -->
<if condition="book2int_doctor=0"
    task.update="true" set.show.task.done="0" set.mission.id="87"
    set.mis.16.completed="0" set.mis.18.completed="0"
    
    set.bulb_doctor="1"
    set.lamp1int_doctor="1"
    set.crystal_doctor="1"

    set.new.bulb_doctor="1"
    set.new.lamp1int_doctor="1"
    set.new.crystal_doctor="1"
/>
<!-- crystall founded : go to find components -->
<if condition="crystal_doctor=0"
    talk="talk147.3"
    set.mis.16.completed="0" set.mis.18.completed="0"
/>
<if condition="talk147.3.done=1"
    task.update="true" set.show.task.done="0" set.mission.id="88"

    set.="1"
    set.syringe_doctor="1"
    set.soil_doctor="1"
    set.leaf_doctor="1"

    set.new.jug_doctor="1"
    set.new.syringe_doctor="1"
    set.new.soil_doctor="1"
    set.new.leaf_doctor="1"
/>
<!-- components founded : go to get blood -->
<if condition="leaf_doctor=0 soil_doctor=0 syringe_doctor=0 jug_doctor=0"
    talk="talk148"
    set.mis.16.completed="1" set.mis.18.completed="0"
/>
<if condition="talk148.done=1"
    task.update="true" set.show.task.done="0" set.mission.id="89"

    set.arm2int_doctor="1"
    set.new.arm2int_doctor="1"
/>
<if condition="arm2int_doctor=0"
    task.update="true" set.show.task.done="0" set.mission.id="89"

    set.red1int_doctor="1"
    set.brown1int_doctor="1"
    set.blue1int_doctor="1"
    set.green1int_doctor="1"
    
    set.new.red1int_doctor="1"
    set.new.brown1int_doctor="1"
    set.new.blue1int_doctor="1"
    set.new.green1int_doctor="1"
/>

<!-- got blood : activate crystall -->
<if condition="red1int_doctor=0 brown1int_doctor=0 blue1int_doctor=0 green1int_doctor=0"
    interactive.object="circle1int_doctor"

    set.circle1int_doctor="1"
    set.new.circle1int_doctor="1"
/>
<!-- activated : finita -->
<if condition="circle1int_doctor=0"
    speech="speech88" set.show.task.done="1"
    set.mis.16.completed="1" set.mis.18.completed="0"
/>
<if condition="speech88.done=1"
    speech="final/movie" screen.delay="2000" screen.fade.in="200" sound.stop="true"
    set.mis.16.completed="1" set.mis.18.completed="1"
/>
