Re: [NEWBIE] - act() question

From: Xual (xual@satanspawn.ml.org)
Date: 02/23/99


On Tue, 23 Feb 1999, Tom Dailey wrote:

> instead of the mob.  And when I try to do an act(), the $n is the
> character, not the mob.  If I change $n to $N, it still doesn't work.

You arent referencing the mob anywhere...  Look at the definition of
SPECIAL.   Notice the void *me.  Now turn *me into *mob at the top of the
func:

struct char_data *mob = (struct char_data *) me;

<snip>

>       act("$N raises $s arms in disgust", FALSE, ch, 0, 0, TO_ROOM);
>       do_say(ch, "Your little warrior skills cannot hurt me!", 0, 0);

Now change ch to mob.  ch is always the player who types the command.

"Misery is boundless"
        -Xual the Torturer, on the Eve of the Sundering.

Danathara Online RPG
telnet://danathara.dhs.org:4000


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST