Ah ok, if you need it for a standalone script, yes my idea won't work. I though you needed it for a personality, so my idea could be useful because you could re-use it in every script you needed to check for the presence of the glitters.tigrotto wrote: ↑Fri Oct 27, 2017 8:57 am Sorry but I don't think your solution would work, probably I didn't explained my problem correctly(or I didn't understand your solution... ).
The script I'm talking is BlackJerk 6.0. It has a 50% chance to call the 3 Glitter; but it doesn't make sense to call someone who's already present in the chat, so I need something(a flag like you suggested for example...) that tells my script who's present and who's not and then, if necessary, it will call who's missing. So this flag should have already been created before opening BlackJerk.
Your idea with the @Group is brilliant, i think it is the only way to achieve that.
But i don't see why you need to also use flags...groups phrases are already filtered depending on who is present, so you can just do a phrase for each possible group and add them in there like this:
@Group(D) @AddContact1 @AddContact2 @AddContact3
@Group(D1) @AddContact2 @AddContact3
@Group(D2) @AddContact1 @AddContact3
@Group(D3) @AddContact1 @AddContact2
@Group(D12) @AddContact3
@Group(D13) @AddContact2
@Group(D23) @AddContact1
I think this already sums up all the possible combinations with no need to do complex stuff with flags that seems to be unnecessary to me (but i don't know your script, so maybe they are needed for something else)