Jump to content

Recommended Posts

Posted

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. 

Posted (edited)
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 by HalestormXV
Posted (edited)

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 by HalestormXV
Posted
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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.