HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

DisplayTextToPlayer and DisplayTextFromPlayer

09-07-2007, 02:24 PM#1
Troll-Brain
I know the DisplayTextToPlayer is faster to use to DisplayTextFromPlayer.
Cause the difference of two letters xD

But does someone know a more interesting difference ?
09-07-2007, 02:41 PM#2
moyack
If you use DisplayTextFromPlayer., you can do this:

Collapse JASS:
function message takes nothing returns nothing
    call DisplayTimedTextFromPlayer(Player(0), 0,0,5, "All the units controlled by %s are teh best!!")
endfunction
Will show a message like this:

Quote:
All the units controlled by WorldEdit are teh best!!
09-07-2007, 02:46 PM#3
Troll-Brain
%s is a string handle ?
09-07-2007, 02:48 PM#4
MaD[Lion]
its a formatted string
09-07-2007, 03:00 PM#5
Troll-Brain
and how can i get them ?
09-07-2007, 03:13 PM#6
moyack
As far as I know, there is only that keyword "%s" is to get the player name in that function.
09-07-2007, 03:15 PM#7
Troll-Brain
ok thx, that's a shame
09-07-2007, 03:36 PM#8
MaD[Lion]
maybe %d is the player number ^^
09-07-2007, 03:46 PM#9
Troll-Brain
or not
09-07-2007, 03:50 PM#10
Vexorian
Hey, when did we find this out?
09-08-2007, 12:00 AM#11
The Elite
How DO people find stuff like this out?
09-08-2007, 12:07 AM#12
Tide-Arc Ephemera
Quote:
Originally Posted by The_Elite
How DO people find stuff like this out?

Look in Game Play Interface.