Shop sells

Hello,

Is there a way to call for an event when the player is selling objects?

When the user sell a potion, it's always half the price of the price mentionned in the objects list.
I'd like to change that, or maybe call an event to make something happen, like a text dialogue.

Haven't found anything that could do this, and I'm not great with scripting.

Thanks for your help. 🙂
no, but you can make two shop processing commands in an event with different prices and then switch between them on whatever condition you set.
You can manually sell via events

ConditionalBranch: IF->player has potion-> text:sell? choice:Y/N-> when Y-> potion-1 Gold+X

The default pricing for selling items to npcs is hardcoded and you would need a plugin to override the "sells for half the price" thing.

I've moved this thread to MV Support. Thank you.

The essential way is to use the script or write ur own plugin, but it costs more time. However, the original attribute in the conditional branch is sometimes not enough to solve a specific problem:hsad:
It wasn't MV specific, I'm actually using MZ.

I thought general discussions was an appropriate section, my bad.

You can manually sell via events

ConditionalBranch: IF->player has potion-> text:sell? choice:Y/N-> when Y-> potion-1 Gold+X

The default pricing for selling items to npcs is hardcoded and you would need a plugin to override the "sells for half the price" thing.

Thanks, I did think of this method aswell, but it would have been easier to edit the shop instead of making events every time.

However, it seems it's not possible otherwize (or with scripts), so I'll use this method. 🙂
it seems it's not possible otherwize
it is possible, but it would need a dedicated plugin to change the way shop processing works.
and for most people that is simply too much for a minor effect.

it would be different if it were combined with other shop features for an advanced shop plugin, but that hasn't happened yet either.
It wasn't MV specific, I'm actually using MZ.

I thought general discussions was an appropriate section, my bad.
Moving to MZ then.
General discussion is not appropriate for support questions.

Original thread: https://forums.rpgmakerweb.com/threads/shop-sells.130796/