>Subject: Re: Cases in Spec_procedures (partly answered my own question) >After staring long enough, I kinda figured it out... the letters and numbers >used in the case statements are found first in the static character strings: >like static char bedroom_path[]="s3304o1c1S." *nodnod* >now, this is fine for characters like King Welmar who wander around and >perform automated actions in various rooms. What about characters like >Peter the Captain of the Guards or Jerry the Gambler who have no static >character string? They have numbered cases, > ie: (for SPECIAL(peter)) found in the King's Castle Special Procedures >if(!(number(0,3))&&(ch_guard = find_guard(ch))) > switch (number(0, 5)){ ^^^^^^^^^^^^ That ought to say it all. Maybe you should read the _whole_ piece of code before spamming this group. >thanks! Yeah, anytime. --- Regards, Jens Malare <raidell@dalnet.se>
This archive was generated by hypermail 2b30 : 12/07/00 PST