Author Topic: Random Player Chat [v2; Minigame Event]  (Read 5377 times)

Random Player Chat
Requested here: http://forum.blockland.us/index.php?topic=161850.msg3956318#msg3956318

Basically all it does is replace %2 in chat with a random player in the server.

I honestly have no idea why this was needed, but I decided to make it anyways for slimabob.

Added a minigame event that messages all in chat that are in the minigame.
%1 = person who gets the message
%2 = person who activated the message

Download Mirror(s):
Dropbox
Known Bugs:
none
« Last Edit: July 17, 2011, 09:29:23 PM by otto-san »

Random Player Chat
Requested here: http://forum.blockland.us/index.php?topic=161850.msg3956318#msg3956318

Basically all it does is replace %1 in chat with a random player in the server.

I honestly have no idea why this was needed, but I decided to make it anyways for slimabob.

Download Mirror(s):
Dropbox

Known Bugs:
none
The forget?

So if i say %1, it'll be a random name? :o

The forget?

So if i say %1, it'll be a random name? :o
Essentially, yes.

Essentially, yes.
Well, I know most people will say this isn't needed, which it isn't, but its still useful in some ways, like choosing random players.

Good job.
« Last Edit: July 16, 2011, 02:13:35 PM by N0B0-Films »

Well, I know most people will say this isn't needed, which it isn't, but its still useful is some ways, like choosing random players.

Good job.
I literally used a single random number generator and a strReplace.

Thank you for making this.

I literally used a single random number generator and a strReplace.
Yes but you made something that was so simple that nobody else bothered releasing.

You are unique.

So if I try and say %1's name... It will probably say someone elses? forget.

I wouldn't use this often, but it has given me an idea for a type of server I could host.

When looking at the suggestion topic, I noticed this reply and I personally would have found it more useful.

Quote from: Orion
he's asking for an event that %1's but everybody sees the person who activated it's name, instead of everybody seeing their own name.

« Last Edit: July 16, 2011, 02:29:11 PM by Danny Boy »

So if I try and say %1's name... It will probably say someone elses? forget.

I think this is server-sided. So unless the server he is in, has this, yeah it will say someone else's.

Now you don't have to go use some random number generator to find some random victim on your server.

Useful in a sense.

I think this is server-sided. So unless the server he is in, has this, yeah it will say someone else's.
It is server-sided.

hmm.. Make a mod that makes %2 be random and %1 be your name? :3

hmm.. Make a mod that makes %2 be random and %1 be your name? :3
elaborate what you mean by "your name"

the person talking?

hmm.. Make a mod that makes %2 be random and %1 be your name? :3
Super simple and easy.
1. Download this mod
2. Open server.cs
3. Change
Code: [Select]
%text = strReplace(%text, "%1", %name); into
Code: [Select]
%text = strReplace(%text, "%2", %name);4. Save and your done.