I made two macros, one for a single message whisper, and another that lets you whisper to multiple people (provided you check the checkbox next to their name when it pops up). Hope you like them!
Whisper:
Code: Select all
[h: PlayerList = getAllPlayerNames()]
[h: Self = getPlayerName()]
[h: status=input(
"targetPlayer|"+PlayerList+"|Choose a player to whisper to.|LIST|VALUE=STRING|SELECT=0",
"chatText||What do you want to say to him/her?")]
[h:abort(status)]
<span style="color: blue"><b><i> [r,whisper(targetPlayer): self++" whispers to you: "++chatText]</i></b></span>
<span style="color: blue"><b><i> [s,r: "You whisper to "++targetPlayer++": "++chatText]</i></b></span>
Code: Select all
[h: PlayerList = getAllPlayerNames()]
[h: PlayerCount = listCount(PlayerList)]
[h: Self = getPlayerName()]
[h: counter = 0]
[while(PlayerCount > counter,"<br>"),CODE:
{
[h: targetPlayer = listGet(PlayerList, counter)]
[h: Talk = 0]
[if(targetPlayer != Self),CODE:
{
[h: status=input(
"Talk||Whisper to "+targetPlayer+"?|CHECK")]
[h:abort(status)]
};
{};]
[if(targetPlayer != Self && Talk == 1),CODE:
{
[h: status=input(
"chatText||What do you want to say to "+targetPlayer+"?")]
[h:abort(status)]
<span style="color: blue"><b><i> [r,whisper(targetPlayer): self++" whispers to you: "++chatText]</i></b></span>
<span style="color: blue"><b><i> [s,r: "You whisper to "++targetPlayer++": "++chatText]</i></b></span>
[h: counter = counter +1]
};
{
[h: counter = counter +1]
};]
}]