PennMUSH Community

Ticket #7670 (new incoming)

Opened 2 months ago

Last modified 2 months ago

@oxemit and oxemit()

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

Description

It does the converse of @oemit, which works exactly like @emit except it EXCLUDES people in a list. @oxemit would work exactly like @emit, except it is visible ONLY to people in the list.

* @pemit doesn't work, because it sends it to everyone on the list, regardless of location. * @remit doesn't work, because it sends it to everyone in the room, regardless of whether or not they're in the list.

My instinct tells me that this is as simple as inverting the conditions for @oemit to be seen. Feel free to prove me stupid.

Change History

07/21/08 09:08:18 changed by walker

Not precisely.

@oemit sends to everything in any room that any of the people in the list are, so the converse *is* @pemit.

If Walker and Javelin are in separate rooms, then "@oemit *Walker *Javelin=This is a test" will send a message to everybody in Javelin's and Walker's locations, except Javelin and Walker themselves.

If what you want is a way to pemit to a given list of characters that are also only in a specific location, try using setinter() with the list you need.

e.g, @oxemit as you describe, in softcode:

&cmd_oxemit globals=$@oxemit */*=*:@pemit/spoof setinter(lcon(locate(%#,%0,*)),iter(%1,locate(%#,%i0,*)))=%2

Or am I unclear on what you wanted?

07/21/08 12:12:20 changed by KimikoMuffin

(See, I was right, I *am* stupid ...)

Well, the thing is ... if I do "@oemit me=Test" while inside an Audible object, it will be visible to people outside the object. Or, if an object with @listen=* is nearby, people inside the object will see it. And then there's Audible exits, too. I suppose the acutal thing I'm trying to do is "See if vanilla @emit/say/pose would be visible to people on this list under any circumstances, and then @pemit it to them and only them ..." In which case I'm better off logging into M*U*S*H and asking on +softcode ... (For the record, it's a Death Note parody; the list will consist of people who have "touched" the Death Note equivalent, and it's to see if they're able to see/hear the Shinigami-equivalent attached to that particular Note ...)