sound.choir = data\sound\choir.wav
sound.traitor = data\sound\npc\npc-podvratak.wav

--------------------------------------------------------------------------------
[behavior = cloister_door]
  <on_init = 0>
  	animate = 0, 0, 0, 1
  	block = 1
  <on_init = 1>
  	animate = 3, 3, 0, 1
  	block = 0
  <on_click = 0>
  	state = 1
	  animate = -1, 3, 0, 1
  	block = 0
  	play_sound.rail_open = 0
  	end_round=1
  <on_click = 1>
  	state = 0
  	animate = -1, 0, 0, 1
  	block = 1
  	play_sound.rail_open = 0
  	end_round=1
  	
[behavior=door_iron_key]
  <on_init = 0>
  	animate = 0, 0, 0, 1
  	block = 1
  <on_init = 2>
  	animate = 3, 3, 0, 1
  	block = 0
  <on_init = 1>
  	animate = 0, 0, 0, 1
  	block = 1
  <on_click = 0>
    check_item.iron_key=0
  <on_check=0,0,0>
    text_id=locked_door
  <on_check=0,0,1>
    text_id=action_used_key
    play_sound.unlock=0
    remove_party_item.iron_key=1
    state=1
    do_click=0
  <on_click=1>
  	state = 2
	  animate = -1, 3, 0, 1
  	block = 0
  	play_sound.rail_open = 0
  	end_round=1
  <on_click=2>
  	state = 1
  	animate = -1, 0, 0, 1
  	block = 1
  	play_sound.rail_open = 0
  	end_round=1

-------------------------------------------------------------------------------
[behavior = wall_sign]
  <on_click=0>
    text_id=unknown_grave
    
    
-------------------------------------------------------------------------------
[behavior=monktraitor]
  <on_click=0>
    play_sound.traitor =0
    text_id=cudg1_traitor1
    button_id=b_cudg1_traitor1
    activate=1,-3,-3
  <on_button=0,0>
    text_id=cudg1_traitor2
    button_id=b_go_on
    state=1
  <on_button=1,0>
    text_id=cudg1_traitor3
    button_id=b_ok
    state=2
  <on_button=2,0>
    text_id=cudg1_traitor4
    button_id=b_trade
    button_id=b_leave
    quest.viper_staff=1
    state=3
    
  <on_button=3,0>
    item_offer=1,12

  <on_click=3>
    play_sound.traitor =0
    check_item.viper_staff=0
  <on_check=3,0,0>
    text_id=cudg1_traitor5
    button_id=b_trade
    button_id=b_leave
  <on_check=3,0,1>
    text_id=cudg1_traitor6
    button_id=b_next
    quest.viper_staff=2
    exp=10000
    remove_party_item.viper_staff=1
    state=4
  <on_button=4,0>
    text_id=cudg1_traitor7
    button_id=b_next
    enemy_type.monk_peace=monktraitor_attack,0,0
    state=255
    
[behavior=warning]
  <on_enter=0,1>
    text_width=310
    text_id = cudg1_warning
    button_id=b_ok
    state=1
    
[behavior=monk_attack]
  <on_enter=0,1>
    text_id = cudg1_attack
    button_id = b_go_on
  <on_button=0,0>
    hit=100,0,100,100,10,10
    enemy.monk=-4,0
    enemy.monk=-4,0
    enemy.monk=4,0
    enemy.monk=4,0
    state=1
  <on_activate=0,1>
    state=1



--------------------------------------------------------------------------------
[behavior=torch_door]
  <on_init = 0>
  	animate = 0, 0, 0, 1
  	block = 1
  <on_init = 1>
  	animate = 3, 3, 0, 1
  	block = 0
  <on_click = 0>
    text_id = locked_door
  <on_activate=0,1>
  	state = 1
	  animate = -1, 3, 0, 1
	  play_sound.rail_open = 0
  	block = 0
  	end_round=1

[behavior=torch_lever]
  <on_click=0>
    activate=1,0,0
  	play_sound.switch =0


--------------------------------------------------------------------------------
[behavior=rituals]
  <on_enter=0,1>
    text_width=310
    text_id=cudg1_rituals
    play_sound.choir = 0
    button_id=b_ok
    state=1
    
    
-------------------------------------------------------------------------------
[behavior=ladder_up]
  <on_move=0,2>
    do_click=0
  <on_click=0>
    play_sound.ladder=0
    xteleport.graveyard_1,graveyard=0,15,8
    teleport.cloister_1=0,36,6

[behavior=ladder_down]
  <on_enter=0,1>
    do_click=0
  <on_click=0>
    play_sound.ladder =0
    teleport.cloister_udg2=3,19,22

[behavior=down]
  <on_move=0,2>
    do_click=0
  <on_click=0>
    play_sound.ladder=0
    teleport.cloister_udg2=-1,24,10

--------------------------------------------------------------------------------
[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
  	cube.g_cloister1=0,0,0
  	play_sound.move_stone =0
  	play_sound.switch =0
  <on_click = 1>
  	state = 0
  	animate = 0, 0, 0, 1
  	cube.w_gravewall1=0,0,0
  	play_sound.move_stone =0
  	play_sound.switch =0

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

[behavior=kill_fire]
  <on_init=0>
    animate=0,0,0,0
  <on_init=1>
    animate=1,1,0,0
  <on_enter=0,1>
    remove_enemy.fireball_thrower=0,0
    animate=1,1,0,0
    state=1
    play_sound.switch=0
  <on_release=1>
    animate=0,0,0,0
    state=0
    play_sound.switch=0

