Author Topic: A variation of %1  (Read 977 times)

I requested this a while ago, but it didn't get very far.

When you type %1 into a chat-based output event, it shows the name of the person who triggered the events. What I am asking for is this except that instead of displaying the name of the person who activated the bricks, it shows the name of a random person on the server.

That is default code.

Code: [Select]
messageClient(%obj.client, 'MsgChathud', '\c0 %1 %2', %trigger.nameTag, %name);
Commands work like that. By default, the %1 term is the name.

That is default code.

Code: [Select]
messageClient(%obj.client, 'MsgChathud', '\c0 %1 %2', %trigger.nameTag, %name);
Commands work like that. By default, the %1 term is the name.
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.

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.

Kind of. Im asking for it to grab a random name from the list of players on a server and then display it in the text.

But yes, it would be an event.


« Last Edit: July 16, 2011, 02:05:27 PM by otto-san »

Thanks a ton. I have absolutely NO idea how to script, so thank you for taking the time (no matter how short it was) to make this obviously easy and simple addon for me.

Um, this wasn't quite what I was asking for. I meant like if you typed "%2" or something into the text box in chat-based output events, it displays the name of a random person on the server.

(Double toast)