Ooookay Stefan you asked me to post it.. here is everything WE NEED for the OLE.
- level.npc object this should be an multilevel array.. ie:
level.npc[npcID] = {script,of,npc,line,by,line};
so lets say NPC ID 1's script is this:
NPC Code:
function onCreated(){
player.chat="Hello!";
}
level.npc[1]=={"function onCreated(){","player.chat=""Hello!"";","}"}
Get it? So level.npc[1] would be an array of the script of that npc, where each index of the array is a line in the script.
- level.sign/link/chest object improvement currently these objects are pretty pointless.. we cant modify them and things like level.link does not even include destination level!! These objects NEED to be able to be modified serverside and all the attributes of these objects need to be loaded into the object.. link the signs x,y,w,h etc!
- level.save() function this function needs to be made so that once modifications are made to the level object (ie: signs, npc, links) the changes can be saved into the NW file.
Seriously though Stefan.. I have been trying to do all this stuff for a while and it just doesn't seem possible without it.. at least not to make all this stuff effectively.
I made a script to load the local NPC's in a level by parsing the .nw file.. but it does not work on gmaps because I use the NPC ID to find which script to load from the NW file (the ID in inside levels is the order in which they appear in the .NW file so its easy) It would be just so much easier.. and I doubt too much work on your end, to make this in the NPC-Server x-x
Not to mention that there is no way to edit levels now aside from tiles.. because you cant save* anything (savelines or anything) so I do not know how you expect us to do any of this x-x
Thanks!