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

nedd help with chat messages!

Status
Not open for further replies.
Level 4
Joined
Jun 22, 2009
Messages
63
Events
Player - Player 1 (Red) types a chat message containing <Empty String> as A substring

Actions
Set Name[2] = (Entered chat string)
Wait 2.00 seconds
Game - Display to (All players) the text: (Name[2] + , so that's my name?)

I want to make the entered chat string he's name, but i can't find the right event!
 
Level 4
Joined
Jun 22, 2009
Messages
63
That didn't explain much

i want the entered chat to be his name
everything is working exept the Player 1 enters a chat thing.
 
Level 3
Joined
Dec 22, 2007
Messages
28
Trigger: (Translated from german)

  • Name
    • Events
      • Player - Player 1 (Red) types a chat message containing -name as a part-string
    • Conditions
    • Actions
      • Set var_substring = (Substring((Entered chat string), 7, (Length of (Entered chat string))))
      • Player - Set name of Player 1 (Red) to var_substring
Something like that?

Enter
-name YourNameHere
to the chat and see what happens.
 
Status
Not open for further replies.
Top