Shanked
2012-06-23 12:15:56
Alright, i'm not sure how many of you read my last thread on other issues, but this all revolves around a script for the troll invasion minigame.
I've got it to the point where I use atpas to locate and start the minigame as well as target the monsters, as well as target the table (The script is actually quite functional),but here is my actual question. Being new to this language and what not, I ended up making a separate function for each color (the aca) and separate functions for using tpas (which they obviously all have to do different stuff) BUT should I be/is it possible to combine these things to have less redundant script? OR is it acceptable to do them separately (In tutorials, they always name the ACA function to the color they are doing for each one, but im not sure if this a dumbed down way of showing it, or if it is the standard)
As in, can i combine all the different colors i want into one ACA function, and is it possible to do that same thing with tpas?
Bonus question:
I have a bit of experience in VB,autoit,and DM (Its a game making language), but idk, certain pieces of the syntax don't feel like they flow well for me. My question is, how would i make it if say, I search for a guy using the spiral technique (its used in most scripts i've used as learning material), how do i say, if after a certain amount of time he cant be found switch to another method of finding him? I tried just throwing an else in there like most languages, but it doesn't seem to work that way
I've got it to the point where I use atpas to locate and start the minigame as well as target the monsters, as well as target the table (The script is actually quite functional),but here is my actual question. Being new to this language and what not, I ended up making a separate function for each color (the aca) and separate functions for using tpas (which they obviously all have to do different stuff) BUT should I be/is it possible to combine these things to have less redundant script? OR is it acceptable to do them separately (In tutorials, they always name the ACA function to the color they are doing for each one, but im not sure if this a dumbed down way of showing it, or if it is the standard)
As in, can i combine all the different colors i want into one ACA function, and is it possible to do that same thing with tpas?
Bonus question:
I have a bit of experience in VB,autoit,and DM (Its a game making language), but idk, certain pieces of the syntax don't feel like they flow well for me. My question is, how would i make it if say, I search for a guy using the spiral technique (its used in most scripts i've used as learning material), how do i say, if after a certain amount of time he cant be found switch to another method of finding him? I tried just throwing an else in there like most languages, but it doesn't seem to work that way