Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: wheretheidivides on December 27, 2014, 04:21:47 PM

Title: Multi Bool [Fulfilled]
Post by: wheretheidivides on December 27, 2014, 04:21:47 PM
I'd like a action where you can set the number of bools to test (like 5) and a list pops up.  You then tell it which variable and if on or off. If all 5 are correct (wheather true or false), then a transition is implemented, if not then another transition.

So bool 1-true, bool 2-true, bool3-false, bool 4-true, bool 5-false

So it has to be TTFTF to give a 'correct'.  if any are not correct, then it give a 'not correct'.  this way, each bool does not have to be true to work.  You can set them to look for true or false for each bool.
Title: Re: Multi Bool
Post by: Lane on December 27, 2014, 04:39:24 PM
Interesting scenario. I came across this once and just ended up inverting the value of the bools I wanted to conditionally use as false, then gate the pass event with Bool All True.

Alternatively, you could check the false conditions in a second state.
Title: Re: Multi Bool
Post by: wheretheidivides on December 27, 2014, 10:51:09 PM
"Alternatively, you could check the false conditions in a second state". 

or a series of checks in different states 1 at a time.  The point is to have 1 action doing something like this.
Title: Re: Multi Bool
Post by: Ced on December 30, 2014, 09:21:09 PM
I agree that this would be extremely useful. A while back I had a situation where each possible combination of 4 bools needed a different result. It turned out much more complicated than I feel it should have been.
Title: Re: Multi Bool
Post by: rik on December 31, 2014, 01:00:54 AM
but in this condition i will use conditional operator
Title: Re: Multi Bool
Post by: Lane on December 31, 2014, 08:34:33 AM
Yes, you can use Conditional Expression for this but it is not ideal to scale up. I agree, there is use for an action like this.

Bool Multi Condition (http://hutonggames.com/playmakerforum/index.php?topic=9117.0)

Enjoy!