How do i compare the amounts of items each person has?

Here:

Item Granter’s Settings:
Item = Bait
Amount = -1
Item Granter’s Blocks:
Give Player (Property You want to Compare) amount of item
Broadcast on “Start Comparison”
→ Checker (Check if item amount is 0)

If amount is 0, (check passes) then broadcast on “Finished”
If check fails, then broadcast on “Keep Going”
Make a trigger receive on “Finished”
It should set “Still Going?” (Default True, global scope) to False in the blocks
Make another Item Granter Block, this time receiving on “Keep Going”.

If (Still Going? = True)
then grant player selected item and broadcast on “Start Comparison”
Nothing else

Now, you could switch the still going thing to a number property and get to track more things, like the differences between the properties.

1 Like