sound.yaga_laugh = data/sound/npc/yaga_laugh.wav
sound.npc_fairy = data/sound/npc/fairy.wav
sound.highlander = data/sound/npc/npc-skret.wav
sound.scream =data/sound/scream.wav
sound.girl= data/sound/npc/woman_hello.wav

[behavior=RESPAWN-wolf]
  <on_enter = 0, 1>
    check_global.253=0,0
  <on_check=0,0,1>
    enemy.wolf_respawn=0,0
    change_global.253=-1

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

[behavior=tstone]
  # top = nothing
  # left = temple
  # right = exit
  # bottom = forest
  <on_click=0>
    text_id=travelstone
    button_id=b_tstone1
    button_id=b_tstone2
    button_id=b_tstone3
    button_id=b_tstone4
    button_id=b_tstone5

  <on_button=0,0>
    check_global.250=1,0
  <on_check=0,0,-1>
    text_id=nothing_happened
  <on_check=0,0,0>
    flash_view=0,250,250,100
    play_sound.skill_ancestor =0
    teleport=-1,7,13
  <on_button=0,1>
    flash_view=0,250,250,100
    play_sound.skill_ancestor =0
    teleport=-1,2,21
  <on_button=0,2>
    flash_view=0,250,250,100
    play_sound.skill_ancestor =0
    teleport=-1,10,25
  <on_button=0,3>
    flash_view=0,250,250,100
    play_sound.skill_ancestor =0
    teleport=-1,8,31


[behavior=broken_tstone1]
  <on_click=0>
    text_id=something's_missing
    use_offer=0
  <on_use.runic_stones=0,0>
    text_id=nothing_happened
  <on_use.runic_stones=0,1>
    play_sound.move_stone =0
    object.tstone=2,0,0,0,0
    change_global.250=1
    remove_party_item.runic_stones=1
    state=255



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

[behavior=forest_watch]
  <on_click=0>
    text_id = forest_watch1
    button_id = b_next
  <on_button = 0,0>
    text_id = forest_watch2
    button_id = b_ok

[behavior=adventurer_dummy]
  <on_click=0>
    state=1
    play_sound.highlander=0
    text_id=forest_adventurer
    button_id=b_trade
    button_id=b_leave
  <on_button=1,0>
    item_offer=1,12
  <on_click=1>
    item_offer=1,12

[behavior=forest_moaning]
<on_enter=0,1>
	text_id = forest_moaning
	button_id=b_ok
	quest.distant_moaning = 1
	play_sound.scream = 0
	state=255
    
[behavior=redhood]
  <on_click=0>
    play_sound.girl=0
    text_id = forest_saving1
    picture = data/scene/saving_lady.jpg
    quest.distant_moaning = 2
    exp = 500
    button_id = b_next
  <on_button = 0,0>
    text_id = forest_saving2
    picture = data/scene/saving_lady.jpg
    button_id=b_yes
    button_id=b_no
    state=1
  <on_button=1,0>
    cancel_picture=0
    remove_object.redhood=0,0
    remove_enemy.redhood=0,0
    flash_view=0,0,0,255
    text_id=forest_yaga0
    teleport=0,6,-31
    state=255
  <on_click=1>
    play_sound.girl=0
    text_id = forest_saving2
    picture = data/scene/saving_lady.jpg
    button_id=b_yes
    button_id=b_no

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

[behavior=goto_aenor]
  <on_move=0,0>
    text_id = forest_leave
    button_id = b_yes
    button_id = b_no
  <on_button = 0,0>
    state=1
    picture = data/scene/travel_aenor.jpg
    text_id = to_the_mountains
    button_id = b_next
    remove_party_item.holy_water=99
    remove_party_item.empty_flagon=99
    remove_party_item.underground_water=99
    remove_party_item.runic_stones=99
    #reset respawnu
    set_global.255 = 0
    set_global.254 = 0
    set_global.253 = 0
    set_global.252 = 0
    set_global.251 = 0
  <on_button = 1,0>
    state=0
    teleport.aenor_glen,aenor = -1,4,38


