Hello everyone o/
www.yanfly.moe
So I've got Yep Core engine plugin which allows me to set a limit to how many items or in this case, equipment the player can buy by placing the notetag <Max Item: 1>
I'm using this for Dungeon equipment (weapons, armour, leg gear) that can only be brought once.
It works fine buuuuuut.
Obsidian sword, brought, bought can't buy again. Shop won't let me purchase this again.
I go equip Obsidian sword, but now it's equipped, I can purchase it again as I think the plugin sees that it's not in my inventory anymore so it think it's can be brought again.
So I know the plugin can detect if it's in the players inventory so I would like a snippet to allow the plugin to check to see if the item is equipped also.
if it helps, the item can't be sold either, so once brought, that's it, can't be brought again nor sold.
Thank you everyone.
---------------
Quick update, I'm using Yeps shop core as well and from what the shop menu scene is telling me is possession is 0 when the item is equipped.
Core Engine (YEP) - Yanfly.moe Wiki
So I've got Yep Core engine plugin which allows me to set a limit to how many items or in this case, equipment the player can buy by placing the notetag <Max Item: 1>
I'm using this for Dungeon equipment (weapons, armour, leg gear) that can only be brought once.
It works fine buuuuuut.
Obsidian sword,
I go equip Obsidian sword, but now it's equipped, I can purchase it again as I think the plugin sees that it's not in my inventory anymore so it think it's can be brought again.
So I know the plugin can detect if it's in the players inventory so I would like a snippet to allow the plugin to check to see if the item is equipped also.
if it helps, the item can't be sold either, so once brought, that's it, can't be brought again nor sold.
Thank you everyone.
---------------
Quick update, I'm using Yeps shop core as well and from what the shop menu scene is telling me is possession is 0 when the item is equipped.