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

[Trigger] Help with a Simple Problem

Status
Not open for further replies.
Level 5
Joined
Aug 7, 2004
Messages
120
All I want to do is have the player enter a chat message, which gets saved as a string variable. I've tried to find a way to do this, but it never works. The way I currently have it in my map is:

Event -> Player 1 Red enters a chat message containing (empty string) as a substring

Action -> Set (HeroName) = Entered Chat String
Game - Display to (all players) the text (Your name is + HeroName)

In game, the only thing that shows up when you enter the message is "Your name is," which indicates that the variable isn't getting saved as anything. I also tried using one of the special events in WE Unlimited:

Event -> Player 1 Red Sends a Chat Message

This produced the same results. Does anyone know how to do this correctly?
 
Status
Not open for further replies.
Top