sound.flute=data\sound\flute.wav

[behavior=tstone]
  <on_click=0>
	flash_view=0,250,250,100
	play_sound.skill_ancestor=0
	teleport.graveyard_1=-1,2,8

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

[behavior = stone_sign1]
  <on_click = 0>
    text_id = kt2_guard1
    
[behavior = stone_sign2]
  <on_click = 0>
    text_id = kt2_guard2

[behavior = stone_sign3]
  <on_click = 0>
    text_id = kt2_guard3
    teleport = -1,0,0

[behavior = stone_sign4]
  <on_click = 0>
    text_id = kt2_guard4

[behavior = stone_sign_water]
  <on_click = 0>
    text_id = kt2_water

[behavior = stone_sign_song]
  <on_click = 0>
    text_id = kt2_song
    use_offer=1
  <on_use.flute = 0,0>
    text_id=nothing_happened
  <on_use.flute = 0,1>
    play_sound.flute=0
    remove_party_item.flute=1
    remove_object.torch_nolight=0,0
    object.torch2=0,0,0
    object.torch2=1,0,0
    change_global.16=1
    text_id=kt2_guard_win
    button_id=b_ok
    state=1



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

    
[behavior = up_kt1]
  <on_enter = 0,1>
    do_click=0
  <on_click = 0>
	play_sound.ladder = 0
    teleport.KINGS_TOMB_1 = 0,24,27


[behavior = down1]
  <on_enter = 0,1>
    do_click=0
  <on_click = 0>
	play_sound.ladder = 0
    teleport.KINGS_TOMB_3 = 2,4,3
[behavior = down2]
  <on_enter = 0,1>
    do_click=0
  <on_click = 0>
	play_sound.ladder = 0
    teleport.KINGS_TOMB_3 = 2,8,2
[behavior = down3]
  <on_enter = 0,1>
    do_click=0
  <on_click = 0>
	play_sound.ladder = 0
    teleport.KINGS_TOMB_3 = 0,12,1
[behavior = down4]
  <on_enter = 0,1>
    do_click=0
  <on_click = 0>
	play_sound.ladder = 0
    teleport.KINGS_TOMB_3 = 0,8,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
  	block = 0
  	play_sound.move_stone=0
  	end_round=1
  <on_click = 1>
  	state = 0
  	animate = -1, 0, 0, 1
  	block = 1
  	play_sound.move_stone=0
  	end_round=1

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

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


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

[behavior = timber]
  <on_click=0>
    text_id = remove_timber
    activate = 1,0,0
    remove_object.timber = 0,0
    play_sound.MOVE_STONE = 0

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

[behavior = cracked_stone]
  <on_click=0>
    remove_object.cracked_stone = 0,0
    play_sound.break_wall = 0


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

[behavior=sarc_wiz]
  <on_click=0>
    check_item.paper_with_runes = 0
  <on_check = 0,0,0>
    text_id=kt2_story0
  <on_check = 0,0,1>
    text_width=220
    text_id=kt2_story0
    use_offer=0
  <on_use.paper_with_runes = 0,0>
    text_id=nothing_happened
  <on_use.paper_with_runes=0,1>
    text_id=kt2_story1
    play_sound.map=0
    state=1

  <on_click=1>
    text_width = 310
    #picture = data/scene/book.jpg
    text_id = kt2_story2
    button_id = b_next
  <on_button=1,0>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text_width = 470
    text = #
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=2

//------------------------------
  <on_button=2,0>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "ur"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=3
  <on_button=2,1>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "tor"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=3
  <on_button=2,2>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "nis"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=100
  <on_button=2,3>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "zef"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=3
  <on_button=2,4>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "parth"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=3
  <on_button=2,5>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "oghal"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=101
  <on_button=2,6>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "fom"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=3
//------------------------------

  <on_button=3,0>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "ur"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=4
  <on_button=3,1>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "tor"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=4
  <on_button=3,2>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "nis"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=4
  <on_button=3,3>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "zef"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=4
  <on_button=3,4>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "parth"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=4
  <on_button=3,5>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "oghal"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=4
  <on_button=3,6>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "fom"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=4
