[global]
descname=Stonecutter
help=Cuts stones! YEAR!
type=generic
menu_pic=stonecutter_menu.png
program=cut

# Here come the animations
# For the walk animation, [walk] is a default for all walk animations.
# You can, however, create [walk_nw] etc.. sections for sub-animations in a
# given direction

[cut]
0=findobject attrib:stone radius:8	# find an object matching the given criteria
1=walk object							# walk to the object in the object slot
2=animation hacking 10000			# play an animation 
3=object shrink						# cause the object to change its program (to 'shrink')
4=createitem stone					# create & carry the given item
5=return									# return home

# The normal idle animation (non-directional)
[idle]
pics=idle_??.png
clrkey_r=0
clrkey_g=0
clrkey_b=255
hot_spot_x=5
hot_spot_y=13

[hacking]
pics=hacking_??.png
clrkey_r=0
clrkey_g=0
clrkey_b=255
hot_spot_x=5
hot_spot_y=13

# Walking empty-handed
[walk]
dirpics=walk_!!_??.png
clrkey_r=0
clrkey_g=0
clrkey_b=255
hot_spot_x=5
hot_spot_y=13

# Walking with a ware
[walkload]
dirpics=walkload_!!_??.png
clrkey_r=0
clrkey_g=0
clrkey_b=255
hot_spot_x=5
hot_spot_y=13
