Graal Forums  

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

View Poll Results: How do you approach a script?
Spontaniously and unplanned 14 43.75%
With a well-thought out approach 12 37.50%
Other 6 18.75%
Voters: 32. You may not vote on this poll

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-05-2010, 11:56 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
How do you approach a new script?

So, you've got a new script to do. How do you approach it?

1) OH I'VE GOT A GREAT IDEA... I don't have much of an idea how I'm going to do it, but who cares! *Opens up RC and starts scripting until something works* You often hit snags in your code and rescript entire methods over and over again as you come up with better ways to approach it.

or

2) OH I'VE GOT A GREAT IDEA... Let me think about it, plan it out and come up with something solid and then start scripting. You'll still occasionally have to rescript things or come up with new methods, but you were always one step ahead of everything.
Reply With Quote
  #2  
Old 02-05-2010, 11:59 PM
12171217 12171217 is offline
Banned
Join Date: Jan 2009
Posts: 453
12171217 has a spectacular aura about
I just say screw it and go at it.. My scripts get written twice; the initial implementation, and the optimized/unsucky one.
Reply With Quote
  #3  
Old 02-06-2010, 12:52 AM
Immolate Immolate is offline
Indigo
Join Date: Dec 2009
Posts: 322
Immolate is on a distinguished road
A bit of both really. I used to just go at it and script every system on my projects without much thought but it got ugly fast such as extremely tightly coupled systems e.g breakage of systems that should have been indepedent of the system I editted.

Now it's:

Right, is it small and indepedent enough that I can just hack away or should I really think this through?

If it's professional job outside of scripting, I always plan.
Reply With Quote
  #4  
Old 02-06-2010, 02:22 AM
cyan3 cyan3 is offline
Registered User
cyan3's Avatar
Join Date: Nov 2005
Location: England
Posts: 2,919
cyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant future
When scripting for Graal I tend to just mess around with the coding until it works, mainly because scripting for Graal is more of a pass time than a professional job but when I'm writing scripts at college I put much more thought and planning into them.
Reply With Quote
  #5  
Old 02-06-2010, 02:23 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Meh, I noticed now that I voted for the wrong thing - I usually plan my scripts out a fair bit in my head.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #6  
Old 02-06-2010, 02:37 AM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
If it's a GUI script I may sketch it in Balsamiq Mockups or on paper.

If it's going to be used by other scripts I often write down how it's going to look to the outside world (the "interface"). These notes tend to transform into documentation.

If it's something complicated I find it useful to write down what it's going to do so I don't overlook something.

On a particular GUI script I didn't know enough to plan much, so I just dumped ideas on a dedicated page of my notebook and tried a lot of things. I had to rewrite it twice.

Last edited by DrakilorP2P; 02-06-2010 at 02:47 AM.. Reason: Brevity.
Reply With Quote
  #7  
Old 02-06-2010, 03:00 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
I definitely don't plan out my GUI layouts, which I really should
Reply With Quote
  #8  
Old 02-06-2010, 03:09 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
My code is usually split up into small enough chunks to just be written on impulse and edited later if needed. I usually know at least what I want to achieve, the rest is usually just tinkering about until I find a way to get there.
__________________
Skyld
Reply With Quote
  #9  
Old 02-06-2010, 03:10 AM
Immolate Immolate is offline
Indigo
Join Date: Dec 2009
Posts: 322
Immolate is on a distinguished road
Quote:
Originally Posted by DrakilorP2P View Post
If it's a GUI script I may sketch it in Balsamiq Mockups or on paper.

If it's going to be used by other scripts I often write down how it's going to look to the outside world (the "interface"). These notes tend to transform into documentation.

If it's something complicated I find it useful to write down what it's going to do so I don't overlook something.

On a particular GUI script I didn't know enough to plan much, so I just dumped ideas on a dedicated page of my notebook and tried a lot of things. I had to rewrite it twice.
Balsamiq Mockups looks really handy. That's definitely going on my to-obtain list.
Reply With Quote
  #10  
Old 02-06-2010, 05:49 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by xXziroXx View Post
Meh, I noticed now that I voted for the wrong thing - I usually plan my scripts out a fair bit in my head.
You don't seem to plan out your poll votes though.
__________________
Reply With Quote
  #11  
Old 02-06-2010, 06:53 AM
Stephen Stephen is offline
Boom!
Stephen's Avatar
Join Date: May 2004
Location: San Francisco
Posts: 10,410
Stephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud of
I don't often do any sort of programming, but when I do I usually have the method(s) pretty well thought out.

Often, however, my method(s) has to be modified on the fly - as it is not always feasible.
__________________
Reply With Quote
  #12  
Old 02-06-2010, 07:58 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
I can probably find a hand-drawn diagram of every GUI I've ever made in the past year or so, and some plans for mostly everything complex that I've made.
__________________
Reply With Quote
  #13  
Old 02-06-2010, 01:02 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Inverness View Post
You don't seem to plan out your poll votes though.
Buttons needs to be clicked, so I tend to be a bit hasty with it.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #14  
Old 02-06-2010, 02:22 PM
maximus_asinus maximus_asinus is online now
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,751
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
When I used to script back in GS1 days, I would sit down and just start writing. I had a general idea of what I wanted the NPC to do, but usually no idea how I would go about doing it. So I'd sit and start writing, experiment with various methods, and end up with a functional yet very ugly and inefficient script (sometimes I'd leave blocks of code, or variables in my script that had no function whatsoever due to eliminated code ). I always promised to go back and rewrite some of the code but when I was coding, I was very busy with Management issues so it would never get done.
__________________
Save Classic!
Reply With Quote
  #15  
Old 02-06-2010, 06:57 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
i lose interest while planning and never end up doing anything
__________________
Reply With Quote
  #16  
Old 02-06-2010, 07:35 PM
Grey Grey is offline
Classic Developer
Grey's Avatar
Join Date: Mar 2007
Location: Wales, UK
Posts: 134
Grey will become famous soon enough
Send a message via AIM to Grey
I usually have a good plan in my head of how everything will work and connect in my head but unless I am building something extremely complex or that requires a lot of calculation I rarely write anything down.
Reply With Quote
  #17  
Old 02-06-2010, 09:57 PM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
I thought I might as well detail my choice.

I plan stuff out, but I'm always in the code window, otherwise nothing will get done. Some things only crop up when you start doing them anyways.
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 01:12 AM.


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