Guide taken from Emera on another webside (note: these will only work online and set a character with its looks):
Graal Editor
After you've opened your editor, you'll need to click the baddies,npcs,chests radio button on the far right panel. This will bring you to the NPC menu. From there we can drag and drop NPC's from the pane to the level. We're not going to be using the "noob" looking NPC though. This is scripted in GS1, and Graal currently uses GS2. Drag the outlined NPC character to the left of the "noob" on to the level.
pic1_1.jpg
As soon as you've dragged the NPC, the script editor window will appear. You will need to remove everything in the text box so it's blank and copy in the code in the image. Now, after you've done that you can edit the code so the NPC will look how you would like it to look. Edit the lines that say this.<feature> so that the NPC will be wearing what you want it to wear. this.attr[1] is the hat image. The lines that say this.colors[0] for example are the sleeves, coat, belt, shoes and skin colour of your NPC. They use this format.
colors[0] = hands
colors[1] = body
colors[2] = sleeves
colors[3] = shoes
colors[4] = belt
pic2.png
Gonstruct
After you've opened Gonstruct, you'll need to click the Tools tab on the far right pane in the editor. This will bring you to the NPC's pane. From there, you'll need to click New NPC. This will create a new NPC in the level.
pic3.jpg
After that, you'll need to double click the NPC to open up the script editor. Copy the script in the image into the script editor and edit the lines so the NPC looks how you'd like it to look as you are told in the Graal Editor tutorial. Edit the lines that say this.<feature> so that the NPC will be wearing what you want it to wear. this.attr[1] is the hat image. The lines that say this.colors[0] for example are the sleeves, coat, belt, shoes and skin colour of your NPC. They use this format.
colors[0] = hands
colors[1] = body
colors[2] = sleeves
colors[3] = shoes
colors[4] = belt
pic4.jpg
NPC Code
PHP Code:
//#CLIENTSIDE
function onCreated() {
showCharacter();
this.body = "body1.png";
this.head = "head1.png";
this.shield = "shield1.png":
this.attr[1] = "hat1.png";
this.colors[0] = "red";
this.colors[1] = "blue";
this.colors[2] = "green";
this.colors[3] = "purple";
this.colors[4] = "black";
this.ani = "idle";
this.chat = "Hello Graalians!";
}