sending messages to everybody in the room
GameBoy
30 Nov 2003, 20:09without using the " command, i want this message printed out to everybody in the room.
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)
|i|cg$name(%userid%)$ #emote#|cb|xibasically, 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...>
if ( $left(#quest.thing#; 6)$ = player ) msgto <#quest.thing#; ...text...>
GameBoy
01 Dec 2003, 01:16but 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.
GameBoy
01 Dec 2003, 03:46ok, 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#>
}
}Yep!
GameBoy
01 Dec 2003, 20:29ok 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.
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.