• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Trigger] Floating text for one player.

Status
Not open for further replies.
Level 12
Joined
Apr 27, 2008
Messages
1,228
Create the floating text for everyone.
Hide it for everyone.
Use an if(custom script)
"Custom Script: if GetLocalPlayer()==Player(0) then"
Unhide the message
"Custom Script: endif"
P.s. this would show the message only to player 1.
 
Level 17
Joined
Jan 21, 2007
Messages
2,013
Is the custom script really necessary? I mean i did it like this:

hide (last created floating text) for (all players)
show (last created floating text) for (all players matching (owner of (killing unit)) is equal to (matching player))

Wouldn't this work?
Oh, it is for a passive ability that gives bonus gold when killing a unit, and i wanted it to show the bonus bounty besides the normal bounty this way.
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
Be sure not to show both at the same time.
No it is not necessary. That is just what show some text for some player does.
 
Status
Not open for further replies.
Top