PDA

View Full Version : A Simple Tool



Grihmm
01-02-2012, 10:23 AM
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.

Flight
01-02-2012, 10:38 AM
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. :)

Grihmm
01-02-2012, 10:56 AM
Thank you. :) This really helped/helps me. I thought it would be good for someone to read who doesn't understand how computers work.

[XoL]
01-02-2012, 03:26 PM
Nice post :)

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

HT BaaFly
01-02-2012, 03:42 PM
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

Etrnl Fear
07-25-2012, 02:45 PM
Excellent beginner tips, thanks for the info! :)

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