I suggest you use a GANI to display the nicknames. You an do much more with a GANI than you can with that. That is what we use on Lexia. Here is a bare bone system.
NPC Code:
SPRITE 0 SPRITES 0 0 24 12 shadow
SCRIPT
function onPlayerEnters() {
setTimer(0.05);
}
function onTimeOut() {
ShowingNicknames();
setTimer(0.05);
}
function ShowingNicknames() {
with(findImg(2)) {
text = player.nick;
x = player.x + 1.5;
y = player.y + 3.4;
style = "bc";
layer = 0;
mode = 1;
}
}
SCRIPTEND