Hi, this is a followup question to another topic I made the other day. I realized I had another question but it's a bit bigger than the other and so I think it requires its own thread.
I'm stuck on the next step of the process. I want to be able to find a specific item ID in the array, but I can't do "Array contains value" because the X and Y values can appear multiple times or be the same number. What I need is a way to compare ONLY the X axis or ONLY the Y axis, but I can't figure that out either. I need your help again, fellow Construct 2 users!
In addition, if anyone can help me figure out how to make the item craftable (as in, how to search for the value again upon clicking the craft button, then remove 1 of the item and give the new item) that would be much appreciated. But I realize that's possibly a little more in-depth than you may want to go.
The basic process would be like this:
1. Search for the appropriate item only in the first row and its amount only in the second row.
2. If it is found and the player has enough, display the craft button. In the doodle, the stuff required to craft a new item would be 8 of whatever Item #2 is.
3. When the player clicks the craft button, remove the required amount (and the item itself if the resulting value leaves the player with 0 of it).
4. After doing this, add the new item and the specified amount of it to the array wherever the next blank space is.