playMaker

Author Topic: Multiple variables check  (Read 3086 times)

numz

  • Playmaker Newbie
  • *
  • Posts: 2
Multiple variables check
« on: January 23, 2013, 06:24:27 PM »
Hi,
i'm new on playmaker.

I'm trying to check multiples variable for a quest game on trigger enter.

For exemple :
the player should collect :
100 coins
3 bottles
5 bags

If he had collected all the objects, i load a level, otherwise i set GUI text.
Is there a action to do that ? With variable number of objects to collect ?

Thanks

tofusoup

  • Playmaker Newbie
  • *
  • Posts: 30
Re: Multiple variables check
« Reply #1 on: January 23, 2013, 09:49:44 PM »
You would have a state or multiple states that check each int var (I assume you trigger the check through an NPC, as well as when you complete each task).  For example, if you collect 100 coins, set some bool to true.  Then in check quest state you can use "bool all true" to check if each one has been completed, then set your quest var to true.

There's a lot of ways to do it...not sure if this is the best.

numz

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Multiple variables check
« Reply #2 on: January 24, 2013, 02:49:38 AM »
Thank you,

i've just discovered the "bool all true".
I'm trying with this solution.