Inventory (table) issue - Need help
Hey sorry to bother you! I managed to make an inventory for my game but I have an issue.
When I press my item and add it to the inventory it works great.. all work fine etc and it even put the correct item in empty slot.
BUT when I click the item in the inventory, it change the slot attribute to image none and that is great but when I then later add an item again it cannot add to empty spots if an item is next to it.
Check picture.
the blue XX are items I "used" and when adding it adds to the blue XX but stops adding when it should add to the red XX spots.
What is the issue?
Comments
@KIIVIIN the above looks ok, the issue is probably in the routine determining the next available slot. Could you post that?
here is the slot rule for empty spots
Yeah that doesn't look like it's tracking what is empty where.
I'll make a demo for you today.
Thank you!
I made some videos they are uploading now.
thank you!!
One question, If I use a timer to add +10 to an table integer row/collum. Is there a way to make it stop when it hits lets say 100? because when using "if table..." there is only options is, are not etc. I dont know how to make it "if table row/collum >100"
Where can I find the videos? Checked the guru channel found nothing yet
You can do that by using the "numeric expression" in a rule.
I managed to make this by max/min
thank you anyways!
@KIIVIIN
here is a little project, it simplifies the process.
Two rules and two behaviors to manage it all.
Project is attached.
Final video is processing. Will be posting soon.
I used a loop for the table search but I see you used table search. Nice touch! I didn't use any Spawning and mine only needs one numeric value to define an item across the code.
@Lost_Oasis_Games thanks, yep, the tableSearch function is often overlooked, yet it is very powerful and fast since it scans the whole table in one draw frame.
Yes that didn't even occur to me..lol
tableSearch is amazing! Especially since you can use a tableSearch within a tableSearch!