--- Tristan <[EMAIL PROTECTED]> wrote: > I want to make it so that when you fight someone/something it puts you > into a buffer(like when you customize spells and skills @ character > creation). You have a couple options, run, fight.whatever, I guess it's > very similar to the pokemon fight system. But I don't know how to make > it so it puts you into the buffer thingy where you only have a few > options.I hope I'm make sense and I hope someone can help me out with > this issue. Thanks for your time.
Basically you want to switch out the command interpreter. You could do this by adding a case to the nanny function (which is a giant ugly switch that is used to determine what command interpreter to use). Or you could alternately store a pointer to the command interpreter within the character_data or discriptor_data (whichever makes more sense for your design). Then you can do away with nanny all together. When you want to add a new one, just write the function and assign the function into the structs interpreter variable. I'd choose the latter, but it's up to you. ~Kender ===== -----BEGIN GEEK CODE BLOCK----- Version 3.1 GCS/L/C/O d-(+) s++: a-- C+++$>++++ UBLS++++$ P+++(--)$ L+++>++++ E--- W+>++$ N !o K? w(--) !O M- !V PS+ PE(++) Y+ PGP->+ t+ 5 X+() R(+) tv+@ b++(+++) !DI+++ D G(-) e>+++$ h---() r+++ y+++ ------END GEEK CODE BLOCK------ __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com

