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

Floating texts on unit when they talk

Status
Not open for further replies.
Level 3
Joined
Oct 24, 2008
Messages
24
Hi...

I got a little problem that I can't solve alone...

I Want to make floating texts on your hero everytime you say something...

For example...
You type a message: "hi"
After that a floating text appears on your hero saying: "Silk060: hi"

I know that's possible but I don't really know the correct trigger...
I tried a lot of triggers but any worked.

Any tips, suggestions and help will be totally welcome! :spell_breaker:
 
Level 7
Joined
Jun 16, 2008
Messages
327
You must make use of strings then, as well as substrings.
What you do is you set the event so that the actions will fire when a player types a chat message containing an "Empty string" (actually just a blank space) as a substring.
Here's an example:

  • Chat Text
  • Events
    • Player - Player 1 (Red) types a chat message containing <Empty String> as A substring
  • Conditions
  • Actions
    • Floating Text - Create floating text that reads (((Name of (Triggering player)) + : ) + (Entered chat string)) above YOURUNIT with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Replace YOURUNIT with the unit you want the text to appear above.
What you do to get an empty string is simply tap the spacebar once and press OK, and it should come out as an empty string.
This should work, because I have tested it.
 
Status
Not open for further replies.
Top