| 02-09-2004, 01:44 AM | #1 |
Ok I'm trying to set up something neat in my map. Basically I want to have an option where a player can type a message in the chat box, but have it display in all white without the players name (kind of like a normal text annoucement). Can this be done? Thanks guys. -Huh |
| 02-09-2004, 01:48 AM | #2 |
why would you do that ? so ppl could flame without the ppl_being_flamed knowing who's flaming them ?:) it could be done, but maybe u would need someting in front of what u want ot say e.g "-say this text goes white without my name" |
| 02-09-2004, 01:51 AM | #3 |
It's for a gag map im making for a friend. I want to know is it actually possible though, to record text, and then spit it back out as a normal text annoucement. I figured maybe i could store the text in a string variable, and then print it from the same variable but im not exactly sure how to set it up so the text is recorded. BTW if you know how to do this plz list it in normal triggers (or UMSWE enhanced triggers). I don't really understand too much JASS and dissecting it, for me, is a real pain ^_^ -Huh |
| 02-09-2004, 02:00 AM | #4 |
of course it is possible Events: Player 1 types = as a substring Conditions: Strings Comparison: Substring (Entered Chat String),1,1 equal to = Actions: Game - Display to all players for 30 seconds: Substring (Entered Chat String)2,999 |
| 02-09-2004, 02:10 AM | #5 |
Wow awesome thanks Darimus!! That's exactly what i needed. I'm still a little unfamilar with using substrings etc so I was havin a hard time finding a way to do what you just showed me :) -Huh EDIT- Hey, here's another one for ya. How can I make it so the normal text entered isnt shown to other players. Just type to observers? i figured that might work but i wonder if theres a way to do it with triggers so you dont hafta switch to observer chat. |
