[behavior = bell]
  <on_click=0>
    text_id=arena_bell1
    button_id=b_yes
    button_id=b_no
  <on_button=0,0>
    play_sound.bell = 0
    state=1
    enemy.arena1=-2,-1
    enemy.arena1=2,0
    enemy.arena1=1,3
    enemy.arena1=0,2
  <on_click=1>
    text_id=arena_bell_no
  <on_activate=1,1>
    state=2
  -------------------------
  <on_click=2>
    text_id=arena_bell2
    button_id=b_yes
    button_id=b_no
  <on_button=2,0>
    play_sound.bell = 0
    state=3
    enemy.arena2=-3,-2
    enemy.arena2=-3,-1
    enemy.arena2=-3,0
    enemy.arena2=-2,-3
    enemy.arena2=-2,-1
    enemy.arena2=-2,1
    enemy.arena2=-1,0
    enemy.arena2=-1,2
    enemy.arena2=-1,2
    enemy.arena2=0,2
    enemy.arena2=3,-2
    enemy.arena2=3,1
  <on_click=3>
    text_id=arena_bell_no
  <on_activate=3,2>
    state=4
  -------------------------
  <on_click=4>
    text_id=arena_bell3
    button_id=b_yes
    button_id=b_no
  <on_button=4,0>
    play_sound.bell = 0
    state=5
    enemy.arena3=-2,-1
    enemy.arena3=2,0
  <on_click=5>
    text_id=arena_bell_no


--------------------------------------------------------------------------------
[behavior=count]
  <on_activate=0,1>
    state=1
  <on_activate=1,1>
    state=2
  <on_activate=2,1>
    state=3
  <on_activate=3,1>
    state=0
    text_id=arena_won_round
    activate=1,0,0
  ----------------------
  <on_activate=0,2>
    state=1
  <on_activate=1,2>
    state=2
  <on_activate=2,2>
    state=3
  <on_activate=3,2>
    state=4
  <on_activate=4,2>
    state=5
  <on_activate=5,2>
    state=6
  <on_activate=6,2>
    state=7
  <on_activate=7,2>
    state=8
  <on_activate=8,2>
    state=9
  <on_activate=9,2>
    state=10
  <on_activate=10,2>
    state=11
  <on_activate=11,2>
    state=0
    text_id=arena_won_round
    activate=2,0,0
  ----------------------
  <on_activate=0,3>
    state=1
  <on_activate=1,3>
    state=100
    global.28=0
    picture=data\scene\khumrac.jpg
    text_id=khumrac's_trick
    button_id=b_next
  <on_button=100,0>
    teleport=-1,0,5
    enemy.arena1=-2,2
    enemy.arena1=2,3
    enemy.arena2=-2,-1
    enemy.arena2=-2,1
    enemy.arena2=-1,0
    enemy.arena2=-1,0
    enemy.arena2=-1,2
    enemy.arena1=-3,7
    enemy.arena3=2,6


  #podraz khumraca
  <on_activate=100,1>
    change_global.28=1
  <on_activate=100,2>
    change_global.28=1
  <on_activate=100,3>
    change_global.28=1
    
  <on_global=100,28,6>
    set_global.28=1
    picture=data\scene\khumrac.jpg
    text_id=khum_win1
    button_id=b_khumrac1
    button_id=b_khumrac2
    state=6
  <on_button=6,0>
    picture=data\scene\khumrac.jpg
    text_id=khum_win2
    change_money=2000
    button_id=b_next
    state=7
  <on_button=6,1>
    picture=data\scene\khumrac.jpg
    text_id=khum_win3
    item.khumrac's_scroll=255,255
    button_id=b_next
    state=7
  <on_button=7,0>
    teleport.city=3,43,13

--------------------------------------------------------------------------------
[behavior=arena_help]
  <on_enter=0,1>
    cancel_picture=0
    text_id=arena_help1
    button_id=b_ok
  <on_button=0,0>
    state=255
