Results 1 to 6 of 6

Thread: A Simple Tool

  1. #1
    Join Date
    Dec 2011
    Posts
    484
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Lightbulb A Simple Tool

    Read these tutorials. v They will tell you almost everything you need to know about scripting.

    http://villavu.com/forum/showthread.php?t=58935
    http://villavu.com/forum/showthread.php?t=564
    http://villavu.com/forum/showthread.php?t=19162
    http://villavu.com/forum/showthread.php?t=372
    http://villavu.com/forum/showthread.php?t=47374

    Hello, I'm Grihmm and I wanted to share with you an easy little mind tool to help get yourself focused on what you need to do to script. It isn't terribly brilliant or insightful, but doing this always helps make it clear what is needed.

    Basically, you write down every little thing you want your script to actually DO, breaking it down into the little parts that make it a whole. This can sometimes be difficult because things like simply moving the mouse and clicking are second nature to us internet users. We don't give it a thought.

    `````````````````````````````````````````````````` ```````````````

    Let's use a Powerminer as an example.

    Generally, we want a Powerminer to do the following:
    1. Mine the rock
    2. Drop rocks.

    Simple, right? Well not quite. Let's break it down. Open up a blank notepad and write down:

    1. Mine the rock
    Well, to mine the rock you have to
    1a. Find the rock
    1b. Move the cursor to the rock
    1c. Click the rock
    1d. Wait until it is done

    See how many steps that has? Something that you or I can do without thinking has to be explained down to the littlest detail to SIMBA.

    2. Drop rocks
    To drop rocks you have to
    2a. Find the ore in the inventory
    2b. Move the cursor to the ore
    2c. Right click the ore
    2d. Select "drop"

    Again, lots of steps to explain how to do one thing.

    `````````````````````````````````````````````````` `````````````

    That's all there is to it. Just write down what you actually need your script to do, and figure out how to code each little part at a time. It helps to keep things clear in your mind and give you a focus. Also, after you finish each little part you get a small feeling of accomplishment. You can keep telling yourself "That's one part done! Only a few left!" It keeps you from getting discouraged as a new scripter.

  2. #2
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Good post! You're right on the money about breaking down a script into smaller parts and tackling each one individually, that's great advice. I can surely agree with your strategy and how it aids the development of a script in progress.

    Nice job.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  3. #3
    Join Date
    Dec 2011
    Posts
    484
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you. This really helped/helps me. I thought it would be good for someone to read who doesn't understand how computers work.

  4. #4
    Join Date
    Oct 2011
    Location
    Chicago
    Posts
    3,352
    Mentioned
    21 Post(s)
    Quoted
    437 Post(s)

    Default

    Nice post

    This doesn't only pertain to Simba all coding is like this! It isn't as bad as it sounds.




    Anti-Leech Movement Prevent Leeching Spread the word
    Insanity 60 Days (Killer workout)
    XoL Blog (Workouts/RS/Misc)

  5. #5
    Join Date
    Oct 2008
    Posts
    196
    Mentioned
    1 Post(s)
    Quoted
    20 Post(s)

    Default

    Excellent tutorial. I which this had been here when I joined. what I usually did was just get straight into scritping without planning a structure. A simple script took me a day to write :S

    Nice tutorial keep it up

  6. #6
    Join Date
    Jul 2012
    Location
    System 32
    Posts
    47
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Excellent beginner tips, thanks for the info!

    One thing I might add that I learned the hard way... Keep your parentheses and brackets CLOSED!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •