• 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 Text Problem

Status
Not open for further replies.
Level 6
Joined
Nov 7, 2004
Messages
48
I've been working on a Localized Chat System, all's working well except for the floating text trigger, here it is, If you find the problem please tell me.
NOTE: I used UMSWE 4.1 for this.

JASS:
Events
  Player - (Local Player) types a chat message containing. as A subtring

Conditions
  (Subtring((Entered chat string), 1, 1)) Equal to .

Actions
  Custom script:  local string udg_playername
  Custom script:  local unit udg_hero
  Floating Text - Create floating text that reads (playername + (:  + (Substring((Entered chat string), 2, 999)))) above hero with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
 
Level 10
Joined
Jul 2, 2004
Messages
690
just wait patiently.... i think you could have done the floating text using normal triggers...
 
Level 7
Joined
Feb 15, 2005
Messages
183
I have had issues with floating text before too. I had tried implementing it several times and on each time, the chance that the floating text would appear seemed purely random. Sometimes it would show, sometimes not. Given my experience with floating text and after hearing your problem, it leads me to believe that the floating text in general may be faulty, it seems like your triggers look ok. Although, there may be a limit to the number of characters in a floating text? something you may want to look into.
 
Status
Not open for further replies.
Top