At 08:15 PM 4/22/98 -0500, Chuck Reed wrote:
>SPECIAL(prof_teacher_swimming)
>{
> if(CMD_IS("learn"))
> send_to_char("Worked.\r\n", ch);
> else
> send_to_char("Didn't.\r\n", ch);
>
> return TRUE;
>}
>
Spec_procs "intercept" the commands you type before they go to the command
interpreter (or whatever it is). Your prof_teacher_swimming intercepts the
commands, and since they aren't "learn", you get "Didn't." That's how you
coded the spec_proc. My guess as to why you are getting "Huh?!?" when you
type "learn" is cuz you haven't put an entry for it in interpreter.c:
{ "learn", POS_RESTING, do_not_here, 0, 0 },
You use do_not_here because it's for a spec_proc, and like i said, it's
intercepted anyway.
Havoc of Dagmarck (Mark Gerritsen)
PS: sorry about that cut-off mail, the guy next to me in the lab hit my
mousebutton with his elbow.
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST