sound.daemon_talk = data\sound\daemon_talk.wav
sound.ghost = data\sound\npc\npc-ghost.wav
[behavior = gate]
  <on_init = 0>
    animate = 0, 0, 0, 1
    block = 1
  <on_init = 1>
    animate = 1, 1, 0, 1
    block = 0
  <on_click = 0>
    check_item.astral_key = 0
  <on_check = 0,0,0>
    text_id = locked_gate
    play_sound.locked_door = 0
  <on_check = 0,0,1>
    state = 1
    animate = -1, 1, 0, 1
    block = 0
    text_id = action_used_key
    remove_party_item.astral_key = 1
    play_sound.unlock = 0
    play_sound.RUSTY_GATE = 0
  <on_click = 1>
    state = 2
    animate = 0, 0, 0, 1
    block = 1
    play_sound.RUSTY_GATE = 0
  <on_click = 2>
    state = 1
    animate = -1, 1, 0, 1
    block = 0
    play_sound.RUSTY_GATE = 0

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

--------------------------------------------------------------------------------
[behavior=fire_menhir]
  <on_click=0>
    object.fire_menhir2=0,0,0
    change_global.33 = 1
    quake=500
    remove_object.fire_menhir=0,0
  <on_global=0,33,1>
    text_id = astral_crystal
    text=(no.8)
    text_id=_to_go
  <on_global=0,33,2>
    text_id = astral_crystal
    text=(no.7)
    text_id=_to_go
  <on_global=0,33,3>
    text_id = astral_crystal
    text=(no.6)
    text_id=_to_go
  <on_global=0,33,4>
    text_id = astral_crystal
    text=(no.5)
    text_id=_to_go
  <on_global=0,33,5>
    text_id = astral_crystal
    text=(no.4)
    text_id=_to_go
  <on_global=0,33,6>
    text_id = astral_crystal
    text=(no.3)
    text_id=_to_go
  <on_global=0,33,7>
    text_id = astral_crystal
    text=(no.2)
    text_id=_to_go
  <on_global=0,33,8>
    text_id = astral_crystal
    text=(no.1)
    text_id=_to_go

[behavior=fire_menhir2]
  <on_init=0>
    play_sound.HIT_FIREBALL = 0
    state=1

--------------------------------------------------------------------------------
[behavior=crystal_count]
  <on_global=0,33,9>
    text_id=astral_all_crystals
    xremove_enemy.duke_immortal=0,0
    xenemy.duke=0,0
    enemy_type.duke_immortal=duke,0,0
    remove_object.duke_dummy=0,0
  <on_activate=0,1>
    picture=data/scene/duke1.jpg
    text_id=astral_duke1
    play_sound.daemon_talk=0
    button_id=b_next
  <on_button=0,0>
    picture=data/scene/duke1.jpg
    text_id=astral_duke2
    button_id=b_next
    state=1
  <on_button=1,0>
    set_global.33=100
    teleport.hoh=-1,3,8

--------------------------------------------------------------------------------
[behavior=menhir]
  <on_init=0>
    animate=0,0,0,1
  <on_init=1>
    animate=0,0,0,1
  <on_init=2>
    animate=0,0,0,1
  <on_init=3>
    animate=0,0,0,1
  <on_init=4>
    animate=0,0,0,1
  <on_init=5>
    animate=1,1,0,1

  <on_click=0>
    change_stamina=0,100,2
    play_sound.skill_alchemy=0
    state=1
  <on_click=1>
    change_stamina=0,100,2
    play_sound.skill_alchemy=0
    state=2
  <on_click=2>
    change_stamina=0,100,2
    play_sound.skill_alchemy=0
    state=3
  <on_click=3>
    change_stamina=0,100,2
    play_sound.skill_alchemy=0
    state=4
  <on_click=4>
    change_stamina=0,100,2
    play_sound.skill_alchemy=0
    animate=1,1,0,1
    state=5

--------------------------------------------------------------------------------
[behavior=mirror]
  <on_move=0,2>
    do_click=0
  <on_click=0>
    play_sound.teleport=0
    teleport.hoh=3,19,4

--------------------------------------------------------------------------------
[behavior=necro_dummy]
  <on_enter=0,1>
    quest.duke_of_horror=2
    exp=10000
    quest.killing_immortal=1
    state=1
  <on_move=1,-1>
    play_sound.daemon_talk = 0
    picture=data\scene\necro.jpg
    text_id=astral_necro1
    state=2
    
--------------------------------------------------------------------------------
[behavior=duke]
  <on_click=0>
    picture=data\scene\duke2.jpg
    play_sound.ghost =0
    text_id=astral_duke0
