| Twinny |
04-17-2012 01:28 AM |
Quote:
Posted by Dude1310
(Post 96886)
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!"; }
This code contains many errors. I do not know how to fix this in leveleditor, as of i am a new level creator. Please rewrite the code, make sure you fix all the errors, and repost it. THX(:
|
Actually, this code is correct GS2. However, this will not run in level editor as previously stated above as level editor can only handle GS1, an archaic procedural language. In order to see the character NPC, you will need to upload this level to a Graal Server.
If you need to see the character offline, place a template character from the official Level Editor and simply modify the present values. Since this template is GS1, it will show.
Emera, I will add that you need to specify shieldpower otherwise it will not function properly.
|