sound.choir = data\sound\choir.wav
sound.devil = data\sound\devil.wav
sound.dtalk = data\sound\daemon_talk.wav
--------------------------------------------------------------------------------

[behavior = tomb_entrance]
  <on_enter=0,1>
    do_click=1
  <on_click=0>
   teleport.cloister_udg2=3,27,16

--------------------------------------------------------------------------------
[behavior=note1]
  <on_enter=0,1>
    text_id=cudg3_note1
    button_id=b_ok
    play_sound.choir = 0
    state=255

[behavior=note2]
  <on_enter=0,1>
    text_id=cudg3_note2
    button_id=b_ok
    play_sound.choir = 0
    state=255

[behavior=vision]
  <on_enter=0,1>
    picture=data\scene\undeadking.jpg
    text_id=cudg3_vision1
    button_id=b_next
    play_sound.dtalk=0
  <on_button=0,0>
    picture=data\scene\undeadking.jpg
    text_id=cudg3_vision2
    button_id=b_next
    state=1
  <on_button=1,0>
    handicap=100,5,1,1,30,0,0,0,0
    handicap=100,6,2,2,30,0,0,0,0
    handicap=100,7,150,150,30,0,0,0,0
    flash_view=0,0,0,100


--------------------------------------------------------------------------------
[behavior=final_showdown]
  <on_enter=0,1>
    play_sound.choir = 0
    picture=data\scene\priest1.jpg
    text_id=priest1
    button_id=b_next
    end_round=1
    end_round=1
    remove_enemy.monk_peace=-1,0
    remove_enemy.monk_peace=-1,0
    remove_enemy.monk_peace=0,-1
    remove_enemy.monk_peace=0,-1
    remove_enemy.monk_peace=1,0
    remove_enemy.monk_peace=1,1
  <on_button=0,0>
    picture=data\scene\priest1.jpg
    text_id=priest2
    button_id=b_next
    state=1
  <on_button=1,0>
    picture=data\scene\priest2.jpg
    text_id=priest3
    button_id=b_next
    state=2
  <on_button=2,0>
    picture=data\scene\priest2.jpg
    text_id=priest4
    button_id=b_wait_a_sec
    state=3
  <on_button=3,0>
    picture=data\scene\priest3.jpg
    text_id=priest5
    button_id=b_next
    state=4
  <on_button=4,0>
    picture=data\scene\priest3.jpg
    text_id=priest6
    button_id=b_next
    state=5
  <on_button=5,0>
    picture=data\scene\priest3.jpg
    text_id=priest7
    button_id=b_next
    state=6
  <on_button=6,0>
    picture=data\scene\priest3.jpg
    text_id=priest8
    object.rock=0,0,3
    play_sound.break_wall =0
    enemy.monk_special=-1,0
    enemy.monk_special=-1,0
    enemy.monk_special=0,-1
    enemy.monk_special=0,-1
    enemy.monk_special=1,0
    #enemy.monk=1,0
    enemy.monk_special=1,1
    #enemy.monk=1,1
    enemy.monk_special=0,1
    #enemy.monk=0,1
    enemy.monk_special=-1,1
    #enemy.monk=-1,1
    flash_view=0,0,0,255
    state=7

[behavior=monk_count]
  <on_activate=0,1>
    #ubral jsem monky, takze preskakuju count
    state=3
  <on_activate=1,1>
    state=2
  <on_activate=2,1>
    state=3
  <on_activate=3,1>
    state=4
  <on_activate=4,1>
    state=5
  <on_activate=5,1>
    state=6
  <on_activate=6,1>
    state=7
  <on_activate=7,1>
    state=8
    remove_enemy.priest=0,0
    enemy_forced.priest_mortal=2,0
  <on_activate=8,2>
    picture=data\scene\priest1.jpg
    text_id=priest_end1
    button_id=b_next
    state=9
  <on_button=9,0>
    picture=data\scene\priest1.jpg
    text_id=priest_end2
    button_id=b_next
    state=10
  <on_button=10,0>
    picture=data\scene\demon1.jpg
    text_id=priest_end3
    button_id=b_next
    state=11
  <on_button=11,0>
    picture=data\scene\demon2.jpg
    text_id=priest_end4
    play_sound.devil = 0
    button_id=b_next
    state=12
  <on_button=12,0>
    picture=data\scene\demon2.jpg
    text_id=priest_end5
    button_id=b_next
    state=13
  <on_button=13,0>
    picture=data\scene\demon2.jpg
    text_id=priest_end6
    button_id=b_next
    state=14
  <on_button=14,0>
    play_sound.dtalk=0
    picture=data\scene\undeadking.jpg
    text_id=priest_end7
    button_id=b_next
    state=15
  <on_button=15,0>
    flash_view=0,0,0,255
    cancel_picture=0
    text_id=priest_end8
    enemy.undeadking=0,0
    enemy.crook=1,-1
    object.crook_dummy=0,1,-1
    button_id=b_next
    quest.evil_cult=2
    exp=10000
    state=16

--------------------------------------------------------------------------------

[behavior = lock]
  <on_click=0>
    check_item.bone_key=0
  <on_check=0,0,0>
    text_id=locked
  <on_check=0,0,1>
    text_id=action_used_key
    cube.empty=0,0,0
    play_sound.unlock =0
    play_sound.move_stone =0
    remove_party_item.bone_key=1
    state=1
  <on_click=1>
    text_id=unlocked

--------------------------------------------------------------------------------
[behavior = ladder_exit]
<on_enter=0,1>
    do_click=0
<on_click=0>
    text_width=310
    text_id=cloister_leave1
    button_id=b_yes
    button_id=b_no
<on_button=0,0>
    play_sound.ladder=0
    picture=data/scene/travel_city.jpg
    text_id=cloister_leave2
    button_id=b_next
    state=1
    #reset respawnu
    set_global.255 = 0
    set_global.254 = 0
    set_global.253 = 0
    set_global.252 = 0
    set_global.251 = 0
<on_button=0,1>
    teleport=-1,-1,0
<on_button=1,0>
    picture=data/scene/travel_city2.jpg
    text_id=cloister_leave3
    button_id=b_next
    state=2
<on_button=2,0>
    picture=data/scene/travel_city2.jpg
    text_id=cloister_leave4
    button_id=b_next
    state=3
<on_button=3,0>
	remove_party_item.RUBY = 2
	remove_party_item.prior's_key=1
	teleport.city,city=3,39,35

[behavior=crook_dummy]
  <on_click=0>
    play_sound.devil=0
    state=1
  <on_click=1>
    play_sound.devil=0
    state=2
  <on_click=2>
    play_sound.devil=0
    text_id=udg_crook
    button_id=b_ok
  <on_button=2,0>
    state=3
  <on_click=3>
    play_sound.devil=0


