Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-04-2006, 04:06 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Rawr.. things needed for the OLE

Ooookay Stefan you asked me to post it.. here is everything WE NEED for the OLE.
  1. 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.
  2. 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!
  3. 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!

Last edited by Warcaptain; 06-04-2006 at 04:59 AM..
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 01:22 PM.


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