• 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] Whats wrong??

Status
Not open for further replies.
Level 17
Joined
Jun 28, 2008
Messages
776
Whats wrong with this trigger ?

  • Player Group - Pick every player in Player_Damage and do (Actions)
    • Loop - Actions
      • Custom script: if ( GetLocalPlayer() == Player( GetEnumPlayer() ) ) then
      • Floating Text - Create floating text that reads (String((Damage taken))) above (Triggering unit) with Z offset 0.00, using font size 9.00, color (100.00%, 0.00%, 0.00%), and 20.00% transparency
      • Floating Text - Set the velocity of (Last created floating text) to 120.00 towards 90.00 degrees
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the lifespan of (Last created floating text) to 1.00 seconds
      • Custom script: end if
I used the GetLocalPlayer function to only show the floating text to the players in the player group but I get syntax errors.

I have no idea if this is going to work so if you know an easier way to
only show floating text to some players please tell me.

Thanks in advance.
 
Status
Not open for further replies.
Top