# Conditional Button should not require "Infinite Resources" turned off in Island Settings in order to count Consumables. Or, please mention in the docs.

**URL:** <https://forums.unrealengine.com/t/conditional-button-should-not-require-infinite-resources-turned-off-in-island-settings-in-order-to-count-consumables-or-please-mention-in-the-docs/1256121>\
**Category:** Feedback & Requests\
**Tags:** fortnite-creative, unreal-editor-for-fortnite, fortnite\
**Created:** [August 9, 2023, 10:09pm UTC](https://forums.unrealengine.com/t/conditional-button-should-not-require-infinite-resources-turned-off-in-island-settings-in-order-to-count-consumables-or-please-mention-in-the-docs/1256121 "2023-08-09T22:09:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fresnella](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fresnella/32/735700_2.png) [@Fresnella](https://forums.unrealengine.com/u/Fresnella)\
**Post date:** [August 9, 2023, 10:09pm UTC](https://forums.unrealengine.com/t/conditional-button-should-not-require-infinite-resources-turned-off-in-island-settings-in-order-to-count-consumables-or-please-mention-in-the-docs/1256121/1 "2023-08-09T22:09:01Z")

</div>

Edit:

if unchecking “Infinite Resources” is required for the Conditional Button to work as expected (again, Infinite Resources is checked “on” by default for all new islands), could creators at least get a heads up about that in the official docs page for the device? [Currently it’s not mentioned](https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-conditional-button-devices-in-fortnite-creative). It just says “without the specified item, the Conditional Button does not trigger” @Wertandrew pointed out that this has been the case for a while, so if it’s gonna be the case for the future I think the docs should include it.

* * *

Original Post:

By default, if you have “Infinite Resources” checked in your Island Settings (which is the default setting), the Conditional Button will always activate and never fail for any Key Item that is labeled a “Resource” in Fortnite. This happens no matter how many of that item shows in the player’s inventory. This appears to be because the button considers the player to have an infinite number of all Resources, such as Acorns used for crafting, not just Building Resources like Wood. GetItemCount() in Verse returns the maximum number 2147483647. Basically, this renders the Conditional Button useless for crafting by default.

Multiple creators have posted confusion about this. My guess is that most creators and players assume “Infinite Resources” only applies to Building Resources like Wood, not Consumables like Acorn that are used for activities like crafting. In the player’s inventory, the infinity sign shows next to Building Resources to indicate that they are infinite, but it shows a finite, accurate number of other Resources. This means your inventory could show that you have zero Acorns, but the Conditional Button acts like you have infinite Acorns - there is a mismatch. For Consumables that are not labeled as Resources, like Keycards, the Conditional Button works fine.

For some creators, unchecking Infinite Resources is a fix for the Conditional Button. However, other creators can’t uncheck Infinite Resources because they want infinite Building Resources for their gameplay.

Here are four related bug reports about this. Likely there are additional affected creators who didn’t report it.

> [@Normal - Conditional Button devices do not consume key items that are ingredient resources (Resolved)](https://forums.unrealengine.com/t/normal-conditional-button-devices-do-not-consume-key-items-that-are-ingredient-resources-resolved/776448):
>
> A Conditional Button device does not consume the key items if they are a resource ingredient, like “Cube Monster Parts”, even with “Consume Key Items” checked. It will only consume the item if it is something that shows up in the players inventory bar. The player is still allowed to trigger the button with the key item, but it is not consumed.

> [@Conditional button doesn't work with consumables](https://forums.unrealengine.com/t/conditional-button-doesnt-work-with-consumables/1250863):
>
> I’ve tried adding keys and planks to a conditional button but it doesn’t work - I can interact with it even without the items in my inventory. It does work fine with keykards though. Is this a bug or I am doing something wrong?

> [@Major - Conditional Button stopped working since latest update](https://forums.unrealengine.com/t/major-conditional-button-stopped-working-since-latest-update/1244152):
>
> The conditional button since the new update isn’t working as intended. When you drag it into the scene it does not work as expected. Missing Items text does not appear. Not Enough Items Event does not trigger. On Activated Event triggers on first interaction, even if the condition of Key Item required is not met I’ve also a previous project with conditional buttons in, and they seem to work. I can duplicate them no problem. However, tested in a completely empty project and not working at all. …

> [@Am I the only one to have all the conditions button that can be activated at anytime without the required items ?](https://forums.unrealengine.com/t/am-i-the-only-one-to-have-all-the-conditions-button-that-can-be-activated-at-anytime-without-the-required-items/1240303):
>
> Am I the only one to have all the conditions button that can be activated at anytime without the required items ?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/7/2/672bf0bd4e23ba6dd152932e6cb7bb00b69585b7.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/9/d/d9d710e44b4a3fadab7569ee1391dfde4c07be19.jpeg)

---

<div class="post-metadata">

**Author:** ![Wertandrew](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wertandrew/32/916192_2.png) [@Wertandrew](https://forums.unrealengine.com/u/Wertandrew)\
**Post date:** [August 11, 2023, 2:42pm UTC](https://forums.unrealengine.com/t/conditional-button-should-not-require-infinite-resources-turned-off-in-island-settings-in-order-to-count-consumables-or-please-mention-in-the-docs/1256121/2 "2023-08-11T14:42:11Z")

</div>

Heh, that’s an oldie. If fixed, it ll break Creative maps, but if not it ll break the minds of new Creators.

Double-edged sword and the like

---

<div class="post-metadata">

**Author:** ![Fresnella](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fresnella/32/735700_2.png) [@Fresnella](https://forums.unrealengine.com/u/Fresnella)\
**Post date:** [August 11, 2023, 7:04pm UTC](https://forums.unrealengine.com/t/conditional-button-should-not-require-infinite-resources-turned-off-in-island-settings-in-order-to-count-consumables-or-please-mention-in-the-docs/1256121/3 "2023-08-11T19:04:03Z")

</div>

Oh thanks, good to know. So this was a thing pre-UEFN too? I can’t imagine any gameplay reasons why a creator would want crafting items to count as infinite (but not show in inventory as infinite), can you?

If the Conditional Button has required “Infinite Resources” turned off in the Island Settings in order to work as expected, and likely will in the future, I would at least like to see that mentioned in written docs page for the Conditional Button Device. Currently there’s no mention of Infinite Resources. [Conditional Button Devices](https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-conditional-button-devices-in-fortnite-creative)

I’m gonna add that to the body of this post. The docs request.

---

<div class="post-metadata">

**Author:** ![Nman\_Pkr](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nman_pkr/32/1194697_2.png) [@Nman\_Pkr](https://forums.unrealengine.com/u/Nman_Pkr)\
**Post date:** [August 11, 2023, 10:03pm UTC](https://forums.unrealengine.com/t/conditional-button-should-not-require-infinite-resources-turned-off-in-island-settings-in-order-to-count-consumables-or-please-mention-in-the-docs/1256121/4 "2023-08-11T22:03:08Z")

</div>

What could be done to fix this would be to allow creators to choose what resources are actually infinite. This would allow for backwards compatibility, while also keeping new developers sane. 🙂

---

<div class="post-metadata">

**Author:** ![Fresnella](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fresnella/32/735700_2.png) [@Fresnella](https://forums.unrealengine.com/u/Fresnella)\
**Post date:** [August 12, 2023, 11:08pm UTC](https://forums.unrealengine.com/t/conditional-button-should-not-require-infinite-resources-turned-off-in-island-settings-in-order-to-count-consumables-or-please-mention-in-the-docs/1256121/5 "2023-08-12T23:08:21Z")

</div>

You mean in the Island Settings, where the Infinite Resources option is? Makes sense to me. I’m still not sure why anyone would want resources other than the ones you build with to be infinite 😆 but maybe some people do.

---

<div class="post-metadata">

**Author:** ![Rhakys11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rhakys11](https://forums.unrealengine.com/u/Rhakys11)\
**Post date:** [January 25, 2024, 8:16am UTC](https://forums.unrealengine.com/t/conditional-button-should-not-require-infinite-resources-turned-off-in-island-settings-in-order-to-count-consumables-or-please-mention-in-the-docs/1256121/6 "2024-01-25T08:16:10Z")

</div>

Wow thank you for this, I could not figure out why GetItemCount was acting up like that.  
O Why Epic, why?

---

<div class="post-metadata">

**Author:** ![WhiteColumns](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/whitecolumns/32/568668_2.png) [@WhiteColumns](https://forums.unrealengine.com/u/WhiteColumns)\
**Post date:** [April 29, 2024, 7:48pm UTC](https://forums.unrealengine.com/t/conditional-button-should-not-require-infinite-resources-turned-off-in-island-settings-in-order-to-count-consumables-or-please-mention-in-the-docs/1256121/7 "2024-04-29T19:48:04Z")

</div>

Thank you so much! This totally solved my problem - I was totally lost at sea, and thought UEFN was broken or something!
