#town map

111111111111111111111111
1xxxxxxxxxxx>xxxxxxxxxx1
d000NM00000000000000000a
d00NnmM0000000000T00000a
d00nyim000000000NtM0000a
d00yuui00000000NntmM000a
d00h%5k0000000NnntmmM00a
d0000000T00000nnntmmm00a
d000000NtM0000nnngmmm00a
d00000NntmM000nnyuimm00a
d00000nngmm000nyuuuim00a
d00000nyuim000yuuuuui00a
d00000yuuui000h$4j6^k00a
d00000hj7&k000000000000a
d0000000000000000000000a
dwwwwwwwwwwwwwwwwwwwwwws

:def
difficulty= 0

:p
#starting position scripting
pix=grass
walk=0
action=if var start_message 1 | end | pass
action=info You have been seeking adventure for many years. \
Recently, rumors have begun to circulate about huge monsters roaming \
about the town of Portiton.
action=info Packing your trusty knife and a drink, you set out on your \
journey, and quickly arrive in the town. There shouldn't be anything too \
tough here; nothing nastier than giant spiders has been seen in years.
action=item rusty knife
action=item light healing potion
action=set start_message 1

:0
pix=grass
walk=0
:1
pix=rock
walk=1
:x
pix=rock_s
walk=1
:d
pix=rock_e
walk=1
:w
pix=rock_n
walk=0
:s
pix=rock_w2
walk=1
:a
pix=rock_w
walk=1
:>
pix=mine
action=if var been_to_first_level 1 | pass | info You are attacked by a \
spider. This shouldn't be too hard.
action=if var been_to_first_level 1 | pass | attack spider
action=move level1.txt 8 6
action=hero hero_s
action=set been_to_first_level 1
walk=0
:4
pix=wall_door
walk=0
action=store 1
action=move town.txt 16 13
action=hero hero_s
:$
pix=sign_weapon
walk=1
:5
pix=wall_door
walk=0
action=store 2
action=move town.txt 5 7
action=hero hero_s
:%
pix=sign_general
walk=1
:6
pix=wall_door
walk=0
action=store 3
action=move town.txt 18 13
action=hero hero_s
:^
pix=sign_armor
walk=1
:7
pix=wall_door
walk=0
action=store 4
action=move town.txt 8 14
action=hero hero_s
:&
pix=sign_training
walk=1
:j
pix=wall_s
walk=1
:p
pix=wall_door
walk=0
:h
pix=wall_sw
walk=1
:k
pix=wall_se
walk=1
:y
pix=roof_sw
walk=1
:u
pix=wall
walk=1
:i
pix=roof_se
walk=1
:n
pix=roof_w
walk=1
:m
pix=roof_e
walk=1
:N
pix=roof_nw
walk=1
:M
pix=roof_ne
walk=1
:T
pix=roof_nmid
walk=1
:t
pix=roof_mid
walk=1
:g
pix=roof_smid
walk=1
