View Single Post
  #1  
Old 09-05-2005, 06:16 PM
Silent Silent is offline
<3
Silent's Avatar
Join Date: Mar 2005
Location: England
Posts: 132
Silent is on a distinguished road
Send a message via AIM to Silent Send a message via MSN to Silent
Question Showcharacter colors[5]?

There is a documented "colors[5]" - on a normal Graal body, it doesn't exist.

Okay, I can live with (seemingly) useless values, but it seems serverside showcharacter npcs need it. For example, this shows up as the default no-colors-set character (red and black outfit with orange skin):
NPC Code:
function onCreated() {
showcharacter();
head = "head0.png";
body = "body.png";
colors[0] = "orange";
colors[1] = "white";
colors[2] = "blue";
colors[3] = "red";
colors[4] = "black";
nick = "Placeholder";
shield = "shield1.gif";
shieldpower = 1;
dir = 2;
}


This, however:
NPC Code:
function onCreated() {
showcharacter();
head = "head0.png";
body = "body.png";
colors[0] = "orange";
colors[1] = "white";
colors[2] = "blue";
colors[3] = "red";
colors[4] = "black";
colors[5] = "";
nick = "Placeholder";
shield = "shield1.gif";
shieldpower = 1;
dir = 2;
}


Displays correctly. Why?

Not sure if this should be in the Tech Support section, move it if you like o.O
__________________
Quote:
Originally Posted by MilkyWay0016
The Bible also says things like...

"Stone disobedient children" (Deuteronomy 21:18-21)
Quote:
Originally Posted by Loriel
Disobedient children are likely enough to get stoned already, I think.
Reply With Quote