--------------------------------------------------------------------------------
[behavior = rock_entrance1]
  <on_move = 0,0>
    do_click = 0
  <on_click=0>
    teleport = 3,0,0
    
[behavior = rock_entrance2]
  <on_move = 0,0>
    do_click = 0
  <on_click=0>
    teleport.TROLL_CAVE = -1,16,8

[behavior = direction1]
  <on_click=0>
    text_id=forest_dir


--------------------------------------------------------------------------------
[behavior=monk_statue]
  <on_click=0>
    text_width=220
    text_id=forest_monk_statue1
    use_offer=0
    <on_use.bread=0,1>
      state=1
      text_width=220
      text_id=forest_monk_statue2
      play_sound.SKILL_FROST=0
      remove_party_item.bread=1
    <on_use.cheese=0,1>
      state=2
      text_width=220
      text_id=forest_monk_statue2
      play_sound.SKILL_FROST=0
      remove_party_item.cheese=1
  <on_click=1>
    text_width=220
    text_id=forest_monk_statue1
    use_offer=0
    <on_use.cheese=1,1>
      state=3
      text_width=220
      text_id=forest_monk_statue3
      play_sound.SKILL_ANCESTOR=0
      remove_object.tree2=0,0
      remove_object.bush1=0,0
      remove_party_item.cheese=1
  <on_click=2>
    text_width=220
    text_id=forest_monk_statue1
    use_offer=0
    <on_use.bread=2,1>
      state=3
      text_width=220
      text_id=forest_monk_statue3
      play_sound.SKILL_ANCESTOR=0
      remove_object.tree2=0,0
      remove_object.bush1=0,0
      remove_party_item.bread=1


--------------------------------------------------------------------------------
[behavior=temple]
  <on_move=0,0>
    do_click=0
  <on_click=0>
    picture=data\scene\monks.jpg
    text_id=forest_monks1
    button_id=b_go_on
    button_id=b_trade
    button_id=b_leave
  <on_button=0,1>
    item_offer=1,11
  <on_button=0,0>
    picture=data\scene\monks.jpg
    text_id=forest_monks2
    button_id=b_next
    state=1
  <on_button=1,0>
    picture=data\scene\monks.jpg
    text_id=forest_monks3
    item.holy_water=255,255
    quest.fire_pit=1
    state=2
    
  <on_move=2,0>
    do_click=0
  <on_click=2>
    check_global.32=5,0
  <on_check=2,0,-1>
    picture=data\scene\monks.jpg
    text_id=forest_monks5
    button_id=b_trade
    button_id=b_leave
    button_id=b_rest_100
  <on_button=2,0>
    item_offer=1,11
  <on_button=2,2>
    check_money=100,1
  <on_check=2,1,0>
    picture=data\scene\monks.jpg
    text_id = not_enough_money
  <on_check=2,1,1>
    cancel_picture = 0
    text_id = dh_inn_rest
    change_money = -100
    change_hp = 0, 100, 2
    change_stamina = 0, 100, 2
    play_sound.YAWN = 0
  <on_check=2,0,0>
    picture=data\scene\monks.jpg
    text_id=forest_monks4
    change_money=350
    button_id=b_trade
    button_id=b_leave
    button_id=b_rest_100
    quest.fire_pit=2
    exp=1000
    state=3
  <on_check=2,0,1>
    picture=data\scene\monks.jpg
    text_id=forest_monks4
    change_money=350
    button_id=b_trade
    button_id=b_leave
    button_id=b_rest_100
    quest.fire_pit=2
    exp=1000
    state=3

  <on_move=3,0>
    do_click=0
  <on_click=3>
    picture=data\scene\monks.jpg
    text_id=forest_monks5
    button_id=b_trade
    button_id=b_leave
    button_id=b_rest_100
  <on_button=3,0>
    item_offer=1,11
  <on_button=3,2>
    check_money=100,0
  <on_check=3,0,0>
    picture=data\scene\monks.jpg
    text_id = not_enough_money
  <on_check=3,0,1>
    cancel_picture = 0
    text_id = dh_inn_rest
    change_money = -100
    change_hp = 0, 100, 2
    change_stamina = 0, 100, 2
    play_sound.YAWN = 0

