• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Cause Chat to not contain sent message.

Status
Not open for further replies.
Level 14
Joined
Apr 20, 2009
Messages
1,543
You'll need to save the "forbidden" words inside a string array.
Then you'll have to create an algorithm that checks the entered chat string for words contained within the entered chat string that equals the string array.
This can be done through character positions. You'll need to loop through them. You can then show the filtered chat string to the players.

It's not easy to script this...
I'm sorry but I don't have enough time to do this for you.
Do you have experience with Jass?
It's probably easier doing this in Jass then in GUI.
I can give you guidelines, but that's all I can do for now.

About the chat log: I'm not sure if this is possible, I'll have to look around...
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
jim7777 said:
1 word = impossible
You are probably correct about the chat log here.
But not about the chat message being displayed.

EDIT: seems like you're incorrect.
 
Last edited:
Status
Not open for further replies.
Top