|
Varia Developer
|
 |
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
|
|
i tried it with params and with attr, and I had no luck here's what I did both times.
params try:
in the class part:
PHP Code:
setcharani( "nir_baddy_idle", this.baddy.nick, this.baddy.hp, this.baddy.fullhp, this.baddy.aggressor);
In the gani this:
PHP Code:
SCRIPT function onCreated() onTimeOut();
function onTimeOut() { showtext( this.index, this.x+2, this.y+3,"Verdana", "c", params[0]); showtext( this.index+1, this.x+2, this.y,"Verdana", "c", params[1] @ "/" @ params[2]);
changeimgzoom( this.index, 0.75); changeimgzoom( this.index+1, 0.75); if (params[1] > params[1]/3) changeimgcolors( this.index+1, 0, 1, 0, 0.99); if (params[1] < params[1]/3) changeimgcolors( this.index+1, 1, 1, 0, 0.99); if (params[1] < params[1]/6) changeimgcolors( this.index+1, 1, 0, 0, 0.99);
if (params[3] == 0) changeimgcolors( this.index, 0, 1, 1, 0.99); if (params[3] == 1) changeimgcolors( this.index, 1, 1, 0, 0.99); if (params[3] == 2) changeimgcolors( this.index, 1, 0, 0, 0.99);
setTimer(0.05); } SCRIPTEND
in the attr try I did this
class part:
PHP Code:
thiso.attr[1] = this.baddy.nick; thiso.attr[2] = this.baddy.hp; thiso.attr[3] = this.baddy.fullhp; thiso.attr[4] = this.baddy.aggressor;
Gani:
PHP Code:
SCRIPT function onCreated() onTimeOut();
function onTimeOut() { showtext( this.index, this.x+2, this.y+3,"Verdana", "c", thiso.attr[1]); showtext( this.index+1, this.x+2, this.y,"Verdana", "c", thiso.attr[2] @ "/" @ thiso.attr[3]);
changeimgzoom( this.index, 0.75); changeimgzoom( this.index+1, 0.75); if (thiso.attr[2] > thiso.attr[2]/3) changeimgcolors( this.index+1, 0, 1, 0, 0.99); if (thiso.attr[2] < thiso.attr[2]/3) changeimgcolors( this.index+1, 1, 1, 0, 0.99); if (thiso.attr[2] < thiso.attr[2]/6) changeimgcolors( this.index+1, 1, 0, 0, 0.99);
if (thiso.attr[4] == 0) changeimgcolors( this.index, 0, 1, 1, 0.99); if (thiso.attr[4] == 1) changeimgcolors( this.index, 1, 1, 0, 0.99); if (thiso.attr[4] == 2) changeimgcolors( this.index, 1, 0, 0, 0.99);
setTimer(0.05); } SCRIPTEND
|
__________________
Deep into the Darkness peering...
|
|