HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

DisplayTimedText natives

01-07-2007, 08:20 PM#1
DioD
Collapse JASS:
call DisplayTimedTextFromPlayer(Player(0),0,0,3,"FROM")
call DisplayTimedTextToPlayer  (Player(0),0,0,3,"TO"  )

any one know what difference between this functions?
01-08-2007, 04:02 AM#2
rulerofiron99
I'm no jass user, but for the sake of adding replies to this thread I'd say that the first one sends a message to all and the second one to only one player.
01-08-2007, 04:12 AM#3
Vexorian
Nice random guess. Please don't do it again... ... to be fair, if blizzard actually avoided to give functions pretty random and off topic names your guessing skills would be more useful (This reminds me IsPointPathable returns true when the point is not pathable and viceversa!)

The only thing I can say is that blizzard.j seems to have a tendency to use the From one when Localized strings are involved
01-21-2007, 05:03 PM#4
DioD
hehe i got it

Code:
call DisplayTimedTextFromPlayer(whichPlayer, 0, 0, 60,"%s")

will print player name

this is auto format function it will convert parsed player to string eg paste its name to string

and much more

Code:
    call DisplayTimedTextFromPlayer(whichPlayer, 0, 0, 60, "%s %i %i %i")

you will see nice random integers
01-21-2007, 05:55 PM#5
iNfraNe
Wow, thats... really useless.
01-21-2007, 08:18 PM#6
Vexorian
It is not that bad
01-22-2007, 09:52 AM#7
Toadcop
DioD Cool ! REP +