Thread: Gani Problems
View Single Post
  #1  
Old 10-11-2006, 09:18 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Gani Problems

Ive been trying different methods of passing along params / information to ganis.. without much success I am afraid, so now I seek help from you guys.


Script:
PHP Code:
player.attr[19] = { {2040}, {510} };
player.attr[20] = "ml_hud.gani"

Gani:
PHP Code:
SCRIPT
function onCreated()
{
  
this.health = { player.attr[19][0][0], player.attr[19][0][1] };
  
this.mana = { player.attr[19][1][0], player.attr[19][1][1] };

  
setTimer(.05);
}

function 
onTimeOut()
{
  
showimg(1"@verdana@b@" this.account SPC "HP:" SPC this.health[0] @ "/" this.health[1SPC "MP:" SPC this.mana[0] @ "/" this.mana[1], 3y);
  
changeimgzoom(1.5);
}
SCRIPTEND 
That should show the text:

HP: 20/40 MP: 5/10

next to all players.. but it dont, it only show for the current player, the text:

HP: 0/0 MP: 0/0

is shown next to all other players.


Ive also tried to pass the params with same attribute as the gani, but then the gani wouldnt even work at all.

PHP Code:
  player.attr[20] = { "ml_hud.gani"param1param2etc..}; 
I tried to use both variants WITH and WITHOUT .gani, it didnt work -at all- without it.

Any suggestions?
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote