Undercroft/undercroft_windows_i110/data/defs/level.city/city_behavior.txt

1516 lines
32 KiB
Plaintext

sound.beggar = data/sound/npc/npc-dedek.wav
sound.sewage = data/sound/npc/npc-igor.wav
sound.mother = data/sound/npc/npc-vydesena.wav
sound.man = data/sound/npc/npc-mladik.wav
sound.khumrac = data/sound/npc/npc-drsnak.wav
sound.merchant = data/sound/npc/nobleman.wav
sound.alch = data/sound/npc/npc-zabak.wav
sound.razzik = data/sound/enemy/lizard.wav
[behavior = stone_sign1]
<on_click=0>
text_id=city_arena
[behavior = stone_park]
<on_click=0>
text_id=city_park
[behavior = stone_temple]
<on_click=0>
text_id=city_temple
[behavior = stone_market]
<on_click=0>
text_id=city_market
--------------------------------------------------------------------------------
directions & transport
--------------------------------------------------------------------------------
[behavior = direction1]
<on_click=0>
text_id=city_dir1
item.ring_team1=-2,-2
state=1
<on_click=1>
text_id=city_dir1
[behavior = direction2]
<on_click=0>
text_id=city_dir2
[behavior = direction3]
<on_click=0>
text_id=city_dir3
[behavior = direction4]
<on_click=0>
text_id=city_dir4
[behavior = transport_sign1]
<on_click=0>
text_id=city_transport1
[behavior = transport_sign2]
<on_click=0>
text_id=city_transport2
[behavior = transport_sign3]
<on_click=0>
text_id=city_transport3
[behavior = transport_sign4]
<on_click=0>
text_id=city_transport4
--------------------------------------------------------------------------------
shops
--------------------------------------------------------------------------------
[behavior = sign_braggard]
<on_click=0>
text_id=city_sign_braggard
[behavior = sign_duncan]
<on_click=0>
text_id=city_sign_duncan
[behavior = sign_hermit]
<on_click=0>
text_id=city_sign_hermit
[behavior = sign_wow]
<on_click=0>
text_id=city_sign_wow
[behavior = sign_archery]
<on_click=0>
text_id=city_sign_archery
[behavior = sign_shadow]
<on_click=0>
text_id=city_sign_shadow
[behavior = sign_zefran]
<on_click=0>
text_id=city_sign_zefran
[behavior = sign_maddwarf]
<on_click=0>
text_id=city_sign_maddwarf
[behavior = sign_goose]
<on_click=0>
text_id=city_sign_goose
--------------------------------------------------------------------------------
[behavior = note_column]
<on_click = 0>
text_id = note_column1
quest.princess=1
state = 1
<on_click = 1>
text_id = note_column2
state = 2
<on_click = 2>
text_id = note_column3
quest.befert_hermit=1
set_global.26=1
state = 3
<on_click = 3>
text_id = note_column4
state = 0
--------------------------------------------------------------------------------
hatches
--------------------------------------------------------------------------------
[behavior = hatch1]
<on_click = 0>
check_item.manhole_key = 0
<on_check = 0,0,0>
text_id=city_manhole
<on_check = 0,0,1>
play_sound.ladder=0
teleport.SEWER_1 = 0,11,5
[behavior = hatch2]
<on_click = 0>
check_item.manhole_key = 0
<on_check = 0,0,0>
text_id=city_manhole
<on_check = 0,0,1>
play_sound.ladder=0
teleport.SEWER_1 = 0,9,14
[behavior = hatch3]
<on_click = 0>
check_item.manhole_key = 0
<on_check = 0,0,0>
text_id=city_manhole
<on_check = 0,0,1>
play_sound.ladder=0
teleport.SEWER_1 = 0,10,24
[behavior = hatch4]
<on_click = 0>
check_item.manhole_key = 0
<on_check = 0,0,0>
text_id=city_manhole
<on_check = 0,0,1>
play_sound.ladder=0
teleport.SEWER_1 = 0,26,28
[behavior = hatch5]
<on_click = 0>
check_item.manhole_key = 0
<on_check = 0,0,0>
text_id=city_manhole
<on_check = 0,0,1>
play_sound.ladder=0
teleport.SEWER_1 = 0,37,28
[behavior = hatch6]
<on_click = 0>
check_item.manhole_key = 0
<on_check = 0,0,0>
text_id=city_manhole
<on_check = 0,0,1>
play_sound.ladder=0
teleport.SEWER_1 = 0,30,9
[behavior = hatch7]
<on_click = 0>
check_item.manhole_key = 0
<on_check = 0,0,0>
text_id=city_manhole
<on_check = 0,0,1>
play_sound.ladder=0
teleport.SEWER_1 = 0,1,20
[behavior = hatch8]
<on_click = 0>
check_item.manhole_key = 0
<on_check = 0,0,0>
text_id=city_manhole
<on_check = 0,0,1>
play_sound.ladder=0
teleport.SEWER_1 = 0,20,17
---------------------------------------------------------------
[behavior = zoo_sign1]
<on_click=0>
text_id = city_zoo_sign1
[behavior = zoo_sign2]
<on_click=0>
text_id = city_zoo_sign2
[behavior = zoo_sign3]
<on_click=0>
text_id = city_zoo_sign3
[behavior = zoo_sign4]
<on_click=0>
text_id = city_zoo_sign4
[behavior = zoo_sign5]
<on_click=0>
text_id = city_zoo_sign5
--------------------------------------------------------------------------------
doors
--------------------------------------------------------------------------------
[behavior=door1]
<on_move=0,2>
do_click=0
<on_click=0>
play_sound.locked_door=0
text_id=locked_door
---------------------------------------------------------------
[behavior=door_hermit_robber]
<on_move=0,2>
play_sound.locked_door=0
text_id=locked_door
<on_click=0>
play_sound.locked_door=0
text_id=locked_door
<on_activate=0,1>
state=1
<on_move=1,2>
do_click=1
<on_click=1>
text_id=ct_door_hermit1
enemy.thug=-1,0
enemy.bully=-1,0
enemy.assassin=-2,0
enemy.bully=-2,0
state=2
<on_move=2,2>
do_click=1
<on_click=2>
play_sound.door = 0
teleport=-1,0,2
set_global.27=1
text_id=ct_door_hermit4
state=3
button_id=b_ok
<on_move=3,2>
do_click=1
<on_click=3>
play_sound.door = 0
teleport=-1,0,2
[behavior=hermit_beggar]
<on_move=0,2>
do_click=1
<on_move=1,2>
do_click=1
<on_click=0>
play_sound.beggar =0
text_id=dh_beggar_offer
button_id=b_beggar_no
button_id=b_beggar_yes
<on_button=0,1>
check_money=5,0
<on_check=0,0,0>
text_id=dh_beggar_no_money
<on_check=0,0,1>
text_id=ct_door_hermit2
activate=1,0,0
change_money=-5
state=1
<on_click=1>
play_sound.beggar =0
text_id=dh_beggar_paid
[behavior=door_hermit]
<on_move=0,2>
do_click=0
<on_click=0>
play_sound.door = 0
check_global.26=1,0
<on_check=0,0,-1>
item_offer=1,8
<on_check=0,0,0>
check_global.27=1,1
<on_check=0,1,-1>
item_offer=1,8
<on_check=0,1,0>
state=1
text_id=ct_door_hermit3
quest.befert_hermit=2
exp=10000
change_money=2000
button_id=b_trade
button_id=b_leave
<on_button=1,0>
item_offer=1,8
<on_move=1,2>
do_click=0
<on_click=1>
play_sound.door = 0
item_offer=1,8
---------------------------------------------------------------
[behavior=door_princess]
<on_move=0,2>
do_click=0
<on_click=0>
check_item.princess=0
<on_check=0,0,0>
play_sound.locked_door=0
text_id=locked_door
<on_check=0,0,1>
play_sound.door = 0
text_id=ct_princess
quest.princess=2
exp=10000
change_money=1500
change_hp=0,100,2
change_stamina=0,100,2
remove_party_item.princess=1
---------------------------------------------------------------
[behavior=door_goose]
<on_move=0,2>
do_click=0
<on_click=0>
play_sound.door = 0
picture=data\scene\intro3.jpg
text_id=ct_goose1
button_id=b_rest_500
button_id=b_trade
button_id=b_goose
<on_button=0,0>
check_money=500,0
<on_check=0,0,0>
text_id = not_enough_money
<on_check=0,0,1>
change_money=-500
change_hp = 0, 100, 2
change_stamina = 0, 100, 2
text_id=dh_inn_rest
play_sound.YAWN = 0
<on_button=0,1>
item_offer=1,5
<on_button=0,2>
state=1
picture=data\scene\intro4.jpg
text_id=ct_goose2
button_id=b_next
<on_button=1,0>
state=2
picture=data\scene\intro4.jpg
text_id=ct_goose2b
button_id=b_next
<on_button=2,0>
quest.bet=2
exp=25000
quest.smugglers=1
set_global.20=1
picture=data\scene\intro4.jpg
text_id=ct_goose3
state = 3
<on_move=3,2>
do_click=0
<on_click=3>
play_sound.door = 0
picture=data\scene\intro3.jpg
text_id=ct_goose4
button_id=b_rest_500
button_id=b_trade
button_id=b_leave
<on_button=3,0>
check_money=500,0
<on_check=3,0,0>
text_id = not_enough_money
<on_check=3,0,1>
change_money=-500
change_hp = 0, 100, 2
change_stamina = 0, 100, 2
text_id=dh_inn_rest
<on_button=3,1>
item_offer=1,5
---------------------------------------------------------------
[behavior=door_maddwarf]
<on_activate=-1,111>
#smrt rimbrocka odstrani block
remove_object.block_all=0,-1
<on_move=0,2>
do_click=0
<on_click=0>
play_sound.door = 0
check_global.25=1,0
<on_check=0,0,-1>
picture=data\scene\intro3.jpg
text_id=ct_maddwarf1
button_id=b_rest_500
button_id=b_trade
button_id=b_leave
<on_check=0,0,0>
picture=data\scene\intro3.jpg
text_id=ct_maddwarf1
button_id=b_rest_500
button_id=b_trade
button_id=b_leave
button_id=b_rimbrock
<on_button=0,0>
check_money=500,0
<on_check=0,0,0>
text_id = not_enough_money
<on_check=0,0,1>
change_money=-500
change_hp = 0, 100, 2
change_stamina = 0, 100, 2
text_id=dh_inn_rest
play_sound.YAWN = 0
<on_button=0,1>
item_offer=1,9
<on_button=0,3>
state=1
picture=data\scene\intro3.jpg
text_id=ct_maddwarf2
button_id=b_next
<on_button=1,0>
teleport=2,0,0
object.block_all=0,0,-1
enemy_forced.rimbrock=0,1
state=2
<on_move=2,2>
do_click=0
<on_click=2>
play_sound.door = 0
picture=data\scene\intro3.jpg
text_id=ct_maddwarf1
button_id=b_rest_500
button_id=b_trade
button_id=b_leave
<on_button=2,0>
check_money=500,0
<on_check=2,0,0>
text_id = not_enough_money
<on_check=2,0,1>
change_money=-500
change_hp = 0, 100, 2
change_stamina = 0, 100, 2
text_id=dh_inn_rest
play_sound.YAWN = 0
<on_button=2,1>
item_offer=1,9
---------------------------------------------------------------
[behavior=door_smugglers]
<on_move=0,2>
do_click=0
<on_click=0>
check_global.20=1,0
<on_check=0,0,0>
text_id=ct_smugglers1
button_id=b_smugglers
state=1
<on_check=0,0,-1>
text_id=ct_smugglers1
button_id=b_leave
<on_button=1,0>
play_sound.door = 0
picture=data\scene\intro3.jpg
state=2
text_id=ct_smugglers2
button_id=b_next
<on_button=2,0>
state=3
picture=data\scene\smuggler.jpg
text_id=ct_smugglers3
button_id=b_yes
button_id=b_no
<on_button=3,1>
state=0
//-------------------------------
// zadani 1. ukolu (ransom)
//-------------------------------
<on_button=3,0>
state=4
picture=data\scene\smuggler.jpg
text_id=ct_smugglers_task1
object.ransom_sign=0,23,2
object.ransom_sign=0,47,7
object.ransom_sign=0,49,11
object.ransom_sign=0,17,25
object.ransom_sign=0,47,33
teleport=1,22,2
teleport=1,46,7
teleport=2,49,10
teleport=3,18,25
teleport=2,47,32
teleport=1,28,9
item.ring_team2=255,255
set_global.20=2
quest.ransom=1
//-------------------------------
//provereni 1. ukolu
//-------------------------------
<on_move=4,2>
do_click=0
<on_click=4>
play_sound.door = 0
check_item.ransom=0,5
<on_check=4,0,0>
text_id=ct_smugglers_task1_no
//-------------------------------
// zadani 2. ukolu (tournament)
//-------------------------------
<on_check=4,0,1>
remove_party_item.ransom=99
picture=data\scene\smuggler.jpg
text_id=ct_smugglers_task2a
button_id=b_next
<on_button=4,0>
state=5
picture=data\scene\smuggler.jpg
text_id=ct_smugglers_task2b
quest.ransom=2
exp=10000
quest.tournament=1
set_global.20=3
//-------------------------------
//provereni 2. ukolu
//-------------------------------
<on_move=5,2>
do_click=0
<on_click=5>
play_sound.door = 0
check_item.ring_team1=0
<on_check=5,0,0>
text_id=ct_smugglers_task2_no
<on_check=5,0,1>
check_item.ring_team2=1
<on_check=5,1,0>
text_id=ct_smugglers_task2_no
<on_check=5,1,1>
check_item.ring_team3=2
<on_check=5,2,0>
text_id=ct_smugglers_task2_no
//-------------------------------
// zadani 3. ukolu (competition)
//-------------------------------
<on_check=5,2,1>
picture=data\scene\smuggler.jpg
remove_party_item.ring_team1=1
remove_party_item.ring_team2=1
remove_party_item.ring_team3=1
set_global.20=4
quest.tournament=2
exp=10000
quest.competition=1
text_id=ct_smugglers_task3
state=6
//-------------------------------
//provereni 3. ukolu
//-------------------------------
<on_move=6,2>
do_click=0
<on_click=6>
play_sound.door = 0
check_global.22=1,0
<on_check=6,0,-1>
text_id=ct_smugglers_task3_no
//-------------------------------
// zadani 4. ukolu (hoh)
//-------------------------------
<on_check=6,0,0>
picture=data\scene\smuggler.jpg
text_id=ct_smugglers_task4
quest.competition=2
exp=10000
quest.new_warehouse=1
remove_object.door1=23,31
object.door_hoh=2,23,31
teleport=1,23,31
teleport=1,28,9
set_global.20=5
state=7
//-------------------------------
//provereni 4. ukolu
//-------------------------------
<on_move=7,2>
do_click=0
<on_click=7>
play_sound.door = 0
check_global.23=1,0
<on_check=7,0,-1>
text_id=ct_smugglers_task4_no
<on_check=7,0,0>
picture=data\scene\smuggler.jpg
text_id = city_end1
quest.new_warehouse=2
exp=10000
state=8
button_id=b_next
<on_button=8,0>
picture=data/enemy/empty.gif
text_id = city_end2
state=9
button_id=b_next
<on_button=9,0>
picture=data/enemy/empty.gif
text_id = city_end3
state=10
button_id=b_next
<on_button=10,0>
picture=data/enemy/empty.gif
text_id = city_end4
state=11
button_id=b_next
<on_button=11,0>
picture=data/enemy/empty.gif
text_id = city_end5
state=12
button_id=b_next
<on_button=12,0>
picture=data/enemy/empty.gif
text_id = city_end6
state=13
button_id=b_next
<on_button=13,0>
picture=data/scene/ship.jpg
text_id = city_end7
state=14
button_id=to_be_continued
<on_button=14,0>
game_over=1
---------------------------------------------------------------
[behavior=door_ransom]
<on_move=0,2>
do_click=0
<on_click=0>
check_global.20=2,0
<on_check=0,0,-1>
play_sound.locked_door=0
text_id=locked_door
<on_check=0,0,0>
play_sound.door = 0
picture=data\scene\door.jpg
text_id=door_ransom1
item.ransom=255,255
state=1
<on_move=1,2>
do_click=0
<on_click=1>
play_sound.locked_door=0
text_id=locked_door
[behavior=door_ransom_zoo]
<on_move=0,2>
do_click=0
<on_click=0>
check_global.20=2,0
<on_check=0,0,-1>
play_sound.locked_door=0
text_id=locked_door
<on_check=0,0,0>
play_sound.door = 0
picture=data\scene\door.jpg
text_id=door_ransom1
item.ransom=255,255
state=1
button_id=b_next
<on_button=1,0>
picture=data\scene\door.jpg
text_id=door_ransom2
play_sound.rail_open=0
remove_object.fence=0,0
remove_object.fence=-2,0
remove_object.fence=-5,-1
remove_object.fence=-5,1
remove_object.fence=-6,4
<on_move=1,2>
do_click=0
<on_click=1>
play_sound.locked_door=0
text_id=locked_door
[behavior=door_warehouse]
<on_move=0,2>
do_click=0
<on_click=0>
check_global.20=2,0
<on_check=0,0,-1>
play_sound.locked_door=0
text_id=locked_door
<on_check=0,0,0>
play_sound.door = 0
picture=data\scene\door.jpg
text_id=door_warehouse1
state=1
button_id=b_next
<on_button=1,0>
state=2
teleport.warehouse=-1,1,1
<on_move=2,2>
do_click=0
<on_click=2>
play_sound.door = 0
teleport.warehouse=-1,1,1
[behavior=door_hoh]
<on_move=0,2>
do_click=0
<on_click=0>
check_global.20=5,0
<on_check=0,0,-1>
play_sound.locked_door=0
text_id=locked_door
<on_check=0,0,0>
play_sound.door = 0
picture=data\scene\door_hoh.jpg
text_id=door_hoh
state=1
button_id=b_next
<on_button=1,0>
state=2
teleport.hoh=-1,3,1
<on_move=2,2>
do_click=0
<on_click=2>
play_sound.door = 0
teleport.hoh=-1,3,1
[behavior=win_gang]
<on_click=0>
check_global.20=3,0
<on_check=0,0,1>
play_sound.door = 0
teleport.gang_house=-1,1,3
[behavior=door_teleport]
<on_move=0,2>
do_click=0
<on_click=0>
play_sound.door = 0
teleport=-1,0,0
[behavior=door_cottage]
<on_move=0,2>
do_click=0
<on_click=0>
check_item.cottage_key=0
<on_check=0,0,0>
play_sound.locked_door=0
text_id=locked_door
<on_check=0,0,1>
text_id=action_used_key
play_sound.unlock=0
remove_party_item.cottage_key=1
state=1
play_sound.door = 0
teleport=-1,0,0
<on_move=1,2>
do_click=0
<on_click=1>
play_sound.door = 0
teleport=-1,0,0
[behavior=door_alch]
<on_move=0,2>
do_click=0
<on_click=0>
check_item.alchemist's_key=0
<on_check=0,0,0>
play_sound.locked_door=0
text_id=locked_door
<on_check=0,0,1>
remove_party_item.alchemist's_key=1
play_sound.unlock=0
text_id=action_used_key
state=1
<on_move=1,2>
do_click=0
<on_click=1>
play_sound.door = 0
teleport=-1,0,0
--------------------------------------------------------------------------------
[behavior=gate_locked]
<on_init=0>
animate=0,0,0,1
<on_click=0>
play_sound.locked_door=0
text_id=dh_locked_gate
--------------------------------------------------------------------------------
lidi
--------------------------------------------------------------------------------
[behavior=sewage_dummy]
<on_click=0>
play_sound.sewage =0
text_id=ct_sewage1
button_id=b_yes
button_id=b_no
<on_button=0,0>
text_id=ct_sewage2
item.manhole_key=255,255
quest.rats_in_sewers=1
state=1
<on_click=1>
play_sound.sewage =0
check_item.ghoul's_eye=1,10
<on_check=1,1,-1>
text_id=ct_sewage3
<on_check=1,1,0>
text_id=ct_sewage3
<on_check=1,1,1>
state=2
text_id=ct_sewage4
quest.rats_in_sewers=2
exp=10000
remove_party_item.ghoul's_eye=10
item.full_helm=255,255
<on_click=2>
play_sound.sewage =0
text_id=ag_miner4
[behavior=save_boy]
<on_enter=0,1>
text_id=ct_saved_boy1
button_id=b_ok
state=1
activate=1,0,0
[behavior=sad_mother]
<on_click=0>
play_sound.mother =0
text_id=ct_saved_boy2
button_id=b_yes
button_id=b_no
<on_button=0,0>
text_id=ct_saved_boy4
quest.missing_boy=1
state=1
<on_click=1>
play_sound.mother =0
text_id=ct_saved_boy3
<on_activate=1,1>
state=2
<on_click=2>
play_sound.mother =0
text_id=ct_saved_boy5
quest.missing_boy=2
exp=10000
button_id=b_ok
<on_button=2,0>
state=3
<on_click=3>
text_id=dh_niece3
[behavior=apple_merchant]
<on_click=0>
play_sound.man =0
text_id=ct_apple1
button_id=b_apple1
<on_button=0,0>
text_id=ct_apple2
button_id=b_apple2
state=1
<on_button=1,0>
text_id=ct_apple3
quest.adventurer=1
set_global.25=1
button_id=b_trade
button_id=b_leave
state=2
<on_button=2,0>
item_offer=1,12
<on_click=2>
play_sound.man =0
check_item.rimbrock's_axe=0
<on_check=2,0,0>
text_id=ct_apple1
button_id=b_trade
button_id=b_leave
<on_check=2,0,1>
text_id=ct_apple1
button_id=b_trade
button_id=b_leave
button_id=b_apple3
<on_button=2,2>
text_id=ct_apple4
remove_enemy.townsman=0,0
remove_object.handcart=0,0
remove_party_item.rimbrock's_axe=1
quest.adventurer=2
exp=10000
state=255
--------------------------------------------------------------------------------
[behavior=merchant]
<on_click=0>
play_sound.merchant =0
check_item.merchant's_letter=0
<on_check=0,0,0>
text_id=city_merchant1
<on_check=0,0,1>
text_id=city_merchant1
button_id=b_city_merchant
<on_button=0,0>
text_id=city_merchant2
quest.messenger=2
remove_party_item.merchant's_letter=1
exp=10000
change_money=1000
--------------------------------------------------------------------------------
[behavior=alchemist]
<on_click=0>
play_sound.alch =0
text_id=ct_alch1
button_id=b_trade
button_id=b_leave
button_id=b_alch1
<on_button=0,0>
item_offer=1,12
<on_button=0,2>
text_id=ct_alch2
state=1
button_id=b_yes
button_id=b_no
<on_button=1,0>
state=2
text_id=ct_alch3
item.alchemist's_key=255,255
quest.alchemist=1
<on_button=1,1>
state=0
<on_click=2>
play_sound.alch =0
check_global.24=1,0
<on_check=2,0,-1>
text_id=ct_alch_unfinished
button_id=b_trade
button_id=b_leave
<on_check=2,0,0>
text_id=ct_alch_finished
quest.alchemist=2
exp=10000
change_money=1000
set_global.24=2
state=3
button_id=b_ok
<on_button=2,0>
item_offer=1,12
<on_button=3,0>
remove_enemy.alchemist=0,0
state=255
[behavior=door_duncan]
<on_move=0,2>
do_click=0
<on_click=0>
play_sound.door = 0
text_id=ct_duncan1
button_id=b_trade
button_id=b_leave
button_id=b_duncan1
<on_button=0,0>
item_offer=1,3
<on_button=0,2>
state=1
text_id=ct_duncan2
quest.paying_debts=1
button_id=b_trade
button_id=b_leave
<on_move=1,2>
do_click=0
<on_click=1>
play_sound.door = 0
check_item.rimbrock's_axe=0
<on_check=1,0,0>
item_offer=1,3
<on_check=1,0,1>
text_id=ct_duncan3
button_id=b_trade
button_id=b_leave
button_id=b_duncan2
<on_button=1,0>
item_offer=1,3
<on_button=1,2>
text_id=ct_duncan4
quest.paying_debts=2
exp=10000
state=2
<on_move=2,2>
do_click=0
<on_click=2>
play_sound.door = 0
text_id=ct_duncan3
button_id=b_trade
button_id=b_leave
<on_button=2,0>
item_offer=1,3
[behavior=khumrac]
<on_click=0>
play_sound.khumrac = 0
picture=data\scene\khumrac.jpg
text_id=khumrac1
<on_activate=0,1>
state=1
<on_click=1>
play_sound.khumrac = 0
picture=data\scene\khumrac.jpg
text_id=khumrac2
button_id=b_yes
button_id=b_no
<on_button=1,0>
picture=data\scene\khumrac.jpg
text_id=khumrac3
button_id=b_enter_arena
button_id=b_leave
state=2
<on_button=2,0>
state=3
teleport.arena=-1,5,6
<on_click=2>
play_sound.khumrac = 0
picture=data\scene\khumrac.jpg
text_id=khumrac4
button_id=b_enter_arena
button_id=b_leave
<on_click=3>
play_sound.khumrac = 0
check_global.28=1,0
<on_check=3,0,0>
picture=data\scene\khumrac.jpg
text_id=khumrac5
[behavior=razzik]
<on_click=0>
play_sound.razzik =0
picture=data\scene\lizard.jpg
text_id=razzik1
button_id=b_leave
button_id=b_razzik1
<on_button=0,1>
picture=data\scene\lizard.jpg
text_id=razzik2
button_id=b_razzik_match
state=1
<on_button=1,0>
picture=data\scene\lizard.jpg
text_id=razzik3
quest.retired_gladiator=1
activate=1,0,0
button_id=b_next
state=2
<on_button=2,0>
picture=data\scene\lizard.jpg
text_id=razzik4
button_id=b_yes
button_id=b_no
state=3
<on_button=3,0>
picture=data\scene\lizard.jpg
text_id=razzik_training
exp=5000
hit = 100,0,40,80,0,0
play_sound.hit_physical=0
state=4
<on_click=3>
play_sound.razzik =0
check_global.28=1,0
<on_check=3,0,-1>
picture=data\scene\lizard.jpg
text_id=razzik4
button_id=b_yes
button_id=b_no
<on_check=3,0,0>
state=4
do_click=0
<on_click=4>
play_sound.razzik =0
check_global.28=1,0
<on_check=4,0,-1>
picture=data\scene\lizard.jpg
text_id=razzik5
<on_check=4,0,0>
quest.retired_gladiator=2
exp=10000
check_item.khumrac's_scroll=1
<on_check=4,1,0>
picture=data\scene\lizard.jpg
text_id=razzik6
change_money=1000
state=10
<on_check=4,1,1>
picture=data\scene\lizard.jpg
text_id=razzik6
change_money=1000
button_id=b_razzik_scroll
<on_button=4,0>
picture=data\scene\lizard.jpg
text_id=razzik7
exp=10000
remove_party_item.khumrac's_scroll=1
item.razzik's_glaive=255,255
state=10
<on_click=10>
play_sound.razzik =0
picture=data\scene\lizard.jpg
text_id=razzik8
--------------------------------------------------------------------------------
alchemist's house
--------------------------------------------------------------------------------
[behavior = ladder_down]
<on_enter=0,1>
do_click=0
<on_click=0>
play_sound.ladder =0
teleport=-1,0,0
[behavior = ladder]
<on_move=0,2>
do_click=0
<on_click=0>
play_sound.ladder =0
teleport=-1,0,0
--------------------------------------------------------------------------------
[behavior=create_alch]
<on_enter=0,1>
check_global.24=2,0
<on_check=0,0,0>
enemy_forced.alchemist=0,0
object.alchemist_inside=0,0,0
state=255
[behavior=alchemist_inside]
<on_click=0>
play_sound.alch =0
check_global.29=1,0
<on_check=0,0,-1>
picture=data/scene/alchemist1.jpg
text_id=ct_alch4
button_id=b_trade
button_id=b_leave
<on_button=0,0>
item_offer=1,12
<on_check=0,0,0>
picture=data/scene/alchemist1.jpg
text_id=ct_alch4
button_layout=1
button_id=b_alch_mirror
button_id=b_trade
button_id=b_leave
state=1
<on_button=1,1>
item_offer=1,12
state=0
<on_button=1,2>
state=0
<on_button=1,0>
picture=data/scene/alchemist1.jpg
text_id=ct_alch5
button_id=b_next
quest.magic_mirror=2
exp=10000
quest.seeker=1
state=2
<on_button=2,0>
picture=data/scene/alchemist1.jpg
text_id=ct_alch6
button_id=b_next
state=3
<on_button=3,0>
picture=data/scene/alchemist1.jpg
text_id=ct_alch7
button_layout=1
button_id=b_alch_root
button_id=b_alch_cat
state=4
<on_button=4,0>
picture=data/scene/alchemist1.jpg
text_id=ct_alch_root
button_id=b_alch_cat
state=5
<on_button=4,1>
picture=data/scene/alchemist1.jpg
text_id=ct_alch_cat
button_id=b_alch_root
state=6
<on_button=5,0>
picture=data/scene/alchemist1.jpg
text_id=ct_alch_cat
state=10
<on_button=6,0>
picture=data/scene/alchemist1.jpg
text_id=ct_alch_root
state=10
<on_click=10>
play_sound.alch =0
check_item.black_cat=0
<on_check=10,0,0>
picture=data/scene/alchemist1.jpg
text_id=ct_alch_ingerdients
button_id=b_trade
button_id=b_leave
<on_check=10,0,1>
check_item.maneat_root=1
<on_check=10,1,0>
picture=data/scene/alchemist1.jpg
text_id=ct_alch_ingerdients
button_id=b_trade
button_id=b_leave
<on_button=10,0>
item_offer=1,12
<on_check=10,1,1>
picture=data/scene/alchemist1.jpg
text_id=ct_alch_enchant1
button_id=b_next
state=11
<on_button=11,0>
picture=data/scene/alchemist1.jpg
text_id=ct_alch_enchant2
button_id=b_next
item.enchanted_cat=255,255
remove_party_item.maneat_root=1
remove_party_item.black_cat=1
state=100
<on_button=100,0>
quest.seeker=2
exp=10000
state=12
## cat end ##
<on_click=12>
play_sound.alch =0
check_item.scheme=0
<on_check=12,0,0>
picture=data/scene/alchemist1.jpg
text_id=ct_alch4
button_id=b_trade
button_id=b_leave
<on_button=12,0>
item_offer=1,12
<on_check=12,0,1>
picture=data/scene/alchemist1.jpg
text_id=ct_alch4
button_id=b_alch_scheme
button_id=b_trade
button_id=b_leave
state=13
<on_button=13,1>
item_offer=1,12
state=12
<on_button=13,2>
state=12
## scheme ##
<on_button=13,0>
picture=data/scene/alchemist1.jpg
text_id=ct_alch_scheme1
button_id=b_next
quest.magic_circle=2
exp=10000
quest.blood_link=1
state=14
<on_button=14,0>
picture=data/scene/alchemist1.jpg
text_id=ct_alch_scheme2
button_id=b_next
state=15
<on_button=15,0>
check_item.duke's_ring=0
<on_check=15,0,0>
picture=data/scene/alchemist1.jpg
text_id=ct_alch_scheme3
button_id=b_no
<on_check=15,0,1>
picture=data/scene/alchemist1.jpg
text_id=ct_alch_scheme3
button_id=b_alch_ring
state=17
## ring ##
<on_click=15>
play_sound.alch =0
check_item.duke's_ring=1
<on_check=15,1,0>
picture=data/scene/alchemist1.jpg
text_id=ct_alch_scheme4
button_id=b_trade
button_id=b_leave
state=16
<on_check=15,1,1>
picture=data/scene/alchemist1.jpg
text_id=ct_alch_scheme4
button_id=b_alch_ring
button_id=b_trade
button_id=b_leave
state=17
<on_button=16,0>
item_offer=1,12
state=15
<on_button=16,1>
state=15
<on_button=17,0>
picture=data/scene/alchemist1.jpg
text_id=ct_alch_scheme5
remove_party_item.duke's_ring=1
remove_party_item.scheme=1
item.charmed_duke's_ring=255,255
state=18
<on_button=17,1>
item_offer=1,12
state=15
<on_button=17,2>
state=15
## ring end ##
<on_click=18>
play_sound.alch =0
picture=data/scene/alchemist1.jpg
text_id=ct_alch_howdy
button_id=b_trade
button_id=b_leave
<on_button=18,0>
item_offer=1,12
--------------------------------------------------------------------------------
[behavior=box]
<on_click=0>
text_id=city_box
[behavior=plate]
<on_init=0>
animate=0,0,0,1
[behavior = teleport]
<on_enter=0,1>
text_width=300
text_id=city_trans1
#button_layout=0
button_id=b_trans1
button_id=b_trans2
button_id=b_trans3
button_id=b_trans4
button_id=b_tstone5
<on_button=0,0>
text_id=nothing_happened
<on_button=0,1>
play_sound.teleport=0
flash_view=50,100,220,150
teleport=-1,23,26
<on_button=0,2>
play_sound.teleport=0
flash_view=50,100,220,150
teleport=-1,42,7
<on_button=0,3>
play_sound.teleport=0
flash_view=50,100,220,150
teleport=-1,45,32
<on_activate=0,1>
state=1
<on_enter=1,1>
text_width=300
text_id=city_trans1
button_id=b_trans1
button_id=b_trans2
button_id=b_trans3
button_id=b_trans4
button_id=b_tstone5
<on_button=1,0>
play_sound.teleport=0
flash_view=50,100,220,150
teleport=-1,6,11
<on_button=1,1>
play_sound.teleport=0
flash_view=50,100,220,150
teleport=-1,23,26
<on_button=1,2>
play_sound.teleport=0
flash_view=50,100,220,150
teleport=-1,42,7
<on_button=1,3>
play_sound.teleport=0
flash_view=50,100,220,150
teleport=-1,45,32
--------------------------------------------------------------------------------
[behavior = timber]
<on_click=0>
text_id = remove_timber
activate = 1,6,10
activate = 1,41,7
activate = 1,45,33
activate = 1,23,25
remove_object.timber = 6,10
play_sound.MOVE_STONE = 0
--------------------------------------------------------------------------------
[behavior=wanted]
<on_click=0>
play_sound.map = 0
text_id=city_wanted
[behavior=city_exit]
<on_move=0,0>
teleport=-1,0,0
text_id=city_gate
button_id=b_ok
[behavior=secret_button]
<on_click=0>
play_sound.move_stone=0
cube.g_pavement1=0,0,0
state=255
[behavior=door_gang]
<on_click=0>
play_sound.locked_door=0
check_global.20=4,0
<on_check = 0,0,0>
text_id=gang_locked_door2
<on_check = 0,0,1>
text_id=gang_locked_door2
<on_check = 0,0,-1>
text_id=locked_door
[behavior = archery_offer]
<on_move=0,2>
do_click=0
<on_click = 0>
play_sound.door = 0
item_offer = 1,6
[behavior = shadow_offer]
<on_move=0,2>
do_click=0
<on_click = 0>
play_sound.door = 0
item_offer = 1,7
[behavior = temple_offer]
<on_move=0,0>
do_click=0
<on_click = 0>
play_sound.door = 0
text_id=ct_temple
button_id=b_trade
button_id=b_leave
button_id=b_rest_500
<on_button=0,2>
check_money=500,0
<on_check=0,0,0>
text_id = not_enough_money
<on_check=0,0,1>
change_money=-500
change_hp = 0, 100, 2
change_stamina = 0, 100, 2
text_id=dh_inn_rest
play_sound.YAWN = 0
<on_button=0,0>
item_offer = 1,11