--------------------------------------------------------------------------------
[behavior=hole]
  <on_enter=0,1>
    teleport.lava_pit=-1,1,1
    
    
--------------------------------------------------------------------------------
[behavior=fire_menhir]
  <on_click=0>
    use_offer=0
  <on_use.holy_water=0,0>
    text_id=nothing_happened
  <on_use.holy_water=0,1>
    play_sound.SKILL_WALL=0
    text_id=pit_holy
    state=255
    
--------------------------------------------------------------------------------
[behavior=demon_block]
  <on_enter=0,1>
    text_id=forest_fire
    button_id=b_ok
    state=1
    
--------------------------------------------------------------------------------
[behavior=van]
  <on_click=0>
    play_sound.door = 0
    quest.fur_coat = 1
    state=1
    check_item.trophy_animal_fur=0,6

  <on_click=1>
    play_sound.door = 0
    check_item.trophy_animal_fur=0,6

  <on_check=1,0,0>
    text_width=310
    text_id = gypsy1
    button_id = b_trade
    button_id = b_leave
  <on_button=1,0>
    item_offer=1,12

  <on_check=1,0,1>
    text_width=310
    text_id = gypsy2
    button_id = b_yes
    button_id = b_no
    button_id = b_trade
    state=2

  <on_button=2,0>
    remove_party_item.trophy_animal_fur=6
    quest.fur_coat = 2
    change_money=400
    exp = 500
    state=3
  <on_button=2,1>
    state=1
  <on_button=2,2>
    state=1
    item_offer=1,12
    
  <on_click=3>
    play_sound.door = 0
    item_offer=1,12


--------------------------------------------------------------------------------
[behavior=berries]
  <on_click=0>
    text_id = berries
    item.berries=255,255
    state=255


--------------------------------------------------------------------------------
[behavior = door1]
  <on_move = 0,2>
    do_click=0
  <on_move = 1,2>
    do_click=0
  <on_move = 2,2>
    do_click=0
  <on_click=0>
    picture=data\scene\summoner.jpg
    text_id = forest_sum1
    button_id=b_work
    button_id=b_rest_100
    button_id=b_trade
    button_id=b_leave
    play_sound.door = 0
  <on_button=0,0>
    picture=data\scene\summoner.jpg
    text_id = forest_sum2
    quest.underground_spring=1
    item.empty_flagon=255,255
    state=1
  <on_button=0,1>
    check_money=100,0
  <on_check=0,0,0>
    picture=data\scene\summoner.jpg
    text_id = not_enough_money
  <on_check=0,0,1>
    cancel_picture = 0
    text_id = dh_inn_rest
    change_money = -100
    change_hp = 0, 100, 2
    change_stamina = 0, 100, 2
    play_sound.YAWN = 0

  <on_button=0,2>
    item_offer=1,12

  <on_click=1>
    check_item.underground_water=0
    play_sound.door = 0
  <on_check=1,0,0>
    picture=data\scene\summoner.jpg
    text_id = forest_sum3
    button_id=b_rest_100
    button_id=b_trade
    button_id=b_leave
  <on_button=1,0>
    check_money=100,1
  <on_check=1,1,0>
    picture=data\scene\summoner.jpg
    text_id = not_enough_money
  <on_check=1,1,1>
    cancel_picture = 0
    text_id = dh_inn_rest
    change_money = -100
    change_hp = 0, 100, 2
    change_stamina = 0, 100, 2
    play_sound.YAWN = 0
  <on_check=1,0,1>
    picture=data\scene\summoner.jpg
    text_id = forest_sum4
    remove_party_item.underground_water=1
    quest.underground_spring=2
    exp=500
    change_money=500
    state=2
  <on_button=1,1>
    item_offer=1,12

  <on_click=2>
    picture=data\scene\summoner.jpg
    text_id = forest_sum3
    button_id=b_rest_100
    button_id=b_trade
    button_id=b_leave
    play_sound.door = 0
  <on_button=2,0>
    check_money=100,1
  <on_check=2,1,0>
    picture=data\scene\summoner.jpg
    text_id = not_enough_money
  <on_check=2,1,1>
    cancel_picture = 0
    text_id = dh_inn_rest
    change_money = -100
    change_hp = 0, 100, 2
    change_stamina = 0, 100, 2
    play_sound.YAWN = 0
  <on_button=2,1>
    item_offer=1,12

