MUDL:msg area

From SlothMUD Wiki
Revision as of 00:05, 8 November 2018 by Teker (Talk | contribs) (Created page with " __TOC__ = Summary = {|class="abilitiestable" border="0" cellspacing="0" cellpadding="0" ! Function Name | msg_area |- ! Settable | No |- ! Returns | Boolean |} {|class="...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Summary

Function Name msg_area
Settable No
Returns Boolean


Parameter Options
Area, Message (string)
Area, Message (string), Actor (character)
Area, Message (string), Actor (character), Item


This function sends a message to all players in the specified area. If an actor and/or item are provided, dollar code substitution occurs ($n, $o, etc).


Example

setproc <parent> # on_foo
foreach(moral_in_area(%area), %9,
(
    msg_area(%area, '$n is in the house!', %9)
)),

return(true)
@


setproc <parent> # PROC_ENABLED 1