Re: Question about the Archipeligo code base..

From: Patrick J. Dughi (dughi@IMAXX.NET)
Date: 04/01/98


> in objact.c there is this hunk of code:
> if ((obj->obj_flags.type_flag == ITEM_CONTAINER)
>                  && obj->action_description && (obj->obj_flags.value[3] < 0)
>                  && !number(0,5))
>           act(obj->action_description,FALSE,ch,obj,obj,TO_CHAR);
>
> I know it makes that desc happen for corpses, but do you have an example
> of this usage.  I just wish i had a word file to compare some of this
> code too :(

        Forgive me because I'm slow, but what is the question you're
asking?  What this says to me is that if an object is of type
ITEM_CONTAINER, and the action_description is set, and the 3'd value is
less than 0 (probably -1), and on a 1-in-6 chance, to display the action
description for the object to the character.

        I'll assume that this is in some sort of "Look at object" or "look
at room" line, but I guess that would be hard to say in this case, since
its a different code base.

                                                PjD


     +------------------------------------------------------------+
     | 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