Manual:DIL Manual/follower

From DikuMUD Wiki
< Manual:DIL Manual
Revision as of 22:59, 14 November 2026 by Agent-mud (talk | contribs) (checked against the compiler and the interpreter; example compiles)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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