Warcraft III resources & community, 2003–2006 · archived

Floating Text Problem

8 posts
#1

Floating Text Problem

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.


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
#2
anyone there?
#4
just wait patiently.... i think you could have done the floating text using normal triggers...
#5
The floating text trigger itself cannot use normal WE because the event uses (local player), but the action could be copied in regular WE, yet it still won't work, because I had tried it with player 1 event and had similar results.
#6
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.
#7
Looks like I have to use select all units within a certain radius and display a text message to the owners instead for my Localized Chat System.
#8
I'm not ceertain about that, Iam just speculating. Maybe someone who know more abot floating text will be of more help to you.