Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-28-2006, 08:06 AM
SilentOne1988 SilentOne1988 is offline
Banned
Join Date: Feb 2006
Posts: 67
SilentOne1988 is on a distinguished road
Changing a showani's head and attribs? (GS2)

This code doesn't seem to work, I need to show several gani's at once, each with differant heads and attributes. Am I doing something wrong?
NPC Code:

for (i=0;i<3;i++){
if (this.chars[i][0] != 0){
showani(302+i*2,this.xcen+12+20*i,this.ycen+50,2,
"ci_body-idle",this.chars[i][1],this.chars[i][6],
this.chars[i][3],this.chars[i][2],this.chars[i][5],
this.chars[i][4]);
changeimgvis(302+i,6);
showtext(303+i*2,this.xcen+12+20*i,this.ycen+100," arial",
"",this.chars[i][10]);
changeimgvis(303+i*2,6);
changeimgzoom(303+i*2,.5);
with (findimg(302+i*2)){
head = thiso.chars[i][7];
attr[1] = "";
attr[2] = "";
attr[1] = "ci_body-legs.png";
attr[2] = "ci_body-basic" @ thiso.chars[i][8] @ ".png";
}
}
}



fixed.... actor.attr, actor.head, etc.

Last edited by SilentOne1988; 02-28-2006 at 08:35 AM..
Reply With Quote
  #2  
Old 02-28-2006, 02:34 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
PHP Code:
with (findimg(302+i*2)) {
  
playerlook false;
  
actor.head thiso.chars[i][7];
  
actor.attr[1] = "";
  ...

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:07 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.