HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Can chat text be hidden from view.. with triggers?

02-09-2004, 04:05 AM#1
Huh
I want to make it so if a player enters text into the chat box, it wont show to anyone ^_^. How can i do this? :)
02-09-2004, 04:53 AM#2
DoctorDoom
Event: Player types a message conaining "empty set" (nothing)
Action: Cinematic- clear text messages

that'll do it
02-09-2004, 06:37 AM#3
RodOfNOD
LOL dude u are dreaming. Clear text messages DO NOT clear chat messages. I would LOVE to find a way to do this but unfortunately have not.

Have fun!
02-09-2004, 08:27 AM#4
Cubasis
Sadly, this is possible.

There is some function in the Cinematic Mode function usage that clears all chat messages :/. To my great dismay, as it can be bad when doing local cutscenes in a multiplayer map.

I don't remember what it was exactly, but DaKaN had investigated this, and... i think it was this function-call:
Code:
            call ShowInterface(false, interfaceFadeTime)

So you should be able to take all chat messages by resetting the Interface by taking it off and back on instantly (note, don't use the GUI function, as it does a whole lot more than calling this function).

Cubasis
02-09-2004, 08:48 AM#5
Huh
I'm sorry Cubasis, I don't really understand much JASS. Can this be done via the GUI interface at all? I already have a trigger setup to display text that i want removed, i just wanted to add an action to that trigger to remove the text or just make it invis.. or keep it from being displayed.
02-09-2004, 08:56 AM#6
Cubasis
Ahhhhhh, that's .... a interesting idea you just gave me :o

Anyways, no, that function is "not" in the GUI environment. Though you can CnP that into a "Custom Script" (a GUI action near the top of the list). Note, for the test to work properly you need to do two actions.
one with:
call ShowInterface(false, 0)
And then another one with:
call ShowInterface(true, 0)

EDIT: Removed silly idea, read bottom-"EDIT"

Cubasis

EDIT: Erhm o_O, what ...really....do you want to do? :/, display text to one player, not all?, cause... there is a simple function to do just that. It's in UMSWE.
02-09-2004, 09:00 AM#7
Huh
If you do indeed write a trigger to make invis. chat text, please post it! Would most likely be of some use to a few people :)
02-09-2004, 06:36 PM#8
BonsaiSan
Alteling aliances should do tlick as well... dunno if will wolk fol youl map though.
02-10-2004, 04:50 PM#9
Cubasis
Eh,

I edited my post to late... but... i'm not creating this function, cause it's not needed.... please, again, tell me, what are you trying to do?!?

Cause there already "is" a function in jass that displays timed text to "player". And UMSWE has that action in the GUI.

So....

Cubasis
02-10-2004, 08:01 PM#10
RodOfNOD
Cubber all he wants is to clear PLAYER TYPED chat. So a player hits chat and BOOM it is erased.
02-10-2004, 08:09 PM#11
Huh
After a little testing I have a simple solution that works. Basically in a multiplayer game, since there are no observers, you can use "chat to observers", then type in the substring followed by the text i want to display, and no one will see the entered chat string, only the processed game text. Since the only people with access to this feature will be me and a couple friends, its not really an issue. Was just a gag feature anyways. Thanks for all the posts though :)