Hello everybody.
A while ago I had the issue of trying to have the game check whether or not a player actually has enough items for a sidequest. For this, someone on here helpfully wrote a short line of code for me that allows me to check with an IF function if the player actually has the items required for the sidequest after they select the dialogue option for turning the items in.
This should result in the below line playing when the player has 6 or more of database item 44 in their inventory.
Here is the database item in question. I gave myself 99 of the item in question to test the quest out; However, the IF-function always returns a negative, as if I had less than 6 of the item in question, even though I have 99. What part of the code is wrong?
A while ago I had the issue of trying to have the game check whether or not a player actually has enough items for a sidequest. For this, someone on here helpfully wrote a short line of code for me that allows me to check with an IF function if the player actually has the items required for the sidequest after they select the dialogue option for turning the items in.
This should result in the below line playing when the player has 6 or more of database item 44 in their inventory.
Here is the database item in question. I gave myself 99 of the item in question to test the quest out; However, the IF-function always returns a negative, as if I had less than 6 of the item in question, even though I have 99. What part of the code is wrong?