View Single Post
  #1  
Old 06-02-2007, 05:50 AM
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
Archetypes with Gani Script

I have a gani script and I'm trying to load archetype variables. But it doesn't work.

PHP Code:
SCRIPT
function onCreated() {
  
this.baddyname "Default";
  
getBaddy();
  
onTimeOut();
}

function 
getBaddy() {
  
this.baddy.loadVars(
  
format("archetypes/baddies/%s.arc"this.baddyname));  
}

function 
onTimeOut() {
  
showtextthis.indexthis.x+2this.y+3,"Verdana""c",
    
this.baddy.nick);
  
showtextthis.index+1this.x+2this.y,"Verdana""c",
    
this.baddy.hp "/" this.baddy.fullhp);

  
changeimgzoomthis.index0.75);
  
changeimgzoomthis.index+10.75); 
     
if (
this.baddy.hp this.baddy.hp/3
  
changeimgcolorsthis.index+10100.99);
if (
this.baddy.hp this.baddy.hp/3)
  
changeimgcolorsthis.index+11100.99);
if (
this.baddy.hp this.baddy.hp/6)
  
changeimgcolorsthis.index+11000.99); 

if (
this.baddy.aggressor == 0changeimgcolorsthis.index0110.99); 
if (
this.baddy.aggressor == 1changeimgcolorsthis.index1100.99); 
if (
this.baddy.aggressor == 2changeimgcolorsthis.index1000.99); 

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