--------------------------------------------------------------------------------
[behavior=caught_fairy]
  <on_click=0>
    text_width=310
    text_id=forest_fairy1
    button_id=b_yes
    button_id=b_no
    play_sound.npc_fairy = 0
  <on_button=0,0>
    enemy.smallspider=-1,0
    enemy.spider=-1,0
    enemy.smallspider=1,0
    enemy.spider=0,1
    enemy.smallspider=0,1
    play_sound.spider_att =0
    object.fairy2=0,-2,0
    state=255
  
[behavior=caught_fairy2]
  <on_enter=0, 1>
    text_id=forest_fairy2
    picture=data\scene\fairy.jpg
    exp=500
    check_random=3,1
    state=255
    play_sound.npc_fairy = 0

  <on_check=0,1,0>
    item.blue_power_gem=255,255
  <on_check=0,1,1>
    item.red_power_gem=255,255
  <on_check=0,1,2>
    item.dark_power_gem=255,255
  <on_check=0,1,3>
    item.sharp_power_gem=255,255

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


[behavior = skull]
  <on_init = 0>
  	animate = 0, 0, 0, 1
  <on_init = 1>
  	animate = 1, 1, 0, 1
  <on_init = 2>
  	animate = 1, 2, 0, 1
  <on_click = 0>
    use_offer=0
  <on_use.ruby=0,0>
    text_id=nothing_happened
  <on_use.ruby=0,1>
    remove_party_item.ruby = 1
  	state = 1
  	animate = -1, 1, 0, 1
  <on_click = 1>
    use_offer=0
  <on_use.ruby=1,0>
    text_id=nothing_happened
  <on_use.ruby=1,1>
    remove_party_item.ruby = 1
  	animate = -1, 2, 0, 1
    remove_object.rock_lava=0,-1
    flash_view=250,0,0,200
    quake=500
    play_sound.SKILL_WALL=0
    play_sound.move_stone=0
    state = 255

--------------------------------------------------------------------------------
[behavior = altar]
  <on_click=0>
    text_id = forest_altar
    button_id=b_yes
    button_id=b_no
  <on_button=0,0>
    flash_view=200,0,0,250
    hit=102,0,1,5,0,0
    play_sound.skill_ancestor=0
    handicap=100,7,150,150,50,0,0,0,2

[behavior=skull_pike1]
  <on_init=0>
    animate=0,0,0,1
[behavior=skull_pike2]
  <on_init=0>
    animate=1,1,0,1


[behavior=door_yaga]
  <on_click=0>
    play_sound.door=0
    picture=data/scene/yaga.jpg
    text_id=forest_yaga1
    button_id=b_next
  <on_button=0,0>
    picture=data/scene/yaga.jpg
    text_id=forest_yaga2
    button_id=b_next
    state=1
  <on_button=1,0>
    picture=data/scene/yaga.jpg
    text_id=forest_yaga3
    enemy.yaga=0,1
    enemy.redhood2=0,1
    object.teleport=0,0,2,5,41
    object.teleport=0,-6,33,12,9
    teleport = 2,0,0
    button_id=b_fight
    state=3
  <on_button=3,0>
    play_sound.yaga_laugh = 0
	state = 2
  <on_click=2>
    play_sound.door=0
    text_id=dh_auntie_empty

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

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