//------------------------------

  <on_button=100,0>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "ur"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=4
  <on_button=100,1>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "tor"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=4
  <on_button=100,2>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "nis"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=4
  <on_button=100,3>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "zef"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=4
  <on_button=100,4>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "parth"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=4
  <on_button=100,5>
    #picture = data/scene/book.jpg
    #text_id = kt2_story3
    #text = # "oghal"
    remove_object.torch_nolight=0,0
    object.torch2=0,0,0
    object.torch2=1,0,0
    change_global.16=1
    play_sound.SKILL_SUMMON=0
    text_id=kt2_guard_win
    state=200
    button_id=b_ok
  <on_button=100,6>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "fom"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=4
//------------------------------

  <on_button=101,0>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "ur"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=4
  <on_button=101,1>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "tor"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=4
  <on_button=101,2>
    #picture = data/scene/book.jpg
    #text_id = kt2_story3
    #text = # "nis"
    remove_object.torch_nolight=0,0
    object.torch2=0,0,0
    object.torch2=1,0,0
    change_global.16=1
    play_sound.SKILL_SUMMON=0
    text_id=kt2_guard_win
    state=200
    button_id=b_ok
  <on_button=101,3>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "zef"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=4
  <on_button=101,4>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "parth"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=4
  <on_button=101,5>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "oghal"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=4
  <on_button=101,6>
    #picture = data/scene/book.jpg
    text_id = kt2_story3
    text = # "fom"
    button = ur
    button = tor
    button = nis
    button = zef
    button = parth
    button = oghal
    button = fom
    state=4
//------------------------------

  <on_button=4,0>
    text_id = kt2_story_fail
    state=1
  <on_button=4,1>
    text_id = kt2_story_fail
    state=1
  <on_button=4,2>
    text_id = kt2_story_fail
    state=1
  <on_button=4,3>
    text_id = kt2_story_fail
    state=1
  <on_button=4,4>
    text_id = kt2_story_fail
    state=1
  <on_button=4,5>
    text_id = kt2_story_fail
    state=1
  <on_button=4,6>
    text_id = kt2_story_fail
    state=1

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

[behavior=sarc_mentor]
  <on_click=0>
    item_offer=0,1
  <on_global=0,13,4>
    remove_object.torch_nolight=0,0
    object.torch2=0,0,0
    object.torch2=1,0,0
    change_global.16=1
    play_sound.SKILL_SUMMON=0
    text_id=kt2_guard_win
    button_id=b_ok
    state=1


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

[behavior=piedestal_wis]
  <on_click=0>
    text_width=220
    text_id = kt2_p_wis
    use_offer=0


  <on_use.severed_skull = 0,1>
    object.severed_skull = 0,0,0
    remove_party_item.severed_skull=1
    change_global.13=1
    state=2
  <on_use.left_hand = 0,1>
    object.left_hand = 0,0,0
    remove_party_item.left_hand=1
    state=1
  <on_use.right_hand = 0,1>
    object.right_hand = 0,0,0
    remove_party_item.right_hand=1
    state=1
  <on_use.mentor_sandals = 0,1>
    object.mentor_sandals = 0,0,0
    remove_party_item.mentor_sandals=1
    state=1
  <on_activate=1,1>
    state=0
  <on_activate=2,1>
    state=0
    change_global.13=-1

***************

[behavior=piedestal_hum]
  <on_click=0>
    text_width=220
    text_id = kt2_p_hum
    use_offer=0
  <on_use.severed_skull = 0,1>
    object.severed_skull = 0,0,0
    remove_party_item.severed_skull=1
    state=1
  <on_use.left_hand = 0,1>
    object.left_hand = 0,0,0
    remove_party_item.left_hand=1
    change_global.13=1
    state=2
  <on_use.right_hand = 0,1>
    object.right_hand = 0,0,0
    remove_party_item.right_hand=1
    state=1
  <on_use.mentor_sandals = 0,1>
    object.mentor_sandals = 0,0,0
    remove_party_item.mentor_sandals=1
    state=1
  <on_activate=1,1>
    state=0
  <on_activate=2,1>
    state=0
    change_global.13=-1

***************

