Need help with rule - attributes combination
Hi guys!
I need a little help with my rules:
1. I have two game attributes (integers) - A and B.
2. I want to have a rule looking like this:
If:
game.A is 2
and
game.B is 4
Do something.
OR
If:
game.A is 4
and
game.B is 2
Do something.
So, in other words I want the rule to work if one of those attributes is 2 and second is 4, in any possible combination (as above). The easiest way to do it, is to make two different rules (as above). But I was wondering if there is any way to fit it into one rule.
Thank you very much for your help!
I need a little help with my rules:
1. I have two game attributes (integers) - A and B.
2. I want to have a rule looking like this:
If:
game.A is 2
and
game.B is 4
Do something.
OR
If:
game.A is 4
and
game.B is 2
Do something.
So, in other words I want the rule to work if one of those attributes is 2 and second is 4, in any possible combination (as above). The easiest way to do it, is to make two different rules (as above). But I was wondering if there is any way to fit it into one rule.
Thank you very much for your help!
Comments
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
For example, say that game.A=3 and game.B=7 then (game.A*game.B) will be 21. Your rule would test for "21" and you would know that game.A and game.B must have the combination of 3 and 7 (or 7 and 3).
Hope that helps!
RThurman
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
RThurman