1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Welcome to the new Hive! Be advised that we're still working on the site. There are still many rough edges, so please bear with us.
    Dismiss Notice
  3. The member Kam is making HIVE coasters. Take a look. For every coaster you buy, Hive gets $1.
    Dismiss Notice
  4. The poll for Icon Contest #14 - Seven Deadly Sins is out!
    Dismiss Notice
  5. The 25th Texturing Contest has started! Contestants are to create a skin representing a dark elf person/being or any construct related to it using the vanilla models or the custom ones found on the site.
    Dismiss Notice
  6. Buy it, use it, break it, fix it, trash it, change it, mail - upgrade it. Join (Optionally) Paired Techtree Contest #11 - Techno Magic now!
    Dismiss Notice
  7. Voting squad, line up! Cast your vote on the poll for Modeling Contest #29 - Squads!
    Dismiss Notice
  8. Hero Contest #8 is up and running! This time it's a joint contest between artists and coders. Go here for team matchmaking.
    Dismiss Notice
  9. The poll for the theme of our StarCraft II Terraining Contest is up. Cast your note now!
    Dismiss Notice
  10. The ninth Concept Art Contest has launched. Enter now!
    Dismiss Notice

Cause Chat to not contain sent message.

Discussion in 'World Editor Help Zone' started by khamarr3524, Mar 30, 2012.

  1. khamarr3524

    khamarr3524
    Joined:
    Apr 23, 2011
    Messages:
    450
    How can I make it so when a player types a message, it won't appear in the chat log?
     
  2. Lifee_72

    Lifee_72
    Joined:
    Mar 5, 2009
    Messages:
    246
    Edit : Nvm
     
  3. khamarr3524

    khamarr3524
    Joined:
    Apr 23, 2011
    Messages:
    450
    Just for clarification, I want to know how to properly stop a message from being "sent" so it wont appear in the chat log (F12).
     
  4. Vladadamm

    Vladadamm
    Joined:
    Apr 19, 2011
    Messages:
    1,231
  5. khamarr3524

    khamarr3524
    Joined:
    Apr 23, 2011
    Messages:
    450
    I'm not even sure if that does anything period o.o... and it's so messy. I already made it so messages won't display. My problem is making a message not be recorded in the chat log. or log. selected by hitting F12. I'm certain this is possible.
     
  6. khamarr3524

    khamarr3524
    Joined:
    Apr 23, 2011
    Messages:
    450
    *Bump*

    Anyone have any Idea? I've been looking around to no avail. I'm not certain if this is a script thing or an interface thing o.o
     
  7. Hashjie

    Hashjie
    Joined:
    Apr 20, 2009
    Messages:
    1,515
    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...
     
  8. jim7777

    jim7777
    Joined:
    May 27, 2009
    Messages:
    481
    1 word = impossible
     
  9. Hashjie

    Hashjie
    Joined:
    Apr 20, 2009
    Messages:
    1,515
    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: Apr 2, 2012
  10. nedio95

    nedio95
    Joined:
    Mar 24, 2011
    Messages:
    563
    It is possible. I dont know how its done through... As example I can give The Thing. There messages are not displayed as chat messages but like system messages and they dont appear in the chat log.
     
  11. Hashjie

    Hashjie
    Joined:
    Apr 20, 2009
    Messages:
    1,515
  12. Chaosy

    Chaosy
    Joined:
    Jun 9, 2011
    Messages:
    7,839
    This is not a perfect but its the best i can think of without the editor.simply clear screen from text messages. Yes it will remove other messages too but...
     
  13. khamarr3524

    khamarr3524
    Joined:
    Apr 23, 2011
    Messages:
    450
    Unfortunately this solution is directly conflicting with the system. Thank you all for your comments, I guess the only true solution for this system is to use OBS chat so no one can see the messages you send privately (Other than you).