[behavior=mirror_N]
  <on_move=0,2>
    do_click=0
  <on_click=0>
    check_item.enchanted_cat=0
  <on_check=0,0,1>
    play_sound.SKILL_ANCESTOR=0
    end_round=1
    teleport=0,0,0
[behavior=mirror_E]
  <on_move=0,2>
    do_click=0
  <on_click=0>
    check_item.enchanted_cat=0
  <on_check=0,0,1>
    play_sound.SKILL_ANCESTOR=0
    end_round=1
    teleport=1,0,0
[behavior=mirror_S]
  <on_move=0,2>
    do_click=0
  <on_click=0>
    check_item.enchanted_cat=0
  <on_check=0,0,1>
    play_sound.SKILL_ANCESTOR=0
    end_round=1
    teleport=2,0,0
[behavior=mirror_W]
  <on_move=0,2>
    do_click=0
  <on_click=0>
    check_item.enchanted_cat=0
  <on_check=0,0,1>
    play_sound.SKILL_ANCESTOR=0
    end_round=1
    teleport=3,0,0

[behavior=mirror2]
  <on_move=0,2>
    do_click=0
  <on_click=0>
    check_item.enchanted_cat=0
  <on_check=0,0,1>
    play_sound.SKILL_ANCESTOR=0
    end_round=1
    teleport=3,1,5

[behavior=mirror_broken]
  <on_click=0>
    use_offer=0
  <on_use.shards=0,1>
    object.mirror2=3,0,0
    remove_object.mirror_broken=0,0
    remove_party_item.shards=1

--------------------------------------------------------------------------------
[behavior = door1]
  <on_move=0,2>
    do_click=1
  <on_click=0>
    play_sound.door = 0
    teleport.city=-1,23,31

--------------------------------------------------------------------------------
[behavior = house_door]
  <on_init = 0>
  	animate = 0, 0, 0, 1
  	block = 1
  <on_init = 1>
  	animate = 1, 1, 0, 1
  	block = 0
  <on_click = 0>
  	state = 1
	  animate = -1, 1, 0, 1
  	block = 0
    play_sound.door = 0
    end_round=1
  <on_click = 1>
  	state = 0
  	animate = -1, 0, 0, 1
  	block = 1
    play_sound.door = 0
    end_round=1

[behavior=house_door_lever]
  <on_init = 0>
  	animate = 0, 0, 0, 1
  	block = 1
  <on_init = 1>
  	animate = 1, 1, 0, 1
  	block = 0
  <on_click=0>
    play_sound.locked_door = 0
    text_id=locked_door
  <on_activate=0,1>
  	state = 1
	  animate = 1, 1, 0, 1
  	block = 0
    play_sound.door = 0
    end_round=1
  <on_activate=1,1>
  	state = 0
	  animate = 0, 0, 0, 1
  	block = 1
    play_sound.door = 0
    end_round=1

[behavior = down1]
  <on_move=0,2>
    do_click=0
  <on_click=0>
    play_sound.ladder = 0
    teleport.hoh_dung=1,9,7

[behavior = down2]
  <on_move=0,2>
    do_click=0
  <on_click=0>
    play_sound.ladder = 0
    teleport.hoh_dung=1,9,11

--------------------------------------------------------------------------------
[behavior = lever]
  <on_init = 0>
  	animate = 0, 0, 0, 1
  <on_init = 1>
  	animate = 1, 1, 0, 1
  <on_click = 0>
  	state = 1
  	animate = -1, 1, 0, 1
  	activate = 1,0,0
    play_sound.switch = 0
  <on_click = 1>
  	state = 0
  	animate = 0, 0, 0, 1
  	activate = 1,0,0
    play_sound.switch = 0

[behavior=button_wall]
  <on_init = 0>
  	animate = 0, 0, 0, 1
  <on_init = 1>
  	animate = 1, 1, 0, 1
  <on_click = 0>
  	state = 1
  	animate = -1, 1, 0, 1
    play_sound.move_stone = 0
    cube.ground=0,0,0
    
--------------------------------------------------------------------------------

[behavior = teleport]
  <on_enter = 0,1>
    play_sound.teleport = 0
    teleport = -1,0,0
    
--------------------------------------------------------------------------------
[behavior = book_blue]
  <on_click=0>
    item.dungeon_key=0,0
    play_sound.inventory=0
    state = 2

--------------------------------------------------------------------------------
[behavior = duke_diary]
  <on_click=0>
    object.book_blue=3,0,0
    item.duke's_ring=255,255
    picture=data\scene\book.jpg
    text_id = hoh_diary1
    state=2
    button_id=b_next

  <on_click=1>
    play_sound.map = 0
    picture=data\scene\book.jpg
    text_id = hoh_diary1b
    button_id=b_next
    state=2
  <on_button=2,0>
    play_sound.map = 0
    picture=data\scene\book.jpg
    text_id = hoh_diary2
    button_id=b_next
    state=3
  <on_button=3,0>
    play_sound.map = 0
    picture=data\scene\book.jpg
    text_id = hoh_diary3
    button_id=b_next
    state=4
  <on_button=4,0>
    play_sound.map = 0
    picture=data\scene\book.jpg
    text_id = hoh_diary4
    button_id=b_next
    state=5
  <on_button=5,0>
    play_sound.map = 0
    picture=data\scene\book.jpg
    text_id = hoh_diary5
    button_id=b_next
    state=6
  <on_button=6,0>
    play_sound.map = 0
    picture=data\scene\book.jpg
    text_id = hoh_diary6
    button_id=b_next
    state=7
  <on_button=7,0>
    play_sound.map = 0
    picture=data\scene\book.jpg
    text_id = hoh_diary7
    state=1

--------------------------------------------------------------------------------
[behavior=hoh_enter]
  <on_enter=0,1>
    text_id=hoh_enter
    quest.house_of_horror=1
    button_id=b_ok
  <on_button=0,0>
    state=255

[behavior=hoh_mirror]
  <on_enter=0,1>
    text_id=hoh_mirror
    set_global.29=1
    quest.magic_mirror=1
    button_id=b_ok
  <on_button=0,0>
    state=255

--------------------------------------------------------------------------------
[behavior = stone_up]
  <on_enter=0,1>
    do_click=0
  <on_click=0>
    play_sound.ladder = 0
    teleport.hoh_top = -1,1,10
    
--------------------------------------------------------------------------------
[behavior=hoh_victory]
  <on_enter=0,1>
    check_global.33=100,0
  <on_check=0,0,0>
    cancel_picture = 1
    flash_view=0,0,0,255
    text_id=astral_duke3
    remove_enemy.necromancer=0,0
    quest.house_of_horror=2
    quest.killing_immortal=2
    exp=20000
    set_global.23=1
    state=255

--------------------------------------------------------------------------------
[behavior=painting2]
  <on_init=-1>
    animate=0,1,0,999
  <on_enter=0,1>
    text_id=hoh_bleeding_painting1
    button_id=b_ok
  <on_button=0,0>
    state=1
  <on_click=1>
    check_global.34=1,0
  <on_check=1,0,-1>
    text_id=nothing_happened
  <on_check=1,0,0>
    text_id=hoh_bleeding_painting2
    enemy_forced.necromancer=-2,0
    object.wallstain1=1,0,0
    play_sound.SKILL_ANCESTOR=0
    flash_view = 255,255,50,200	
    state=2
  <on_move=2,2>
    do_click=0
  <on_click=2>
    play_sound.teleport=0
    teleport.astral=3,14,12



