Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-10-2007, 05:59 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
A couple of script requests

It would be nice if we could request and send the text contents of a file with commands like:
requesttext("file", filename)
sendtext("file", filename, contents)

Also, I would like to see something like:
npc.origx and npc.origy
Where we could get the original x and y of an NPC.

I think these should be rather simple to implement, and with this done I could come up with a pretty decent online level script editor.
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.

Last edited by napo_p2p; 02-10-2007 at 06:21 AM..
Reply With Quote
  #2  
Old 02-10-2007, 06:04 AM
Bl0nkt Bl0nkt is offline
Era Developer
Bl0nkt's Avatar
Join Date: Mar 2005
Location: Pennsylvania
Posts: 1,589
Bl0nkt will become famous soon enough
Send a message via AIM to Bl0nkt
function onCreated() {
this.originx = x;
this.originy = y;
}
Reply With Quote
  #3  
Old 02-10-2007, 06:18 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally Posted by Bl0nkt View Post
function onCreated() {
this.originx = x;
this.originy = y;
}
Yes, but I made these suggestions with a script in mind (online level link editor). If I decide to release it (and implemented the way you've suggested), then it would mean all npcs would need that bit of code in it.

The origx, origy thing isn't totally needed (I could still generate some type of dropdown menu given the text contents of a file), but having it would make things more like the offline level npc editor.
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #4  
Old 02-10-2007, 06:20 AM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by napo_p2p View Post
Yes, but I made these suggestions with a script in mind (online level link editor). If I decide to release it (and implemented the way you've suggested), then it would mean all npcs would need that bit of code in it.

The origx, origy thing isn't totally needed (I could still generate some type of dropdown menu given the text contents of a file), but having it would make things more like the offline level npc editor.


Wouldn't be a difference, really.


When you move an NPC, simply save its position before moving it, which in turn would be your original coordinates.


You'd have to a bit more elaborate to explain exactly why you couldn't do it this way.
Reply With Quote
  #5  
Old 02-10-2007, 06:20 AM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
Quote:
Originally Posted by napo_p2p View Post
Yes, but I made these suggestions with a script in mind (online level link editor). If I decide to release it (and implemented the way you've suggested), then it would mean all npcs would need that bit of code in it.

The origx, origy thing isn't totally needed (I could still generate some type of dropdown menu given the text contents of a file), but having it would make things more like the offline level npc editor.
This sounds really good napo. Stefan! Make it happen! *2 Finger Snaps*
__________________


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
Reply With Quote
  #6  
Old 02-10-2007, 06:26 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally Posted by Gambet View Post
You'd have to a bit more elaborate to explain exactly why you couldn't do it this way.
If you take a look at a .nw level in notepad, NPCs' x and y are listed by their starting x and y.

If I wanted to go up to some random NPC and edit it online, I would need its original x and y to be able to pull out it's script.

I'd like to state again that the origx,origy feature isn't totally needed, but the request/send text one would be great to have.
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #7  
Old 02-10-2007, 07:21 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
The original position is mainly required for editing local npcs?
Reply With Quote
  #8  
Old 02-11-2007, 02:49 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally Posted by Stefan View Post
The original position is mainly required for editing local npcs?
That's what I would use it for, yes. However, it is not required, but I think that it would allow for an online local/level NPC editor that acts like the offline one. And perhaps for gmap support, throw in original level.
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
Reply

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:18 PM.


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