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.