How do I make chat appear as a game-text??

the_playa6916

Member!
Joined
Jul 30, 2004
Messages
54
Reaction score
0
Location
CaNaDa
Website
Visit site
Does anyone know how to make the entered chat appear as game text, like in DEFIANCE's ORPG?? Thanks!!
 

ChrisH36

Guy with Most Posts on Quiet Board.
Joined
May 20, 2003
Messages
15,042
Reaction score
4
Location
Temple Prime, Sarajevo
Well, you need to store what the person says into a string variable. Then find the function that displays what it holds.
 

the_playa6916

Member!
Joined
Jul 30, 2004
Messages
54
Reaction score
0
Location
CaNaDa
Website
Visit site
ahh. that makes sence =). and what about deleting its appearence as chat? or can i make it so players DONT see eachothers chat messages even though they are allied?
 

ChrisH36

Guy with Most Posts on Quiet Board.
Joined
May 20, 2003
Messages
15,042
Reaction score
4
Location
Temple Prime, Sarajevo
I think there was a Clear Text function in there along the same lines, that solves the deleting part. As for the player filtering, when you generate teh text, make it so that only select players can do it.

The problem is I haven't used TFT editor in a long time, and I am just giving you psuedo-code in hopes that you can find it yourself.
 

ChrisH36

Guy with Most Posts on Quiet Board.
Joined
May 20, 2003
Messages
15,042
Reaction score
4
Location
Temple Prime, Sarajevo
I am afraid for chat text its done within the game's code, it expires after a certian amount of time.
 

the_playa6916

Member!
Joined
Jul 30, 2004
Messages
54
Reaction score
0
Location
CaNaDa
Website
Visit site
yeah that's what i thot. but how in the world does DEFIANCE get it deleted then?? Is there maybe a way to FORCE players to always write to observers/enemies?
 

ChrisH36

Guy with Most Posts on Quiet Board.
Joined
May 20, 2003
Messages
15,042
Reaction score
4
Location
Temple Prime, Sarajevo
Hard to say. Unless I had an unprotected version of that map, I can't really figure it out. The problem is I would have to cut off the person who does that, unless the map is unpopular or created by one of our members.
 

the_playa6916

Member!
Joined
Jul 30, 2004
Messages
54
Reaction score
0
Location
CaNaDa
Website
Visit site
well you can always view it as an MPQ if you can read JASS. I noticed that in defiance, its a lot like how when you enter a cheatcode in singleplayer, the chat just doesnt show up after you press enter. However the game can still recognize it as chat (that's how the map boots ppl if they try 2 play an RPG in single-player and type in a cheat)..

Like for example, in single player, if you type "greedisgood", it won't show up as chat, but you'll see "Cheat Code Entered"... the chat event can still be used 2 recognize this and the chat string would still be "greedisgood". I sorta want it like that, but EVERYTHING that's typed just doesnt show up and i can make it appear as game-text instead.
 

NewPosts

New threads

Top