Posted August 5, 20178 yr Just curious to know if there is a way to detect if a player has traded with a Village. I am trying to write something that will change/record some info but only if the player has traded with a village.
August 5, 20178 yr Author 5 hours ago, diesieben07 said: Are you trying to detect whether the player has ever traded before or whether they have traded with one specific villa before? ever traded. So they find any villager and make a trade with any villager -> X hapens. It wouldn't be linked to the specific villager they traded with. Edited August 5, 20178 yr by HalestormXV
August 5, 20178 yr Author Excellent and I am imagining that stat gets adjusted by +1 every time a successful trade has been made correct? I'd test on my own but I am actually away from my code at this time. Edited August 5, 20178 yr by HalestormXV
August 6, 20178 yr Author 1 hour ago, diesieben07 said: Yes. Now last question. Is there possibly a more efficent way to do this then what I have in my mind. In my mind I am thinking of Subscribing to an onLivingUpdate that checks if that value has changed and if it has then it will execute my code. However, that is always running every tick so I worry about efficency and resources, or is there so little impact that it shouldn't matter too much?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.