MUDL:msg area

From WikiName
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