Re: receptionist actions

From: Patrick Dughi (dughi@imaxx.net)
Date: 02/10/02


> Replying to myself: this is incorrect.  I assumed that when called by
> perform_violence(), the special procedure would have ch == FIGHTING(ch),
> but this is incorrect.  It's also unfortunate because it makes it
> impossible to differentiate between spec proc calls on mob and violence
> pulses.

        I'm easily confused, but, I thought there were only ever 2
triggers for spec procs; by command, or by pulse.  All pulse (whether
moving, or casting 'poison' or the sort) happen in the mobile_activities()
loop.  The 'violence' pulses don't trigger mob spec procs.

        Unless that changed.

        Either way, you can tell which is which because pulsed commands
will have ch == 'me', cmd is 0, and the argument is NULL.  Command
triggers have ch == person who triggered it (could be 'me', but unlikely),
a valid cmd, though having an argument or not is uncertain.

        I wrote something up a while ago, but I don't track changes very
well, so I'm not sure if it ever made it anywhere.  It was intended to
replace section 4 of the 'coding.doc' file, and act as a more complete
primer to using spec procs.  I'll give it a plug since I can't seem to
locate it on the ftp site...

http://www.imaxx.net/~dughi/mud_stuff/spec_procs.txt

                                        PjD

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT