Rule only activating once, when triggered by multiple attributes...

i want this to trigger, whenever one of the attribute values become true, so far there are 9. however after the rule has been triggered once, it no longer activates.
e.g. say "high roller" becomes true, it activates as normal. then 5 minutes later during gameplay "truly unfortunate" becomes true, nothing happens.
can't think of a way to make the rule constantly look to see if any new attributes have also become true and activate, couldn't see how to do it with the constrain attribute, and didn't want to make a rule for every single attribute either, hoping its feasible within 1 rule.
thanks
Answers
so separate conditions into separate rules for each condition
==IMO it my be best to just:
add gameAttribute … boolean type … named something like Celebrate
Rule: when
Attribute: game.Celebrate is true
-Spawn Actor
-spawn Actor
-changeAttribute: game.Celebrate To: false
and on the actor in the Rule that changes their gameBoolean to true
add a changeAttribute: game.Celebration To: true
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Instead of using booleans, I went with an index value that starts at 0 (false/locked), increases to 1 (true/unlocked), and then immediately increases to 2 (used/unlocked) so that once an attribute reaches 2, it won't trigger the spawn again.
Here's a working version... hope it's helpful: http://dl.dropbox.com/u/19602014/Check all conditions.zip
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User