View Single Post
  #8  
Old 06-02-2007, 05:57 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
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.hpthis.baddy.fullhp,
               
this.baddy.aggressor); 
In the gani this:
PHP Code:
SCRIPT
function onCreated() onTimeOut();

function 
onTimeOut() {
  
showtextthis.indexthis.x+2this.y+3,"Verdana""c",
    
params[0]);
  
showtextthis.index+1this.x+2this.y,"Verdana""c",
    
params[1] @ "/" params[2]);

  
changeimgzoomthis.index0.75);
  
changeimgzoomthis.index+10.75); 
     
if (
params[1] > params[1]/3
  
changeimgcolorsthis.index+10100.99);
if (
params[1] < params[1]/3)
  
changeimgcolorsthis.index+11100.99);
if (
params[1] < params[1]/6)
  
changeimgcolorsthis.index+11000.99); 

if (
params[3] == 0changeimgcolorsthis.index0110.99); 
if (
params[3] == 1changeimgcolorsthis.index1100.99); 
if (
params[3] == 2changeimgcolorsthis.index1000.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() {
  
showtextthis.indexthis.x+2this.y+3,"Verdana""c",
    
thiso.attr[1]);
  
showtextthis.index+1this.x+2this.y,"Verdana""c",
    
thiso.attr[2] @ "/" thiso.attr[3]);

  
changeimgzoomthis.index0.75);
  
changeimgzoomthis.index+10.75); 
     
if (
thiso.attr[2] > thiso.attr[2]/3
  
changeimgcolorsthis.index+10100.99);
if (
thiso.attr[2] < thiso.attr[2]/3)
  
changeimgcolorsthis.index+11100.99);
if (
thiso.attr[2] < thiso.attr[2]/6)
  
changeimgcolorsthis.index+11000.99); 

if (
thiso.attr[4] == 0changeimgcolorsthis.index0110.99); 
if (
thiso.attr[4] == 1changeimgcolorsthis.index1100.99); 
if (
thiso.attr[4] == 2changeimgcolorsthis.index1000.99); 

setTimer(0.05);
}
SCRIPTEND 
__________________
Deep into the Darkness peering...
Reply With Quote