Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hey, so I've added some item requirements for some text to show up. But the text only shows up if the item requirements are 0. 

When I set the requirements to: Switch 43 on, item 37 min 2, max 2. The text won't show up in the menu. It works fine when the requirement is only a switch.

The requirements are set as AND type. If you have Switch 43 on AND you have two (2) of item 37, then the text should show. Are these requirements met?

They are, yes. I made sure of it and tested it multiple times. The item part won't work on conjunction with the switch, unless the item number is 0.

(1 edit)

I was looking through the code, and I think that line is the error. The code is checking for weapons there instead of items, I think.


Edit: That was indeed the issue, once I changed it to $dataItems, it started working as expected.

(+1)

It was patched in v3.2