sound.rat_att = data\sound\enemy\rat.wav

[behavior=RESPAWN-bat]
  <on_enter = 0, 1>
    check_global.255=0,0
  <on_check=0,0,1>
    enemy.bat_respawn=0,0
    change_global.255=-1


[behavior=tstone]
  <on_click=0>
    flash_view=0,250,250,100
    play_sound.skill_ancestor =0
    teleport.aenor_glen=-1,26,22

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


[behavior = rock_entrance1]
  <on_move = 0,0>
    do_click = 0
  <on_click=0>
    teleport.aenor_glen = -1,11,19

[behavior = rock_entrance2]
  <on_move = 0,0>
    do_click = 0
  <on_click=0>
    teleport.aenor_glen = -1,22,4

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

[behavior = lever_correct]
  <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
  	change_global.4 = 1
  	activate = 1,0,0
  	play_sound.switch=0
  <on_click = 1>
  	state = 0
  	animate = 0, 0, 0, 1
  	change_global.4 = -1
  	activate = 1,0,0
  	play_sound.switch=0

[behavior = lever_wrong]
  <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
  	change_global.5 = 1
  	activate = 1,0,0
  	play_sound.switch=0
  <on_click = 1>
  	state = 0
  	animate = 0, 0, 0, 1
  	change_global.5 = -1
  	activate = 1,0,0
  	play_sound.switch=0

[behavior=lever_counter]
  <on_activate = 0,1>
    #provereni spatnych pak
    cube.w_clay = 0,0,0
    check_global.5 = 0,0
  <on_check = 0,0,0>
    # zadna spatna? provereni spravnych pak
    check_global.4 = 3,1
  <on_check = 0,1,0>
    play_sound.move_stone=0
    cube.g_tomb = 0,0,0
    state=1

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

[behavior = stone_sign1]
  <on_click=0>
    text_id = om_sign1
[behavior = stone_sign2]
  <on_click=0>
    text_id = om_sign2
[behavior = stone_sign3]
  <on_click=0>
    text_id = om_sign3
[behavior = stone_sign4]
  <on_click=0>
    text_id = om_sign4
[behavior = stone_sign5]
  <on_click=0>
    text_id = om_sign5
[behavior = stone_sign6]
  <on_click=0>
    text_id = om_sign6
[behavior = stone_sign7]
  <on_click=0>
    text_id = om_sign7
[behavior = stone_sign8]
  <on_click=0>
    text_id = om_sign8
[behavior = stone_sign9]
  <on_click=0>
    text_id = om_sign9

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

[behavior = door1]
  <on_move=0,2>
    do_click=1
  <on_click=0>
    check_item.miner's_key=0
  <on_check=0,0,0>
    text_id = locked_door
    play_sound.locked_door = 0
  <on_check=0,0,1>
    text_id = action_used_key
    remove_party_item.miner's_key=1
    play_sound.unlock = 0
    state=1
  <on_move=1,2>
    do_click=1
  <on_click=1>
    teleport = -1,0,0
    play_sound.door = 0
    
[behavior=door2]
  <on_move=0,2>
    do_click=1
  <on_click=0>
    teleport = -1,0,0
    play_sound.door = 0

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

[behavior=gold_reef]
  <on_enter = 0,1>
    text_id = om_gold_reef
    button_id=b_ok
    state=1
  <on_click = 1>
    check_item.pick = 0
  <on_check=1,0,0>
    text_id = om_pick
  <on_check=1,0,1>
    item.money80 = 0,0
    item.money40 = 0,0
    play_sound.ladder=0
    state=255
    
--------------------------------------------------------------------------------

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

