tigrotto wrote: Mon Oct 16, 2017 1:26 pm
Are commands @Flag and @NotFlag supposed to work also with multiple flags like
@Flag(flag1, flag2) Do this
@NotFlag(flag1, flag2) Do this
I just did a couple of test with both command and they work but could you confirm, just to be sure?
Thanks.
Bye
EDIT
Tried also with 3 flags inside the @Flag(...) command and it worked. So I assume it also works with multiple flags.
yes i modified them some patches ago to be able to use them with multiple choices.
There is also another flag command too that you probably are not aware of (if you hadn't read them in the patch notes since they are not in the command guide, which is way older :D):
@FlagOr() - Check multiple flags and will read the line if any of them are present.
For example, @FlagOr(Flag1, Flag2) - If Flag1 or Flag 2 exists, then Tease AI will read the line
So to summarize:
@flag(a,b,c) will read only if a,b and c are all active
@flagor(a,b,c) will read if any of a,b,c are active
@notflag(a,b,c) will read only if a,b and c are all not active