07-13-2016, 09:22 AM
Can i use any loops in macros? If, while, etc. ? I don't see any of that in bbot wiki with functions and variables.
[MACRO] Loops
|
07-13-2016, 09:22 AM
Can i use any loops in macros? If, while, etc. ? I don't see any of that in bbot wiki with functions and variables.
07-13-2016, 03:59 PM
Hi,
First of all, Macro was not designed to be a kind of scripting language, so no, no native support for it. But you can archive it working with the Condition engine: Self.Health()==100 [NotHealth100] Self.Say(My life is 100) Exit() {NotHealth100} Self.Say(My life is not 100) You can use the condition to jump around the macro ([ElseLabel] {Label}). But remember: Macros are for simpler things, for more complex things it's expected to have a easier function.
but if u fully understand how conditions work u can make pretty complex and long macros ;d
like i used to do ;d My longest macro was over 250 lines, but now its useless, since thing it did is now one of bot build in fuctions
07-13-2016, 07:29 PM
07-13-2016, 09:54 PM
|
« Next Oldest | Next Newest »
|