Originally Posted by
Kiflaam
I suppose hacker would see a prompt to select from a list of different messages, then the prompt would have him select which names/roles go where. The hacker would also select a target, whom he is considered to visit, to receive this message.
first selection might be
"Your target is a member of the "
if the user selects that, a list of roles appear in a prompt, and they select one.
Janitor
sheriff
citizen
etc...
then, after selection, it shows the completed message, and gives the user the option to go back and change their options. The completed message will say "...member of the mafia" if a mafia role is selected for the blank, or "your target is not suspicious" if a town role is selected. However, if (for instance) the game setup doesn't allow detection of serial killers, and serial killer is selected, it WILL say, to the sheriff, "your target is a serial killer" (or however that is said), and it is a chance (at that point) for the sheriff to go "hey, I can't detect those, I was hit by a hacker".... assuming the target was, indeed, the sheriff. Otherwise, the person will immediately know, or simply be confused.
The messages will only overwrite the message the (for example) sheriff would get if, and only if, it's the message a sheriff would naturally get (such as sheriff detection messages, you've been attacked messages, you've been healed messages, etc.. etc...), and NOT detective messages. If a hacker tries to give a sheriff a detective's message, the sheriff will see BOTH his message from his action, and the hacker's false detective message. Essentially, if a hacker knows you are a sheriff, he can more-or-less role-block you, once. Messages that a sheriff would otherwise naturally get do not overwrite different messages he would naturally get. The sheriff will see his chosen target's role (if he can), while also getting (for example) messages about being... converted, or whatever. These things can exist together without conflict, so they do not overwrite. If the sheriff is attacked by a serial killer, but the hacker sends him a message about being attacked by the mafia, the message about the mafia will overwrite it, regardless of whether he actually dies or not (like, if a doctor heals him that night).
The list of "phrases" can be separated into categories, and determined what the message will be by the role selected. Like "you have been converted" (or however that goes) covers all conversion-type messages. The exact message will simply be determined by role selected (cult, mason, auditor, witch doctor). Naturally, such a message is effectively useless, as they will realize nothing happened the next day.
Drug dealer? what's that? your link says I don't have permission to view whatever is there.