HTML Code:
SCRIPT
function onPlayerEnters()
{
temp.messageText = player.attr[11];
with(findimg(10))
{
attachtoowner = true;
layer = 2;
x = player.x - random( -0.5, -1);
y = player.y - random( -1, -0.1);
with (emitter)
{
continueafterdestroy = true;
nrofparticles = 1;
emitautomatically = false;
with (particle)
{
lifetime = 0.75;
text = temp.messageText;
mode = 1;
red = 0;
blue = 0;
green = 1;
style = "b";
alpha = 1;
zoom = 0.95;
particle.angle = pi / 2;
particle.speed = 1;
}
addlocalmodifier("range", 0.375, 0.875, "alpha", "replace", 1, 0);
addlocalmodifier("range", 0.1, 0.75, "speed", "replace", 4, 2);
emit();
}
}
}
SCRIPTEND
Should work