PennMUSH Community

Ticket #7509 (new suggested feature)

Opened 7 months ago

Last modified 7 months ago

Function to show listening objects

Reported by: Talvo Assigned to:
Priority: minor Milestone:
Keywords: Cc:
Visibility: Public

Description

Would it be possible to add a function that returns a list of all objects that would hear it when a given <object> makes a sound (like speaking, etc)? It would make it easier to do something like @hook 'say' or write custom speech commands; instead of just @pemit'ing or @message'ing lcon(%#), you could correctly send the message to everything that should hear it (audible exits, the location itself, etc).

Change History

12/15/07 18:11:43 changed by Alan Schwartz

Quoting Penndev (pennmush-bugs@pennmush.org):
> #7509: Function to show listening objects
> ------------------+---------------------------------------------------------
> Reporter:  Talvo  |         Type:  suggested feature
>   Status:  new    |     Priority:  minor            
> Keywords:         |   Visibility:  Public           
> ------------------+---------------------------------------------------------
>  Would it be possible to add a function that returns a list of all objects
>  that would hear it when a given <object> makes a sound (like speaking,
>  etc)? It would make it easier to do something like @hook 'say' or write
>  custom speech commands; instead of just @pemit'ing or @message'ing
>  lcon(%#), you could correctly send the message to everything that should
>  hear it (audible exits, the location itself, etc).

Adding on: 

Such a function might be called sweep(), and might take
an optional argument of listen/command (defaulting to both),
and maybe an argument for room db# to allow a remote sweep.

 - Alan

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Javelin@M*U*S*H, once Paul@DuneMUSH | Alan Schwartz <dunemush@pennmush.org>
   (mush.pennmush.org 4201)         |     
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-