[behavior=piedestal_pow]
  <on_click=0>
    text_width=220
    text_id = kt2_p_pow
    use_offer=0
  <on_use.severed_skull = 0,1>
    object.severed_skull = 0,0,0
    remove_party_item.severed_skull=1
    state=1
  <on_use.left_hand = 0,1>
    object.left_hand = 0,0,0
    remove_party_item.left_hand=1
    state=1
  <on_use.right_hand = 0,1>
    object.right_hand = 0,0,0
    remove_party_item.right_hand=1
    change_global.13=1
    state=2
  <on_use.mentor_sandals = 0,1>
    object.mentor_sandals = 0,0,0
    remove_party_item.mentor_sandals=1
    state=1
  <on_activate=1,1>
    state=0
  <on_activate=2,1>
    state=0
    change_global.13=-1

***************

[behavior=piedestal_cou]
  <on_click=0>
    text_width=220
    text_id = kt2_p_cou
    use_offer=0
  <on_use.severed_skull = 0,1>
    object.severed_skull = 0,0,0
    remove_party_item.severed_skull=1
    state=1
  <on_use.left_hand = 0,1>
    object.left_hand = 0,0,0
    remove_party_item.left_hand=1
    state=1
  <on_use.right_hand = 0,1>
    object.right_hand = 0,0,0
    remove_party_item.right_hand=1
    state=1
  <on_use.mentor_sandals = 0,1>
    object.mentor_sandals = 0,0,0
    remove_party_item.mentor_sandals=1
    change_global.13=1
    state=2
  <on_activate=1,1>
    state=0
  <on_activate=2,1>
    state=0
    change_global.13=-1

***************





[behavior=mentor_sandals]
  <on_click=0>
    item.mentor_sandals=255,255
    remove_object.mentor_sandals=0,0
    activate=1,0,0
[behavior=right_hand]
  <on_click=0>
    item.right_hand=255,255
    remove_object.right_hand=0,0
    activate=1,0,0
[behavior=left_hand]
  <on_click=0>
    item.left_hand=255,255
    remove_object.left_hand=0,0
    activate=1,0,0
[behavior=severed_skull]
  <on_click=0>
    item.severed_skull=255,255
    remove_object.severed_skull=0,0
    activate=1,0,0

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

[behavior=sarc_warrior]
  <on_click=0>
    state=1
    enemy_forced.stonegolem=3,0
    item_offer=0,1
    play_sound.move_stone=0
  <on_click=1>
    item_offer=0,1
    play_sound.move_stone=0
  <on_activate=1,1>
    remove_object.torch_nolight=0,0
    play_sound.SKILL_SUMMON=0
    text_id=kt2_guard_win
    button_id=b_ok
    object.torch2=0,0,0
    object.torch2=1,0,0
    change_global.16=1




--------------------------------------------------------------------------------
[behavior = button]
  <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
  	play_sound.switch =0
    cube.g_tomb = 0,0,0
  <on_click = 1>
  	state = 0
  	animate = 0, 0, 0, 1
  	play_sound.move_stone=0
  	play_sound.switch =0
    cube.w_stone = 0,0,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
    change_global.14=1
    play_sound.switch=0
  <on_click = 1>
  	state = 0
  	animate = 0, 0, 0, 1
    change_global.14=-1
    play_sound.switch=0

[behavior = tomb_door_8lever]
<on_init = 0>
	animate = 0, 0, 0, 1
  	block = 1
<on_click=0>
	text_id = locked_door
<on_init = 1>
  	animate = 4, 4, 0, 1
  	block = 0
<on_global=0,14,8>
  	state = 1
        animate = -1, 4, 0, 1
  	block = 0
  	play_sound.move_stone=0

--------------------------------------------------------------------------------
[behavior=torch_lightbridge]
  <on_click=0>
    remove_object.torch_lightbridge=0,0
    object.torch2=1,0,0
    object.light_bridge=0,1,0
    object.light_bridge=0,2,0
    cube.empty_walk=0,1,0
    cube.empty_walk=0,2,0
  	play_sound.switch =0
    play_sound.skill_alchemy=0

[behavior = teleport]
  <on_enter=0,1>
    play_sound.teleport=0
    teleport=-1,0,0
[behavior = teleport_turnS]
  <on_enter=0,1>
    teleport=2,0,0
[behavior = teleport_turnN]
  <on_enter=0,1>
    teleport=0,0,0

