# How to add a score limit/quota to each level?

**URL:** <https://forums.unrealengine.com/t/how-to-add-a-score-limit-quota-to-each-level/1736842>\
**Category:** Blueprint\
**Tags:** UE-5, unreal-engine, level, level-blueprint, score, question, Blueprint\
**Created:** [March 7, 2024, 11:11pm UTC](https://forums.unrealengine.com/t/how-to-add-a-score-limit-quota-to-each-level/1736842 "2024-03-07T23:11:30Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![RetroMonroe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RetroMonroe](https://forums.unrealengine.com/u/RetroMonroe)\
**Post date:** [March 7, 2024, 11:11pm UTC](https://forums.unrealengine.com/t/how-to-add-a-score-limit-quota-to-each-level/1736842/1 "2024-03-07T23:11:30Z")

</div>

I have a game where a player will progress when they reach a certain score. For example, when the player reaches a quota of 100, they will progress to level 2. In level 2, when they reach a quota of 300, they will progress to level 3.

This is what I had initially in the First Person Character BP. It only works for one certain score for all levels. However, I want to change the score limit for each level.

 ![Screenshot 2024-03-07 140642](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/9/d094af0c1ea140c4e451a0d1289e8fdc94115cfd.png)

This is what I started doing. However, it didn’t work.

First Person Character BP

 ![Screenshot 2024-03-07 140728](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/f/5/3f554d4eb44a12ea5d9c4d236567eb8a519789c7.png)

Level BP

 ![Screenshot 2024-03-07 140701](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/1/d712382b3651a1ed1fd8d0004b4070e55a3bed82.png)

Score Widget

 ![Screenshot 2024-03-07 140743](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/b/5/7b570c0a8984d40515570fb2ccfc63dda61e5d05.png)

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [March 7, 2024, 11:49pm UTC](https://forums.unrealengine.com/t/how-to-add-a-score-limit-quota-to-each-level/1736842/2 "2024-03-07T23:49:36Z")

</div>

Hey @RetroMonroe!

This is a great use for the GameMode!

You should put your score etc into the game mode, and have all of the functionality there. To change it per level, have a variable on the game mode that would match one on the level blueprint, and on begin play of the level do "GetGameMode → cast to (nameofgamemode) → set max/point quota.

You actually want to put as little functionality on the player as possible, only pertinent things. The game experience, the rules of the game are for gameMode, and anything to do with the environment should be Level Blueprint! 🙂

---

<div class="post-metadata">

**Author:** ![RetroMonroe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RetroMonroe](https://forums.unrealengine.com/u/RetroMonroe)\
**Post date:** [March 8, 2024, 1:18am UTC](https://forums.unrealengine.com/t/how-to-add-a-score-limit-quota-to-each-level/1736842/3 "2024-03-08T01:18:26Z")

</div>

Thank you! I tried replicating what you said below. I think something went wrong, but I’m not receiving any compile errors.

First Person Game Mode BP

 ![Screenshot 2024-03-07 171536](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/4/b3433471b05b8ba07a48a11029e75d7f8fb5c634.png)

Level BP

 ![Screenshot 2024-03-07 171545](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/4/7/5479eb276fc7b2b73ad6434cfe14f1e195672c7c.png)

Widget BP

 ![Screenshot 2024-03-07 171557](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/b/c4ba9f768f8ac84598cce6a870bccfc70fe7f874.png)  
 ![Screenshot 2024-03-07 171606](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/0/210f339303f709fa3e58af2686b17673abf75d3a.png)

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [March 8, 2024, 1:54am UTC](https://forums.unrealengine.com/t/how-to-add-a-score-limit-quota-to-each-level/1736842/4 "2024-03-08T01:54:08Z")

</div>

Close! You should just need to take that event “Set Quota” off of the level blueprint and put it on the GameMode. You can make it a function instead of an event, and give it an input of Integer, and then on the level blueprint send that through the called event/function. 🙂

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/a/6/6a690075d27272db5a94680fcaa09524202c3fe9.jpeg)

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [March 14, 2024, 6:03pm UTC](https://forums.unrealengine.com/t/how-to-add-a-score-limit-quota-to-each-level/1736842/5 "2024-03-14T18:03:00Z")

</div>

Hey @RetroMonroe! Just checking in with you!

Did you find the solution, or did any of these work for you? Let us know for future answer seekers! 🙂

---

<div class="post-metadata">

**Author:** ![RetroMonroe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RetroMonroe](https://forums.unrealengine.com/u/RetroMonroe)\
**Post date:** [March 18, 2024, 12:44am UTC](https://forums.unrealengine.com/t/how-to-add-a-score-limit-quota-to-each-level/1736842/6 "2024-03-18T00:44:49Z")

</div>

Hello! Does this look more correct?

GameModeBP -

 ![Screenshot 2024-03-17 172253](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/c/5/9c52cbe343f8ed20777ce43a500f18215b6f8937.png)

 ![Screenshot 2024-03-17 172032](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/d/7/cd793d64d9de1f9d5bd78df153a8ae7b1ad097ec.png)

Level BP -

 ![Screenshot 2024-03-17 172219](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/1/4/014c9d6f40b281047978ac7ff67bf7cda9595957.png)

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [March 18, 2024, 7:18pm UTC](https://forums.unrealengine.com/t/how-to-add-a-score-limit-quota-to-each-level/1736842/7 "2024-03-18T19:18:26Z")

</div>

Hey @RetroMonroe! Almost there!

Your “SetQuota” is not setting anything, it’s checking Score vs Quota. May want to rename that “CheckQuota”.

Then I’m seeing in your LevelBlueprint that you are running this on begin play, when score should be 0 and nowhere else. Let’s move that to the event where the score changes so it checks every time score changes!

You are setting the quota using the LBP just like you should, so leave that there!

That should be all you need! 🙂

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/5/e/e5e6f44b1b01de40b314b6eba9999b6f54421fd5.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/3/9/e39330287a469d5e8d9cb7a4e515452545bf0f24.jpeg)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/4/c/94c30a9917b9df596ccb34fd05c58dd632d96ed7.jpeg)

---

<div class="post-metadata">

**Author:** ![RetroMonroe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RetroMonroe](https://forums.unrealengine.com/u/RetroMonroe)\
**Post date:** [March 18, 2024, 10:55pm UTC](https://forums.unrealengine.com/t/how-to-add-a-score-limit-quota-to-each-level/1736842/8 "2024-03-18T22:55:44Z")

</div>

It worked! Thank you so much.

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [March 19, 2024, 1:38am UTC](https://forums.unrealengine.com/t/how-to-add-a-score-limit-quota-to-each-level/1736842/9 "2024-03-19T01:38:12Z")

</div>


