Re: [BUG]%actor.name%

From: Welcor (welcor@dune.net)
Date: 02/21/02


----- Original Message -----
From: "Kevin Dethlefs" <Demortes@MSN.COM>
> In DG Scripts, actor.name will refer to someone who is not doing the
action
> needed in the script. I will copy and paste the script down here...
>
As Mark Heilpern writes in the mail at
http://www.circlemud.org/maillist/1998-06/0915.html,
the problem is occurring because every player has the same id.
Since %actor.name% simply means:

take the entity with id == actor, and and find the name subfield,
and since the search starts with number 0 (the implementor), you'll
always be found first. So add

GET_ID(d->character) = GET_IDNUM(d->character);
in enter_player_game() or elsewhere in the login sequence.

It was actually in the archives...

Welcor

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