• 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.

SotDRP-Style RP Chat System

Status
Not open for further replies.
Level 12
Joined
Jun 10, 2008
Messages
1,043
Im not very skilled in these things, and I looked around the forum quite a bit but couldnt find anything (didnt know what to really call it. Anyways I need a SotDRP-type chat system (Im sure you know what ive mean if youve played it) I want it to use numbers instead, though. So basically when somebody types set1, set2, set3, set4, set5, set6, set7, set8, set9, or set0 the name will be stored under that number and anything the player says will appear as a game message, but not appear in All/Allies chat. Just as a game message. So, for example if your lost right now.

set(1-0)(name)
(1-0)Hi

or

set1Bob
1Hi (which will show up as Bob: Hi as a game message, but not as a normal message)

If you dont type any number before it, OOC: will be typed out instead of your set name, so for example

Hi (will show up as OOC: Hi still as a game message and not in-game text)

Does anybody know how to do this? Can you please post a map or the triggers on the site so its easier for me to understand instead of trying to explain everything? Thanks and +rep to the helpers!
 
Level 8
Joined
Jul 3, 2011
Messages
251
Not really sure if this is usefull or not as im not entirely sure what you are asking, but hopefully this will be of use.

  • Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Hashtable - Create a hashtable
      • Set h = (Last created hashtable)
  • String
    • Events
      • Player - Player 1 (Red) types a chat message containing set1 as A substring
    • Conditions
    • Actions
      • Hashtable - Save (Substring((Entered chat string), 5, (Length of (Entered chat string)))) as 1 of 1 in h
  • String2
    • Events
      • Player - Player 1 (Red) types a chat message containing 1Hi as A substring
    • Conditions
    • Actions
      • Hashtable - Save (Substring((Entered chat string), 2, (Length of (Entered chat string)))) as 2 of 1 in h
      • Game - Display to (All players) the text: ((Load 1 of 1 from h) + (: + ( + (Load 2 of 1 from h))))
When red types set1(name here) it will set the entered name, then when he types 1Hi it will display in-game (Entered Name): Hi. Again im not sure if this will be of use as i have not played this game, and you didn't explain it very clearly.
 
Level 12
Joined
Jun 10, 2008
Messages
1,043
Well, the chat message wouldnt be "Hi" it would be whatever the player typed in after the #. Also, it should work for players 1-10. Im not really sure yours solves the problem.

I'll try to make this a bit simpler since you said you wern't entirely sure.
Basically when any player (1-10) types set(1,2,3,4,5,6,7,8,9, or 0)(name) the name will be set to that number. Putting that number before anything you say will show it up as that number's set name and the text submitted. If there is no number it will say OOC: and the text submitted.

So like this

(Red) set1Bob
(Teal) set2Joe
(Red) 1Hi
(Teal) 2I am testing this system

Would show up as

Bob: Hi
Joe: I am testing this map

Also, the problem about the texts showing up on screen can be solved with obs, but i'd like to atleast be able for the name to be set/OOC to show up otherwise
 
No, the thing I was telling him to look up on TH >.<. I'm not the one who asked for help, lol.

You have to use custom interface to filter out the regular player messages.


There was some tut or something on it at www.thehelper.net. It's not used very often, so not many people have the necessary imports on hand and know specifically how to set it up. The system itself is very simple.. you just output the chatted text, lol.


See, I was talking about that exact thread you linked. I was just too lazy to look it up and get him the link : P.
 
Level 12
Joined
Jun 10, 2008
Messages
1,043
How to Hide Chat
I found this while making my Letter System. After you do that your going to have to make a custom chat using the player chat event and game messages. I'll Make a test map for you if you want but you won't be able to import the hidden chat, you will have to do it yourself.

Ah, that will help a lot. Could you please make that test map though, im not very skilled in this stuff. Thanks! +Rep to anybody who helped/tried to help
 
Status
Not open for further replies.
Top