Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 12-16-2008, 07:16 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
Quote:
Originally Posted by LoneAngelIbesu View Post
What error are you experiencing? You never mentioned.
oh, sorry

Well, it's cutting out scripts, here's the original level
HTML Code:
NPC - 49 17
this.join("env-tree");
NPCEND
NPC era_image-tree-02.png 18 49
this.join("env-tree");
NPCEND
NPC - 35 43
this.join("env-tree");
NPCEND
NPC - 23 33
if (playerchats&&strequals(#c,:in)) {
playerx=22.5;
playery=33;
}
if (playerchats&&strequals(#c,:out)) {
playerx=30;
playery=30;
}
NPCEND
NPC era_flower-1_1a.png 30 33
function onCreated() {
  this.item = "Yellow_Mum";
  this.join("env-flower");
}
NPCEND
NPC era_flower-1_1a.png 30 35
function onCreated() {
  this.item = "Yellow_Mum";
  this.join("env-flower");
}
NPCEND
NPC era_flower-1_1a.png 35 35
function onCreated() {
  this.item = "Yellow_Mum";
  this.join("env-flower");
}
NPCEND
NPC era_flower-1_1a.png 35 35
function onCreated() {
  this.item = "Yellow_Mum";
  this.join("env-flower");
}
NPCEND
NPC era_flower-1_1a.png 35 35
function onCreated() {
  this.item = "Yellow_Mum";
  this.join("env-flower");
}
NPCEND
NPC era_flower-1_1a.png 35 35
function onCreated() {
  this.item = "Yellow_Mum";
  this.join("env-flower");
}
NPCEND
NPC - 37 53
this.join("env-outsidemall");
NPCEND
NPC - 57 59
this.join("test_treadmill");
NPCEND
NPC - 54 52
function onCreated() {
  this.setShape(1, 112, 64);
  this.join("shop_seashells");
}
//#CLIENTSIDE
function onCreated() {
  this.setShape(1, 112, 64);
}
NPCEND
NPC - 56 49
if (created) {
  showcharacter;
  setcharprop #3,head42.png;
  setcharprop #C0,black;
  setcharprop #C1,black;
  setcharprop #P1,era_rare-pinkNoLand.png;
  setcharprop #C2,pink;
  setcharprop #C3,darkblue;
  setcharprop #C4,pink;
  setcharprop #8,body16.png;
  setcharprop #n,Sarah;
  setcharprop #2,no-shield.gif;
  dir = 2;
  setcharani idle,;
}
NPCEND
NPC - 0 0
function onCreated() {
  this.addItem();
  this.rupees += 30;
}
NPCEND
Here's what it outputs...
HTML Code:
NPC - 49 17
this.join("env-tree");
NPCEND
NPC era_image-tree-02.png 18 49
this.join("env-tree");
NPCEND
NPC - 35 43
this.join("env-tree");
NPCEND
NPC - 23 33
}
  this.join("env-flower");
NPC era_flower-1_1a.png 35 35
  this.item = "Yellow_Mum";
}
NPCEND
this.join("env-outsidemall");
NPC - 57 59
NPCEND
function onCreated() {
  this.join("shop_seashells");
//#CLIENTSIDE
  this.setShape(1, 112, 64);
NPCEND
if (created) {
  showcharacter;
  setcharprop #3,head42.png;
  setcharprop #C0,black;
  setcharprop #C1,black;
  setcharprop #P1,era_rare-pinkNoLand.png;
  setcharprop #C2,pink;
  setcharprop #C3,darkblue;
  setcharprop #C4,pink;
  setcharprop #n,Sarah;
  dir = 2;
}
NPC - 0 0
  this.addItem();
  this.rupees += 30;
}
NPCEND
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 05:56 PM.


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