HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

localized chatting

02-23-2004, 08:48 PM#1
xtacb
how do i make it so when a player types a chat message, only players that are within one screen radius of the talking player will recieve the message? i want it to seem like a player is talking and only people around will hear while other players hear nothing

is this possible??
02-23-2004, 08:53 PM#2
Hunter0000
Detect when chat msg's are sent, then create a floating text of the same text, then delete the message. I will still show up in the chat log, but thats a pain in the ass.
02-23-2004, 10:41 PM#3
xtacb
can i do it without floating text? i dont want to give away the location of the player talking

its like you see someone chatting in your chatwindow so you know someone is around you but you dont know where exactly

is there a way to use the chat window only for this
02-23-2004, 10:45 PM#4
linkmaster23
Woah, if you get that working PM me. I want to see how it turns out.
02-23-2004, 10:50 PM#5
Hunter0000
Oh... I see what your saying!!!

here you go, first detect, store, then delete all text messages.

Now, when you get one of these stored messages(just use a string varable) Find out who has units within howwever long you want the talking range. Now, once you identify these players, display a messasge to them

(Player name(the one who typed)( : ( String varable(this is the recorded message))))

Ok?

EDIT: Come to think of it, il whip up a test map, hold on.

INITALIZING TEST ZONE; PLEASE STAND BY
02-23-2004, 11:08 PM#6
Hunter0000
Ok this should work, but I currently have no way of testing it. Unfortunetly, this will only allow one displayed message at a time, wether this is good or bad is up to you.

Here, give it a try, the speaking distance is set to 2000 WEU

EDIT: the test map is... well... not working, please stand by..
02-23-2004, 11:24 PM#7
Cubasis
Hunter,

You'll likely find this out in your testmap... but the "Clear all Text Messages" action (or whatever its name is) DOES not clear all player-written text messages. It only clears messages you created in your triggers.

So sadly, this is not easily doable, only one thing i can give to you guys is.... Enabling LetterBox Mode clears all text messages..... this is a pain to me, but may be good to you. It's inbuilt into the main LetterBox function.

Cubasis
02-23-2004, 11:55 PM#8
Hunter0000
so if I enable, then disable really fast it will delete all player messages? what about game messages?

EDIT: Cubasis, that is not true, I just tried it and letterbox is not destroying messages, hold on letme try cinimatic mode.

EDIT2: That doesnt work either..

Anyone know any fancy-ass JASS that can kill player messages?
02-24-2004, 09:09 AM#9
Cubasis
Hmm,

darn, that's a bummer. It must then only stop incomming messages, not clear already sent ones :(.

Well, in that case, you're screwed, there are no magic Jass functions to do anything like this.

Cubasis