Is it possible to make a system like a Minecraft villager trading system? I want this system to work like this you cannot trade without the item is takes to trade. I want people to not be able to cheat. Is the possible and if so how do you do it?
You could use a crafting table with a sentry on the other side to make it look like a villager is trading
You would likely use a vending machine.
On the Nature of a Vending Machine: A Deeper Dive into its History of Market
Yeah, crafting table would be the way to go. It looks like a villager trade pretty similarly.
Is there a way to do this with popups?
yes, you could use a dialogue system with checkers
here’s an example:
popup (whatever call to action clicked or popup closed) -> checker (run check)
checker (check passed) -> popup (open popup, if desired)
otherwise,
checker (check passed) -> item granter (grant a negative amount of the item)
repeat this step for however many items you need
checker (check passed) -> item granter (grant item)
I’m not sure, if this would work, but editing layers and put the overlay on top of the pop-up? I am not sure
Do you mean the call-to-action button on the pop-up?
You could use Eiq’s system, that uses popups.
Simple answer:
Have a button. Put the button below the sentry. When button pressed, send a message.
A vending machine attempts to purchase when it receives the message.
If you would like a dialogue system, add a popup and call to action in between.
Please mark solution!
If I want one villager to have multiple trades, I could just repeat this process?
yes, for 2 trades, you can use both call-to-actions, but for more than 2 you need multiple popups
Use a popup, have one call to action for one vending machine and the other for another vending machine.
Or use checkers like what eiq said.
If you want more than 2 trades, make the second call to action send on a channel to open another popup.
Thank You so much! I will mark it solved.
You should mark the person who actually solved the issue as solved, instead of yourself.
Okay, Thank you for letting me know.
This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.