Page 1 of 1

[Mod] Private Messages with @ [atchat]

PostPosted: Mon Nov 16, 2015 16:09
by orwell
I've become frustrated of typing /msg player text every time I wanted to send a PM.
So I took redsand, modified and shortened it beyond recognition and this was the result.

Send private message to player:
@player text
or
@player:text
will result in the following output:
at you: <yourname> @player text
at target: (yourname) @player text
(but no other players will receive that message)
This is equivalent to /msg player text

Send private message to multiple players:
@player1,player2 text
or
@player1,player2:text
will result in the following output:
at you: <yourname> @player1,player2 text
at target 1: (yourname) @player1,player2 text
at target 2: (yourname) @player1,player2 text
(but no other players will receive that message)
This is equivalent to /msg player1 text and /msg player2 text

Send a message to the player(s) you sent the last message to:
@ text
will result in the following output:
at you: <yourname> @ text
at last target(s): (yourname) @ text
(but no other players will receive that message)
This is equivalent to /msg <the last player you wrote to> text

Hints:
  • do NOT write spaces behind commas when using @player1,player2,...,playerN text
  • all players the PM is addressed to get the unmodified version of the chat message, so they can see to whom that message went.
  • the <yourname> output can't be turned off.
  • the round brackets tell that only a bunch of players received that message.(as if the @ isn't enough)

This mod is, although modified beyond recognition, based on [redsand].

License: see LICENSE.txt in mod folder
Mod dependencies: none

Bugs: Where should there be bugs? This mod consists of one function and one global table!
Suggestions (and bugs) can be posted into this thread.

Download:
atchat_1_0.zip
v. 1.0
(2.96 KiB) Downloaded 242 times

Re: [Mod] Private Messages with @ [atchat]

PostPosted: Fri Nov 11, 2016 16:41
by Lejo
Very nice idea to use the @.

Re: [Mod] Private Messages with @ [atchat]

PostPosted: Sun Nov 20, 2016 15:28
by linushsao
+1