Affected

Main.Affected History

Hide minor edits - Show changes to markup

December 30, 2008, at 10:17 PM EST by admin
Added lines 1-15:
   affected - syntax: affected(CH,"affect flag name") 

Returns true if CH has the specified affect flag set.

   if affected(ch,"flying") then
      say ("Hey, how's the view from up there?")
   elseif affected(ch,"diseased") then
      say ("Ugh, keep away from me please, I don't want to get sick!")
   end

   if not(affected(self,"sanctuary")) then
      say ("Uhoh, my sanctuary is down!")
   end