[behavior = exit_ambrius]
  <on_click = 0>
    play_sound.ladder=0
    teleport.GRAVEYARD_1 = 0,20,13
  <on_enter = 0,1>
    play_sound.ladder=0
    teleport.GRAVEYARD_1 = 0,20,13

[behavior = ambrius_down]
  <on_click = 0>
    play_sound.ladder=0
    teleport.TOMB_AMBRIUS_2 = 2,2,2
  <on_enter = 0,1>
    play_sound.ladder=0
    teleport.TOMB_AMBRIUS_2 = 2,2,2

[behavior = ambrius_up]
  <on_click = 0>
    play_sound.ladder=0
    teleport.TOMB_AMBRIUS_1 = 0,9,12
  <on_enter = 0,1>
    play_sound.ladder=0
    teleport.TOMB_AMBRIUS_1 = 0,9,12


[behavior = tomb_door]
  <on_init = 0>
  	animate = 0, 0, 0, 1
  	block = 1
  <on_init = 1>
  	animate = 4, 4, 0, 1
  	block = 0
  <on_click = 0>
  	state = 1
	  animate = -1, 4, 0, 1
	  play_sound.move_stone=0
  	block = 0
  	end_round=1
  <on_click = 1>
  	state = 0
  	animate = -1, 0, 0, 1
  	play_sound.move_stone=0
  	block = 1
  	end_round=1
  	
  	
[behavior = tomb_door_locked]
  <on_init = 0>
  	animate = 0, 0, 0, 1
  	block = 1
  <on_init = 1>
  	animate = 0, 0, 0, 1
  	block = 1
  <on_init = 2>
  	animate = 4, 4, 0, 1
  	block = 0
  <on_click = 0>
    text_id=locked_door
  <on_activate=0,1>
    state=1
    do_click=1
  <on_click = 1>
	  animate = -1, 4, 0, 1
  	block = 0
  	play_sound.move_stone=0
  	state=2
  	end_round=1
  <on_click = 2>
  	state = 1
  	animate = -1, 0, 0, 1
  	play_sound.move_stone=0
  	block = 1
  	end_round=1

[behavior = tomb_door_lever]
  <on_init = 0>
  	animate = 0, 0, 0, 1
  	block = 1
  <on_init = 1>
  	animate = 4, 4, 0, 1
  	block = 0

  <on_click = 0>
    text_id = locked_door

  <on_activate = -1,1>
	  animate = -1, 4, 0, 1
  	block = 0
  	play_sound.move_stone=0
  	state=1
  <on_activate = -1,2>
  	animate = -1, 0, 0, 1
  	block = 1
  	play_sound.move_stone=0
  	state=0

  	
  	
[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 = 2,0,0
	play_sound.switch = 0


[behavior = teleport]
  <on_enter = 0,1>
    teleport = 2,0,0
    play_sound.teleport=0
    
[behavior = torch2_port]
  <on_click=0>
    teleport = 2,0,0
    play_sound.teleport=0


[behavior=wake_bat]
<on_click=0>
	enemy_type.bat_sleeping=bat,0,0
	state=255
	play_sound.rat_att = 0

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

[behavior = lock]
  <on_click=0>
    check_item.tomb_key=0
  <on_check=0,0,0>
    text_id=locked
  <on_check=0,0,1>
    text_id=action_used_key
    activate=1,0,0
    play_sound.unlock=0
    remove_party_item.tomb_key=1
    state=1
  <on_click=1>
    text_id=unlocked


--------------------------------------------------------------------------------
[behavior = sarc_upper]
  <on_click=0>
    item_offer=0,1
    play_sound.move_stone=0
    enemy.skeleton=0,-2
    state=1
  <on_click=1>
    item_offer=0,1
    play_sound.move_stone=0

