Difference between revisions of "MUDL:msg area"

From SlothMUD Wiki
Jump to: navigation, search
(Created page with " __TOC__ = Summary = {|class="abilitiestable" border="0" cellspacing="0" cellpadding="0" ! Function Name | msg_area |- ! Settable | No |- ! Returns | Boolean |} {|class="...")
 
(Example)
 
Line 34: Line 34:
 
<pre>
 
<pre>
 
setproc <parent> # on_foo
 
setproc <parent> # on_foo
foreach(moral_in_area(%area), %9,
+
foreach(mortal_in_area(%area), %9,
 
(
 
(
 
     msg_area(%area, '$n is in the house!', %9)
 
     msg_area(%area, '$n is in the house!', %9)

Latest revision as of 22:51, 17 March 2019


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(mortal_in_area(%area), %9,
(
    msg_area(%area, '$n is in the house!', %9)
)),

return(true)
@


setproc <parent> # PROC_ENABLED 1