[ITEMDEF i_pile_snow]
ID=0913
Name=pile of snow
TYPE=t_crystal_ball
ON=@Create
Color=0481
Attr=attr_newbie|attr_move_always
TIMER=20
ON=@DCLICK
IF (<TIMER> >= 1)
SRC.SYSMESSAGE The snow is not ready to be packed yet.
SRC.SYSMESSAGE Keep trying.
Return 1
ELSE
TARGET You carefully pack the snow into a ball...
ON=@TARGON_CHAR
IF (<SRC.TARG.SERIAL> != <SRC.SERIAL>)
IF (<SRC.TARG.RESTEST 1 i_pile_snow> )
SRC.ANIM 11
SRC.TARG.EFFECT=0,0f27,7
SRC.TARG.ANIM 20
src.targ.newitem=i_snow_debris
SRC.TARG.ACT.P=<src.targ.p>
SOUND 0145
SRC.SYSMESSAGE You hit <SRC.TARG.NAME> with a snowball!
SRC.TARG.SYSMESSAGE <src.name> threw a snowball at you!
TIMER=(10)
RETURN 1
ELSE
SRC.SYSMESSAGE You can only throw a snowball at something that can throw one back.
TIMER=(10)
RETURN 1
ENDIF
ELSE
SRC.SYSMESSAGE You cannot throw a snowball at yourself!
TIMER=(10)
RETURN 1
ENDIF
ON=@TARGON_ITEM
SRC.SYSMESSAGE That isn't a person!!
TIMER=(10)
RETURN 1
ON=@TARGON_GROUND
RETURN 1
ON=@TIMER
TIMER=0
RETURN 1
CATEGORY=Provisions - Gifts
SUBSECTION=Snowball
Description=Pile of Snow
[ITEMDEF i_snow_debris]
Name=snow debris
ID=03728
ON=@CREATE
ATTR=attr_decay
Color=0482
Timer=1