View Single Post
  #1  
Old 01-05-2006, 10:17 PM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
Showani question

Is it possible to make showani have different attiributes (head, shield, etc) than the npc that calls it?

What i want is one npc which uses showani and shows 2 differnt npc's.

Something like this:

NPC Code:
if (created) {
// Initialize the attributes
showcharacter;
setcharprop #3,head0.png;
setcharprop #C0,orange;
setcharprop #C1,white;
setcharprop #C2,blue;
setcharprop #C3,red;
setcharprop #C4,black;
setcharprop #2,shield1.gif;
shieldpower = 1;
dir = 2;
showani 100,x+4,y,6,idle;
setcharprop #3,head10.png;
setcharprop #C0,cynober;
setcharprop #C1,yellow;
setcharprop #C2,white;
setcharprop #C3,black;
setcharprop #C4,white;
setcharprop #2,shield1.gif;
showani 101,x+6,y,6,idle;
}



That's just a basic example. I want this for a tailor script. I want to display quite a few possible outfits using showani but have them shown at once. Then have the player click on them.

I have the basis of it done but got stuck because i can only show one outfit using the weapon npc. When you do setcharprop (or this.attribute = whatever) it updates every showani with the new attributes.

Is it possible to show 2 different outfits using the weapon npc?

Thanks.
Reply With Quote