I want to make it so when the player reaches 10 bait the button they use to fish deactivates and they have to sell their fish, and then once they sell their fish they can keep fishing.
Use an item manager and a counter, and some buttons, then have the buttons deactivate at 10 bait.
For the second part try reactivting the button
Huh? Sorry you have to be more specific, like a lot more specific
Use a repeater to a checker, make it check if a item amount is larger then the items. Then make it deactivate the button.
Add a lifecycle, wire it to a relay, wire it to a wire repeater, and then to another wire repeater that will wire back to the first wire repeater. Wire the wire repeaters to a checker, and have it check if the player has greater than the amount you want to check minus 1. Finally, wire the checker to a wire repeater and that wire repeater to as many as you want of buttons.
Set a lifecycle and a relay with there default settings. Wire it like this:
Event occurs – Trigger Relay.
Now make a Repeater running at 0.5. It should stop on a channel. Don’t put anything in the channel. Make a checker, with your item, and make it check if it is equal to the amount. Now make it deactivate the button.
Check Passes – Deactivate Button
oops I didn’t see @VALUEX s post
Make sure to mark a solution!
A solution that doesn’t use recursion: Make an IIM edit a property. Make the property trigger the checker.
Why shouldn’t you use recursion? First, QMechs are weird, recursion runs out after 301 cycles, and it can induce lag.
Using a checker will be the easiest way.
Here’s a guide to solutions, which is what you should mark!
sorry I was asleep
What’s an IIM? And a QMech?
Yeah I had that, but it didn’t reactivate, so I need help reactivating it
IIM = Inventory Item Manager, QMech = Gimkit’s Limitations.
you can reactivate that mechanism by setting “when the check fails transmit on” to a channel that will reactivate the buttons.
Ok I will try and do it
how do you want it to reactivate?
When it like resets the number of bait in their inventory
when they reset the bait, just make a inventory item manager for bait. Now wire it so it clears the bait from inventory. Whatever happens – Clear Item. Now Make it activate the button through the same device.
An IIM is an inventory item manager. QMechs are stuff that happen really fast. Look at this post:
Can you tell me how to reactivate it after though