I’ve tried to set this up a couple times and haven’t figured out a structure that works in Bubble.
We’ve got groups that can define challenges.
The user can do activity that passes a challenge, earning the associated reward.
The challenges can reference each other.
For example, this is what I’m trying to setup at the moment
- users can check in to a group, then check out, the total time is recorded
- groups can create multiple challenges, each with an amount of time
- a challenge can have a condition that it’s only earned after another challenge is earned
Normally I would just use iteration to check the user’s recorded activity against each challenge to see if any of them pass, but I’m not sure how to do iteration in Bubble.
I’d like to find a way to keep the conditions generic so that we can create new ones in the future, such as a geographic location, or another user’s activity.