• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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
 
just wait patiently.... i think you could have done the floating text using normal triggers...
 
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.
Back
Top