Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-09-2002, 10:06 AM
gokux33 gokux33 is offline
Registered User
gokux33's Avatar
Join Date: Jul 2002
Location: Florida
Posts: 785
gokux33 is on a distinguished road
Send a message via ICQ to gokux33 Send a message via AIM to gokux33 Send a message via Yahoo to gokux33
scripts bish

Take the Script Editor.
Make it into a .exe by itsself.
Be <3ed for lyf.
__________________

Name: Wind Seablaze
E-Mail: [email protected]
10/4/02 My last day on the forums. Don't forget me. <3
Reply With Quote
  #2  
Old 09-09-2002, 10:09 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
x.X That isn't such a bad idea except for the fact that it still wouldn't have support for the NPC Server commands... and you couldn't test them except for debugging w/ the test button. So it would have VERY little purpose right now.
1) it would halt at all the NPC Server commands
2) you wouldn't know if the script worked or not... so then you just know it doesn't have any grammatical errors.
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #3  
Old 09-28-2002, 07:57 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
You should be able to set a flag that makes the editor go into ***** mode such as

//#editor.option-explicit

then it would do this if you had a script such as:
NPC Code:

//#editor.option-explicit
if (created) {
this.num = 5;
this.light = 0.5;
this.blah = 30;
for (this.i=0;this.i<this.num;this.i++) {
showimg this.bah+this.i,light2.png,x+this.i,y+this.i;
changeimgcolors this.bah+this.i,this.light,0,0,0.99;
}
}


ERROR: Undefined Variable: this.bah

Notice the spelling mistake of this.blah to this.bah.

And the editor would see that this.bah isnt set to anything, and unlike before it just sets it to 0, it would bring an error.
__________________
- R0bin
Reply With Quote
  #4  
Old 09-28-2002, 10:54 AM
SupermanJR SupermanJR is offline
Registered User
Join Date: Sep 2002
Posts: 176
SupermanJR is on a distinguished road
Re: scripts bish

Quote:
Originally posted by gokux33
Take the Script Editor.
Make it into a .exe by itsself.
Be <3ed for lyf.
If that dosent use a lot of ram, less then graal.exe, and used less cpu usage, it would be the thing i just need!
__________________
Reply With Quote
  #5  
Old 09-28-2002, 03:09 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by R0b1n-NPC
//#editor.option-explicit
But there isn't a standard way of declaring variables. Every variable that is mentioned in the script is immediately declared on loading the level, and people are used to that. So I might just let this.doobydoo use its default zero value and start manipulating it halfway through the script. It's not an error, it's just a different style. If you wanna check for similar-but-different-so-probably-misspelled names then just open the debugger and look through the listings.
__________________
Reply With Quote
  #6  
Old 09-29-2002, 12:02 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
A better approach would be
WARNING: Variable "this.blah" is never used!
Or a quick and dirty variable listing window...that'd be handy, another pane for it, maybe on the left side opposite the commands.rtf pane...as you type in a new variable, it adds it to the list of variables, doubleclick a variable to do a search for it automatically...so if you finish your script and realise you have i, this.i, and thisi, you can go directly to the ones you didn't intend and correct them.
In a standalone editor, this would be /very/ handy...
Hey, wasn't there a guy in Bugs or something making a level editor?
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #7  
Old 09-29-2002, 12:40 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Tyhm
Or a quick and dirty variable listing window...that'd be handy, another pane for it, maybe on the left side opposite the commands.rtf pane...as you type in a new variable, it adds it to the list of variables, doubleclick a variable to do a search for it automatically...so if you finish your script and realise you have i, this.i, and thisi, you can go directly to the ones you didn't intend and correct them.
Agreed, that'd be good. Still possible through the debugger, of course, but this'd be so much quicker.
__________________
Reply With Quote
  #8  
Old 09-29-2002, 12:43 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
I don't know if making the script editor as an exe by itself would work, sure, you can make scripts easier with the potential extra features, but you can't test them :-\.
__________________
Reply With Quote
  #9  
Old 09-29-2002, 12:52 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Googi
I don't know if making the script editor as an exe by itself would work, sure, you can make scripts easier with the potential extra features, but you can't test them :-\.
This is pretty much my concern too.
__________________
Reply With Quote
  #10  
Old 09-29-2002, 01:33 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
Quote:
Originally posted by Tyhm
Hey, wasn't there a guy in Bugs or something making a level editor?
Yeah AmonRa, who wont send it to me
__________________
- R0bin
Reply With Quote
Reply


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 07:58 PM.


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