HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Difference between Text Message and Text Message for Single player?

02-09-2003, 04:18 PM#1
FyreDaug
I don't understand the difference between them, in both you can select a player individually and use things like triggering player. Can someone explain this difference to me?
02-09-2003, 04:19 PM#2
DaKaN
sometimes using the normal text message and making it for only 1 player, it causes a disconnect, in Scio's editor using the text message for single player solves that problem
02-09-2003, 04:23 PM#3
FyreDaug
Why would it cause a desync? Isn't it pretty much the same command?
02-09-2003, 04:24 PM#4
DaKaN
Although i never had a desync problem with blizzards text message, some people say they have
02-09-2003, 04:27 PM#5
FyreDaug
How do you use the location? Should I just leave it at 0,0?

Also what will center the text? Screensize/2 for X value? People use different screensizes so I hope theres a better way.
02-09-2003, 04:29 PM#6
Scio
Code:
function DisplayTextToForce takes force toForce, string message returns nothing
    if (IsPlayerInForce(GetLocalPlayer(), toForce)) then
        // Use only local code (no net traffic) within this block to avoid desyncs.
        call DisplayTextToPlayer(GetLocalPlayer(), 0, 0, message)
    endif
endfunction

Thats the normal display text trigger, luckily blizzard had one for a single player as well, for some reason they just never enabled it:nono:

about the positions, i havent ever seen it work right, so i cant help ya on that one
02-09-2003, 04:40 PM#7
FyreDaug
So scio, if I leave it at 0,0 will it be in the normal spot?
02-09-2003, 05:26 PM#8
Scio
from my simple tests it seems like no matter what you put in it will be default output, but it might be the offset from the previous message so try doing a few quickly and see if its different