#  How do I set up conditions for ticketed games?

**URL:** https://community.thunkable.com/t/how-do-i-set-up-conditions-for-ticketed-games/294674
**Category:** Questions about Thunkable X
**Created:** [October 29, 2019, 10:53pm UTC](https://community.thunkable.com/t/how-do-i-set-up-conditions-for-ticketed-games/294674 "2019-10-29T22:53:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jmcreator1](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@jmcreator1](https://community.thunkable.com/u/jmcreator1)
#### Post date: [October 29, 2019, 10:53pm UTC](https://community.thunkable.com/t/how-do-i-set-up-conditions-for-ticketed-games/294674/1 "2019-10-29T22:53:02Z")

</div>

Initially, x tickets are given, and I want to stop the game when it reaches 0 tickets. What features should I put in this case? I am using a label by hand, but a limit is felt.

---

<div class="post-metadata">

### Author: ![jane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jane/32/27575_2.png) [@jane](https://community.thunkable.com/u/jane)
#### Post date: [October 29, 2019, 10:58pm UTC](https://community.thunkable.com/t/how-do-i-set-up-conditions-for-ticketed-games/294674/2 "2019-10-29T22:58:01Z")

</div>

Hi there,

Does your app work something like this:

- Start with some tickets
- Spend a ticket every time you play the game
- When you are out of tickets, you can’t play the game (and you have some system for earning more tickets)

This is not very different in effect to having a timer in your app. You have a number, it’s counting down, and when the number is at 0 the game is over.

If you check out this [Thunkable Clicker app](https://x.thunkable.com/copy/f037aa63f7970673d36e74cd90e7cf34), you can see how the game ends when the timer expires.

Where this app refers to a variable called ‘time’, you can use a variable called ‘tickets’. Instead of reducing this variable by 1 when a Timer fires, do this when the user starts a new game.

Let me know if you have any questions about this!

Jane

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 12:08pm UTC](https://community.thunkable.com/t/how-do-i-set-up-conditions-for-ticketed-games/294674/3 "2024-11-08T12:08:31Z")

</div>


