Manual:DIL Manual/follower

From DikuMUD Wiki
Jump to navigation Jump to search

follower

Field (unitptr, read-only; units: characters).

ch.follower : unitptr

The first character that follows ch, or null when no one does.

Notes

  • On an object, a room or null the field fails.
  • It can't be assigned (vmc: "Illegal lvalue"); followers come and go with follow().
  • To go through all of them use followercount and getfollower().

Example

dilbegin integer has_followers(ch : unitptr);
code
{
   if (ch.follower == null)
      return (FALSE);
   return (TRUE);
}
dilend

Tells whether anyone follows a character, as the group checks in spells.zon do with not self.follower.

See also