If youre going to try and tackle a bot, theres a few things you need to figure out before you start.
How are you going to get the information (and keep it updated) are there prompts? that you can set? will you have to keep typing something to get the information?
Second, What triggers what you want? Are you going to be killing something, then moving on a preset route? or more freeform roaming? What exactly are you going to be doing?
The second bit leads itself to pseudocode, which is a step up from flowcharting. For a beginner, you might want to figure out the second stuff, the first stuff should be pretty cut and dry. Figure out the second bit, whether its drawing it on paper, or whatever, but youll probably want it to be modular, have an "explore" routine, a "battle" routine, and whatnot.
However, you cant script MC like you would other programs, since you need to allow for the client to accept other input, and things like that. There are ways around this, such as having a "mode" variable. It does complicate things, but figuring stuff out like that comes after you actually figure out how youre going to make the bot behave.
Edit:
Also, if youre completely new to scripting, you might not want to use javascript, unless you already know JS. More people in these forums know VBScript, so youll be able to get more help in VBscript. Of course, if you have some sort of reason youre using JS, then that might influence your decision. |