; Mady by Jaie for RoT
; kitty events used in QS0900.txt

	IF T2016 @endkittyscript
	IF T2015+V20 @judgement
	IF T2015-V20 @endkittyscript
	IF T2011+R5 @kitty
	IF I31+R20 @kitty	
	IF -I31+R10 @kitty
	GOTO @endkittyscript

@kitty
	ACTOR 3, "Kitty", kitty3, 4, 40, 90
	POSE 4, 2, 3
	GOTO @endkittyscript

@seenkitty1
	IF T2014 @seenkitty5
	IF T2013 @seenkitty4
	IF T2012 @seenkitty3
	IF T2011 @seenkitty2
	HOST_GIVE T2011
	GOTO @kittyisdone

@seenkitty2
	HOST_GIVE T2012
	GOTO @kittyisdone
	
@seenkitty3
	HOST_GIVE T2013
	GOTO @kittyisdone

@seenkitty4
	HOST_GIVE T2014
	GOTO @kittyisdone

@seenkitty5
	HOST_GIVE T2015
	GOTO @kittyisdone

@kittyisdone
	WAIT 10.0
	END

@eventActorClick3
	MENU "Pet Kitty=@pet", "Wrestle with Kitty=@rough", "Pull Kitty's Tail=@pull", "Call Dog=@dog"
	GOTO @eventActorClick3

@pet
	IF T2005 @peta
	HOST_GIVE T2005
	N: Kitty purrrrs happily in your lap, then scampers off.
	SEL 3
	POSE 1,3
	MOVE 3, -10, 90
	GOTO @seenkitty1

@peta
	N: Kitty purrrrs happily in your lap.
	END

@rough
	IF T2004 @rougha
	HOST_GIVE T2004
	N: You played too rough with Kitty and she leaves!
	SEL 3
	POSE 1,3
	MOVE 3, -10, 90
	GOTO @seenkitty1


@rougha
	N: You played too rough with Kitty!
	END

@pull
	IF T2002 @pulla
	HOST_GIVE T2002
	N: You pulled Kitty's tail and she runs off!
	SEL 3
	POSE 1,3
	MOVE 3, -10, 90
	GOTO @seenkitty1

@pulla
	N: You pulled Kitty's tail!
	END

@dog
	IF T2010 @doga
	HOST_GIVE T2010
	N: You called a large dog and scared Kitty off!
	SEL 3
	POSE 1,3
	MOVE 3, -10, 90
	GOTO @seenkitty1

@doga
	N: You called a large dog and scared Kitty!
	END

@eventActorGive3
	COMPARE #<item.id>, 36
	IF= @poison
	COMPARE #<item.id>, 31
	IF= @gavefish
	COMPARE #<item.id>, 112
	IF= @gavemilk
	COMPARE #<item.id>, 113
	IF= @gavecatnip
	COMPARE #<item.id>, 114
	IF= @gavetoy
	N: Nothing happens, try something else.
	END

@gavefish
	IF T2001 @gavefisha
	HOST_GIVE T2001
	N: You have given Kitty a nice fish! mmm yum!
	N: Kitty takes the fish back to her bed.
	SEL 3
	POSE 1,3
	MOVE 3, -10, 90
	GOTO @seenkitty1

@gavefisha
	N: You have given Kitty a nice fish! mmm yum!
	END

@gavemilk
	IF T2007 @gavemilka
	HOST_GIVE T2007
	N: You have given Kitty a bowl of warm milk! yummy!
	N: Kitty drinks the milk and runs off.
	SEL 3
	POSE 1,3
	MOVE 3, -10, 90
	GOTO @seenkitty1

@gavemilka
	N: You have given Kitty a bowl of warm milk! yummy!
	END

@gavecatnip
	IF T2003 @gavecatnipa
	HOST_GIVE T2003
	N: Kitty plays happily with the catnip till she's exhausted and then gets some rest.
	SEL 3
	POSE 1,3
	MOVE 3, -10, 90
	GOTO @seenkitty1
	
@gavecatnipa
	N: Kitty plays with the catnip till she's exhausted!
	END

@gavetoy
	IF T2009 @gavetoya
	HOST_GIVE T2009
	N: Kitty runs off to play with her new toy rat!
	SEL 3
	POSE 1,3
	MOVE 3, -10, 90
	GOTO @seenkitty1

@gavetoya
	N: Kitty plays with her new toy rat for hours and hours!
	END

@eventActorSpell3
	SET spellcookie, <#spell.id>
	COMPARE #<spell.id>, "71"
	IF= @poison
	COMPARE #<spell.id>, "84"
	IF= @charm
	COMPARE #<spell.id>, "75"
	IF= @dizzy
	COMPARE #<spell.id>, "76"
	IF= @confused
	COMPARE #<spell.element>, 0
	IF= @noeffect
	COMPARE #<spell.element>, 2
	IF= @noeffect

@eventActorAttack3
	IF T2008 @spells
	HOST_GIVE T2008
	N: Kitty hisses at you and runs off to lick her wounds..
	SOUND cathiss.wav
	MOVE 3 -10, 90
	GOTO @seenkitty1

@spells
	N: Kitty hisses at you!
	SOUND cathiss.wav
	END

@poison
	HOST_GIVE T2006
	N: You have poisoned Kitty and she runs off to get better..
	SEL 3
	POSE 1,3
	MOVE 3, -10, 90
	GOTO @seenkitty1

@charm
	N: Kitty feels warm and fuzzy!
	END

@dizzy
	N: Kitty chases after her own tail for hours and gets dizzy.
	END

@confused
	N: Kitty looks at you feeling very lost.
	END

@noeffect
	N: Nothing happens, try something else.
	END


@judgement
	SET rating2, "0"
	IF -T2001 @check2
	ADD rating2, 5
@check2
	IF -T2003 @check3
	ADD rating2, 5
@check3
	IF -T2005 @check4
	ADD rating2, 5
@check4
	IF -T2007 @check5
	ADD rating2, 5
@check5
	IF -T2009 @check6
	ADD rating2, 5
@check6
	IF -T2002 @check7
	ADD rating2, -5
@check7
	IF -T2004 @check8
	ADD rating2, -5
@check8
	IF -T2006 @check9
	ADD rating2, -5
@check9
	IF -T2008 @check10
	ADD rating2, -5
@check10
	IF -T2010 @judge
	ADD rating2, -5
@judge
	EJECT T172
	HOST_GIVE T2016
	COMPARE #<rating2>, 25
	IF= @lovecats
	COMPARE #<rating2>, 14
	IF> @likecats
	COMPARE #<rating2>, 4
	IF> @poscats
	COMPARE #<rating2>, "5"
	IF< @negcats
	COMPARE #<rating2>, "-14"
	IF< @dislikecats
	COMPARE #<rating2>, "-20"
	IF< @hatecats
	GOTO @endkittyscript

@lovecats
	GOTO SCENE 1404
@likecats
	GOTO SCENE 1405
@poscats
	GOTO SCENE 1406
@hatecats
	GOTO SCENE 1407
@dislikecats
	GOTO SCENE 1408
@negcats
	GOTO SCENE 1409

@endkittyscript

;
; say hello to the shrinking in your head
;