KoLmafia Guide: An Introduction to Scripting
In this lesson, I am going to show you several scripts that I made. These are SIMPLE scripts with very limited logic and fairly well commented code. I'll go through quite a few things and show you how to do them, so that you can easily use them as a base and modify them as needed.
COOL NEW FEATURE: Go to General, Preferences, General. At the bottom there is an External Script Editor. Fill in whatever editor you want to use. (For windows, I'd go with c:\Windows\NOTEPAD.exe). Then you can easily edit a script by holding down shift and clicking it in the 'Scripts' pulldown menu!
It really is not all that difficult to steal code snippits from others and make simple scripts that can simplify your life significantly.
Another thing to note is that you create scripts INCREMENTALLY. You get the first pass of the script working... then you maybe add more complexity. Or you add an additional check. Or whatever. The bottom line is that you don't want to be overwhelmed and expect to get it all working on the first pass.
Continue to Post-Lesson 1: Your first Script, Automatically Buffing Up