NPC Cousin "Cousin Tite" with description [; print "Cousin Tite has very bad allergies and is usually found sneezing."; print " He appears to be carrying "; if (child(self) == 0) print "nothing",(string) random(".^"," important.^"," interesting.^"); else { writelistfrom(child(self),ENGLISH_BIT+WORKFLAG_BIT+PARTINV_BIT+TERSE_BIT+CONCEAL_BIT,1); ".^"; } ], name "cousin" "tite", wantswill 1, AdjBefore [c Adj; switch(Adj) { ADJ_GEN: if (c==1) print "your "; c++; } return c; ], walks [; print (string) random(" makes his way"," saunters"," walks"," runs"); ], life [; Give: if (IsWill(noun) && self.wantswill < 3) { vox(self,"Alright! Watch out, Biff, here I come!"); move noun to self; if(actor ~= uncle) self.wantswill = 4; rtrue; } if (self.WantsIt(noun)) { voxto(self,actor,"Hey, thanks!"); move noun to self; rtrue; } voxto(self,actor,"No thanks."); rtrue; ], daemon [; if (chickencomp has general) switch(random(20)) { 1: vox(self,"I can't believe it."); 2: vox(self,"all that work..."); 3: vox(self,"This isn't happening."); 4: vox(self,"It all comes to this..."); 5: emit(self,"Cousin Tite mumbles something about a chicken."); 6: vox(self,"How could this be?"); } self.live(); ], NPC_hear [o s a b c t p; if (o ofclass phone && o.connection) p = (o.connection).caller; else p = o; switch(s) { cousin: switch(a) { ##NotUnderStood: self.huh(o); ##give: if (b in self) switch(c) { default: switch(b) { default: voxto(self,o,"No. Get your own.",-4,o); self.SetPro(o); } } else self.def_hear(o,s,a,b,c); default: self.def_hear(o,s,a,b,c); } default: ! s must be a string switch(a) { -3: if (b==self) switch(self.talktopic) { 'will': voxto(self,o,"Great!"); default: self.def_hear(o,s,a,b,c); } -4: if (b==self) switch(self.talktopic) { 'will': voxto(self,o,"Doh..."); default: self.def_hear(o,s,a,b,c); } -6: if (b==self) { self.SetPro(c); switch(c) { cousin: if (p==player) voxto(self,o,"I'm your cousin, silly!"); default: self.def_hear(o,s,a,b,c); } } -7: if (b==self) { self.SetPro(c); switch(c) { cousin: voxto(self,o,"I didn't do it!"); default: self.def_hear(o,s,a,b,c); } } -8: if (b==self) { self.SetPro(c); switch(c) { cousin: voxto(self,o,"I like writing interactive fiction."); playerobj: voxto(self,o,"I dunno. What do you want to do?"); default: self.def_hear(o,s,a,b,c); } } -9: if (b==self) { self.SetPro(c); switch(c) { chickencomp: if (c has general) voxto(self,o,"Please don't talk about that anymore."); else { voxto(self,o,"Oh, my chicken comp entry is amazing!"); emit(self,"Cousin tite grins broadly.^"); voxto(self,o,"I've got working virtual chicken physics, object-oriented feathers and everything! I can't wait to send it in!"); } default: self.def_hear(o,s,a,b,c); } } -11: if (b==self) { self.SetPro(c); switch(c) { cousin: voxto(self,o,"I'm trying to finish my chicken comp entry."); uncle,aunt,sister,cousin,playerobj: voxto(self,o,"We're having a family reunion or something."); default: self.def_hear(o,s,a,b,c); } } -12: if (b==self) voxto(self,o,"Hmf."); -13: if (b==self) { self.SetPro(c); switch(c) { cousin: voxto(self,o,"I'm a little anxious."); chickencomp: self.NPC_hear(o,s,-9,b,c); playerobj: if (p==player) voxto(self,o,"Uh, I guess you're doing alright."); default: self.def_hear(o,s,a,b,c); } } -14: if (b==self) voxto(self,o,"Ciao.",-14,o); -15: if (b==self) voxto(self,o,"Whats so funny?",-1,o); -16: if (b==self) switch(o) { default: voxto(self,o,"Doh.",-15,o); } -17: if (b==self) voxto(self,o,"What?",-1,o); -18: if (b==self) voxto(self,o,"Erm...",-17,o); -19: if (b==self) { self.SetPro(c); switch(c) { cousin: voxto(self,o,"Just a whim, I suppose."); default: self.def_hear(o,s,a,b,c); } } -20: if (b==self) voxto(self,o,"I'd like to help.",-1,o); -21: if (b==self) voxto(self,o,"Ask me how my chicken comp entry is going."); -22: if (b==self) voxto(self,o,"Funky monkey!"); -23: if (b==self) { self.SetPro(c); if (ObjectSees(b,c)) voxto(self,o,"Right here."); else switch(c) { default: self.def_hear(o,s,a,b,c); } } -24: if (b==self) { self.SetPro(c); if (c in b) switch(c) { default: self.def_hear(o,s,a,b,c); } else self.def_hear(o,s,a,b,c);; } -25: if (b==self) voxto(self,o,"Paul Tite."); ! user messages 1: if (b ~= self) rfalse; t = child(self); while (t ~= 0 && IsWill(t) == 0) t = sibling(t); if (t == 0) {voxto(self,o,"I don't have a will!",2,o); rtrue;} if (o == uncle) { voxto(self,o,"Doh. Fine."); self.Act(##give,t,o); if (t in o) self.wantswill = 5-self.wantswill; rtrue; } else voxto(self,o,"No way! It's mine, now!"); 3: voxto(self,o,"My quest is to finish my chicken comp entry."); 4: voxto(self,o,"Blue... No.. yellow."); 5: voxto(self,o,"Supercuts. Nice, eh?"); 10: emit(self,"Cousin Tite laughs.^"); 11: voxto(self,o,"Cheesecake and whip cream for everyone!"); 12: if (chickencomp has general) voxto(self,o,"Shut up, man."); else { voxto(self,o,"What?"); emit(self,"Cousin Tite checks his schedule book.^"); voxto(self,o,"Oh, crap!"); emit(self,"Cousin Tite lapses into a state of shock.^"); give chickencomp general; } 13: voxto(self,o,"I'm a Citizen, of course!"); default: self.def_hear(o,s,a,b,c); } } ], Brain [s; switch(s) { 1: !Get a copy of the will if (self.wantswill < 3) { if (SameScope(uncle,self)) { if (self.wantswill == 1) voxto(self,uncle,"Hey, uncle! Can I have a copy of the will?",1,uncle); self.talktopic = 'will'; rtrue; } else Treasurehunt(self); } } ], WantsIt [ o; if (IsTreasure(o)) rtrue; rfalse; ], has transparent proper static animate; Object chickencomp with name 'chicken' 'comp';