Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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 08:23 AM.


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