[T1 Request] Script

Dragon
04-20-2003, 12:34 PM
Can someone make me a script or something that will mute out the flag related measages, like "So and so has taken your flag.", "Blah recieves a 5 point....". My chathud is only 3 lines and it get filled fast when that stuff is going on, making me miss msgs sometimes. Thanks in advance!

|KiLLeR2001|
04-20-2003, 12:47 PM
You can edit your chat hud to your likings if you want...

Go into Tribes, put Window mode on and then type tree(); in the console. Then find a folder called play.gui... Expand it and look for a folder called chatdisplay or something to that nature... Right click it and select Edit. Everything you can edit is in there... Have fun.

Dragon
04-20-2003, 12:50 PM
kool, thnx, ill give it a try

edit: oh, thats just to change the amount of lines

cyclonite
04-20-2003, 07:19 PM
Try playing around with this:

$Filter::Msg[0] = "You couldn't buy ";
$Filter::Msg[1] = "Repairing ";
$Filter::Msg[2] = "Station Access ";
$Filter::Msg[3] = "Repair Done";
$Filter::Msg[4] = "AutoRepair ";
$Filter::Msg[5] = " deployed";
$Filter::Msg[6] = "Repair Stopped";
$Filter::Msg[7] = "Unit is disabled";
$Filter::Msg[8] = "Nothing in range";
$Filter::Msg[9] = "Bought Laser Rifle - Auto buying Energy Pack";
$Filter::Msg[10] = "SOLD ";
$Filter::Msg[11] = " has no ammo";

function Filter::Check(%cl,%msg)
{
for (%i=0;$Filter::Msg[%i]!="";%i++)
{
if(String::FindSubStr(%ms g,$Filter::Msg[%i])!=-1)
return "FALSE";
}
}

Event::Attach(EventServer Message, Filter::Check);

SuperSlug
04-21-2003, 01:35 AM
If you use eventServerMessage you need to remove the %cl from this line:
function Filter::Check(%cl,%msg)

TooSmoothe
04-21-2003, 03:31 PM
u only want your chathud to be 3 lines? You use split message?

Dragon
04-21-2003, 06:12 PM
I tried what cyc said, and it works :) cept it mutes the flagsounds too, which felt too weird, so ill just leave them. Yes, I use split and the gui I use only holds 3 lines.