sending messages to everybody in the room

GameBoy
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)

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

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

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

GameBoy
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#>
}
}

Alex
Yep!

GameBoy
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.

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums