HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Enable/Disable Chat

01-25-2008, 04:40 PM#1
Tastingo
Sorry if someone already figured this out.

I was thinking to myself how you could ignore people in the game, for the game only. I noticed that if you just disabled the chat by changing [All] to a million of spaces it would permantly disable it. (Keep reading)

So I thought of changing the [All] to 4 spaces, [Allies] to 4 spaces, and [Private] to 4 spaces. I store everyone's orignal name in a string variable at the beginning of the game. Then I just have a trigger that when you type -block red, it locally changes his name to a bunch of spaces. It blocks everything he only says, but just creates a gap between the text messages you can see. Without the [All] or [Allies] and the 4 spaces it feels the same, comfortable.

Here are two pictures, one of a normal chat with [All], and one where it doesn't have [All]. This and the gap are the only things that may annoy some, but I don't find them annoying. If you blocked everyone then there wouldn't be the gap problem. I think it looks pretty good without the [All]. Also the name of an ally or enemy unit will not show when you hover their mouse over them, but you blocked them anyway.

Normal: and Blocked Chat:

I unblock myself while my message is hidden.

Most people that would probably want this want the whole thing to be disabled, or the whole thing to be enabled, so I would just change everyone's name in that case; then there would be no chat.

Thanks to PitzerMike with allowing me to edit the [All], with his program GameInterface101.

For the test map the commands are -block and -unblock.
Attached Files
File type: w3xBlock.w3x (16.8 KB)
01-25-2008, 06:14 PM#2
Zandose
Yep, someone already knows this. Here's a tutorial on it http://www.wc3campaigns.net/showthread.php?t=80691.
01-25-2008, 06:20 PM#3
Tastingo
No there is a difference, during the game mine can enable or disable chat. His you can only just disable it for the whole game or not at all.
01-25-2008, 07:04 PM#4
Zandose
Sorry, I didn't read the whole thing slowly enough, I just skimmed it.
01-26-2008, 01:44 AM#5
Szythe
very creative. i don't know if this has ever been mentioned before
01-26-2008, 03:01 AM#6
Here-b-Trollz
This is really freaking cool. Innovative thinking on your part = +rep.
01-26-2008, 03:50 AM#7
Tastingo
yo sick thanks for the rep, think its my first time getting it. I just hope that like Vexorian, Bluedanoob, Pitzermike, Tim, and all of them see this. Would be cool to get some positive replys back from them :P.
01-26-2008, 03:56 AM#8
Salbrismind
Most of the time someone has always figured it out before you, but good job at being the first, and good job on a nice smooth system for this. I just wish I had use for it :P
01-26-2008, 09:34 AM#9
Troll-Brain
Could you attach a test map ?
01-26-2008, 09:43 AM#10
Tastingo
I will later tonight, going snowboarding for almost the whole day.
01-26-2008, 04:30 PM#11
Alexander244
Try hovering your mouse over a unit owned by the blocked player, or opening the alliances dialog.
01-26-2008, 05:20 PM#12
Ammorth
You could disable pre-selection if it's that big of a deal.
01-26-2008, 10:57 PM#13
Tastingo
Attached a test map for anyone who wishes to check it out, I know one person requested it.
01-27-2008, 12:19 AM#14
Szythe
Problem:
As pointed out by Alexander244, messing with a player's name will change the popup above units which are not controlled by you in a game. I modded the testmap to block a computer player, and got this result.
Attached Images
File type: jpgss.JPG (163.9 KB)
01-27-2008, 12:40 AM#15
Tastingo
If you set the name even longer, it will hide the name. If you don't mind the name not showing, especially since you blocked them or the chat anyway.