Remember

Main.Remember History

Hide minor edits - Show changes to markup

December 31, 2008, at 06:38 PM EST by admin
Added lines 1-18:
     remember - syntax: remember(ch) 

For compatibility with old mobprogs - causes a mob to 'remember' the provided character. The 'ch' variable can either be an existing character variable, or a name.

   targ = self.target

   if targ == nil then
      say ("I don't have a target")
      remember(ch)
   else
      if (targ.gid == ch.gid) then
         say ("Hi! You're my target!")
      else
         say ("My target's name is " .. targ.name)
      end
   end