HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Hiding the Chat Messages

05-22-2006, 05:46 AM#1
Pheonix-IV
Now, i remember something about this awhile back on the old WC3C, somone wanted to find out how to hide chat messages so that nobody could see them. He worked something out using player names and whatnot, but i don't remember how. If anyone can tell me that'd be great.

Also, is it possible to make it so that this trigger:

Trigger:
Communication
Collapse Events
Player - Player 1 (Red) types a chat message containing - as A substring
Player - Player 2 (Blue) types a chat message containing - as A substring
Player - Player 3 (Teal) types a chat message containing - as A substring
Player - Player 4 (Purple) types a chat message containing - as A substring
Player - Player 5 (Yellow) types a chat message containing - as A substring
Player - Player 6 (Orange) types a chat message containing - as A substring
Player - Player 7 (Green) types a chat message containing - as A substring
Player - Player 8 (Pink) types a chat message containing - as A substring
Player - Player 9 (Gray) types a chat message containing - as A substring
Player - Player 10 (Light Blue) types a chat message containing - as A substring
Player - Player 11 (Dark Green) types a chat message containing - as A substring
Player - Player 12 (Brown) types a chat message containing - as A substring
Conditions
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
HeroTalkOn[(Player number of (Triggering player))] Equal to True
Collapse Then - Actions
Floating Text - Create floating text that reads (Substring((Entered chat string), 2, (Length of (Entered chat string)))) above CurrentTalkingUnit[(Player number of (Triggering player))] with Z offset 0.00, using font size 10.00, color (Red[(Player number of (Triggering player))]%, Green[(Player number of (Triggering player))]%, Blue[(Player number of (Triggering player))]%), and 0.00% transparency
Floating Text - Change the lifespan of (Last created floating text) to (((Real((Length of (Entered chat string)))) / 20.00) + 2.00) seconds
Floating Text - Change the fading age of (Last created floating text) to (((Real((Length of (Entered chat string)))) / 10.00) - 1.00) seconds
Floating Text - Change (Last created floating text): Disable permanence
Collapse Else - Actions
Set TempGroup = (Units currently selected by (Triggering player))
Collapse Unit Group - Pick every unit in TempGroup and do (Actions)
Collapse Loop - Actions
Floating Text - Create floating text that reads (Substring((Entered chat string), 2, (Length of (Entered chat string)))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (Red[(Player number of (Triggering player))]%, Green[(Player number of (Triggering player))]%, Blue[(Player number of (Triggering player))]%), and 0.00% transparency
Floating Text - Change the lifespan of (Last created floating text) to (((Real((Length of (Entered chat string)))) / 20.00) + 2.00) seconds
Floating Text - Change the fading age of (Last created floating text) to (((Real((Length of (Entered chat string)))) / 10.00) - 1.00) seconds
Floating Text - Change (Last created floating text): Disable permanence
Custom script: call DestroyGroup (udg_TempGroup)

Will fire off when a player types ANYTHING instead of a specific character.
05-22-2006, 06:00 AM#2
Jacek
http://maps.worldofwar.net/tutorials.php?id=80
05-22-2006, 10:09 AM#3
Pheonix-IV
Hmm, i was afraid that would be the only way to take out chat. Damn.

Oh, and
Trigger:
Event - Player 1 (Red) types a chat message containing [Empty String] as A substring

Doesn't work.

-EDIT-

Wait, now it does. How perculiar.
05-22-2006, 10:28 AM#4
Captain Griffen
You could use, alternatively, the function to clear the screen of messages. Can't remember exactly where it is, and it is rather unwieldy, but is an alternative.
05-22-2006, 11:07 AM#5
Anitarf
I don't think there is such a function... maybe for clearing game messages, but not chat messages.

Anyway, tutorial!
05-22-2006, 11:38 AM#6
shadow1500
Quote:
Now, i remember something about this awhile back on the old WC3C, somone wanted to find out how to hide chat messages so that nobody could see them. He worked something out using player names and whatnot, but i don't remember how. If anyone can tell me that'd be great.
Thats why you use the search, its under "Forum Tools". My tutorial shows you how to hide messages without the [All]/[Allies] thing and changing player names, Anitarf already linked it.
05-22-2006, 05:59 PM#7
Freakazoid
http://www.wc3campaigns.net/resources.php?f=648
Teh system, thanks to shadow1500 for the hint.
05-23-2006, 10:42 AM#8
Pheonix-IV
I did bloody do a search, and i still managed to miss it. Damnit!