the fake one
|
|
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
|
|
It's a GANI shown; usually a player attribute, but it can also be a showani. Tig recommended using a player attribute rather than a showani to me a while back.
Here's a hint; since it's a GANI, you can peek inside Era's. It was written by Skyld, and it's in use on GK and Era, so you shouldn't just copy it. Just get some "ideas" from it.
PHP Code:
GANI0001 SPRITE 0 SPRITES 24 0 16 8 sprite
SINGLEDIRECTION DEFAULTHEAD head19.png DEFAULTBODY body.png
SCRIPT function getAlignmentShadowColor(red, green, blue) { if (red > 0.75 || green > 0.75) { red2 = 0; green2 = 0; } else { red2 = 1; green2 = 1; }
return {red2, green2, blue}; }
function onCreated() { if (client.dmgdisplay) { return; }
temp.ix = 1;
this.styles = { // {checktype, textcheck, r, g, b, zoom} // check type is 1 for params[0].starts(check) // or 0 for params[0] == check {1, "+", 0, 0.3, 1, 1}, {0, "No damage", 1, 1, (client.yellow ? 0 : 1), 0.65}, {1, "-", 1, 0, 0, 1}, {0, "Dead", 1, 0, 0, 1}, {1, "*", 0, 1, 0, 1}, {1, "^", 0.2, 1, 0.2, 1} };
for (temp.i = 2; temp.i >= 0; temp.i -= 0.1) { this.alpha = (temp.i < 1 ? temp.i : 1);
showtext(temp.ix, x + 1.5, (y - 2) + temp.i, "", "bc", params[0]); changeimgvis(temp.ix, 2); changeimgzoom(temp.ix, 0.9); changeimgcolors(temp.ix, 1, 1, 1, this.alpha);
showtext(temp.ix + 1, x + 1.6, (y - 2) + temp.i + 0.05, "", "bc", params[0]); changeimgvis(temp.ix + 1, 1); changeimgzoom(temp.ix + 1, 0.9); changeimgcolors(temp.ix + 1, 0, 0, 0, this.alpha);
for (temp.style: this.styles) { if (temp.style[0] == 1) { temp.cond = params[0].starts(temp.style[1]); } else { temp.cond = params[0] == temp.style[1]; } if (temp.cond) { changeimgcolors(temp.ix, temp.style[2], temp.style[3], temp.style[4], this.alpha); changeimgzoom(temp.ix, temp.style[5]); changeimgzoom(temp.ix + 1, temp.style[5]);
this.shadow = getAlignmentShadowColor(temp.style[2], temp.style[3], temp.style[4]); changeimgcolors(temp.ix + 1, this.shadow[0], this.shadow[1], this.shadow[2], this.alpha);
break; } }
sleep(0.05); }
hideimgs(temp.ix, temp.ix + 1); } SCRIPTEND
ANI ANIEND
|
|