playMaker

Author Topic: Multi Bool [Fulfilled]  (Read 3312 times)

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
Multi Bool [Fulfilled]
« 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.
« Last Edit: December 31, 2014, 08:37:57 AM by Lane »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Multi Bool
« Reply #1 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.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
Re: Multi Bool
« Reply #2 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.

Ced

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Multi Bool
« Reply #3 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.

rik

  • Full Member
  • ***
  • Posts: 246
Re: Multi Bool
« Reply #4 on: December 31, 2014, 01:00:54 AM »
but in this condition i will use conditional operator

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Multi Bool
« Reply #5 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

Enjoy!
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D