MUDL:msg area

From SlothMUD Wiki
Revision as of 22:51, 17 March 2019 by Teker (Talk | contribs) (Example)

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

return(true)
@


setproc <parent> # PROC_ENABLED 1