sending messages to everybody in the room

without using the " command, i want this message printed out to everybody in the room.

|i|cg$name(%userid%)$ #emote#|cb|xi


basically, when you type /me <text> the <text> enters itself into the #emote# string, and i want it to print out to all users on the same square.

Squiggle ponders

should look like that to all users on the same square (room)

for each object in <...whatever the room is...> {
if ( $left(#quest.thing#; 6)$ = player ) msgto <#quest.thing#; ...text...>

but i would have to define the room? therefore i would need to put that into every room as a seperate command.... :?

You could have it in a global command and use #quest.currentroom[userid]# as the room name.

ok, so in ASL would this be...

	command </me #emote#> {
for each object in <#quest.currentroom[userid]#> {
if ( $left(#quest.thing#; 6)$ = player ) msgto <#quest.thing#; #emote#>
}
}


ok coz it dont work....

Now lets not get into emote systems to fast, the only reason i asked was coz TNO wanted them in lol. We'll work on that later, its less important.

I'll figure it out though.