• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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