Project MMO

Project MMO

10M Downloads

Feature Request: Grant XP for trading with villager

Silvertide7 opened this issue ยท 5 comments

commented

Describe the solution you'd like
A way to gain XP in a skill when you make a trade with a villager. Can configure what skill xp is gained in, as well as how much xp is granted for each item or emerald that is used in the transaction, either sellling or buying.

Why is this feature needed
It would be a cool way to gain charisma (or a new skill like bartering) rather than just interacting with an entity, which can be spam clicked to oblivion and doesn't actually mean anything. This gates it behind the number of trades the villager can make a day, as well as off of the number of emeralds or items used in the transaction, either gained or lost. Maybe at a certain level of charisma you have hero of the village permanently or something. Would be a cool milestone.

Describe alternatives you've considered
None come to mind.

commented

Awesome that sounds perfect! Thanks!!

commented

I like it. There is a villager trade event and I could easily nest the trade values in the item configs. I could add GIVEN_AS_TRADE and RECEIVED_AS_TRADE to item configs.

commented

This is added. I still don't have defaults though. I would appreciate any input on that front.

commented

Awesome!! What I was planning to do at first was purely base the xp given off of the number of emeralds traded, either away or for. This seems as good a metric as any to evaluate the quality of the item bought or sold.

commented

I may add some more xp for trading for certain types of things. I'll definitely let you know / drop a config if I add more complicated stuff.