Shop sells

Artille

Villager
Member
Joined
Jul 23, 2012
Messages
13
Reaction score
14
First Language
French
Primarily Uses
RMMV
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. :)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,420
Reaction score
7,709
First Language
German
Primarily Uses
RMMV
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.
 

BK-tdm

Manga Maker
Veteran
Joined
Jun 21, 2018
Messages
205
Reaction score
440
First Language
English
Primarily Uses
RMMV
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.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,861
Reaction score
5,238
First Language
Dutch
Primarily Uses
RMXP

I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

nayuta233

Warper
Member
Joined
Dec 10, 2020
Messages
1
Reaction score
0
First Language
Chinese
Primarily Uses
RMMV
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:
 

Artille

Villager
Member
Joined
Jul 23, 2012
Messages
13
Reaction score
14
First Language
French
Primarily Uses
RMMV
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. :)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,420
Reaction score
7,709
First Language
German
Primarily Uses
RMMV
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Frostorm wrote on Featherbrain's profile.
Hey, so what species are your raptors? Any of these?
... so here's my main characters running around inside "Headspace", a place people use as a safe place away from anxious/panic related thinking.
Stream will be live shortly! I will be doing some music tonight! Feel free to drop by!
Made transition effects for going inside or outside using zoom, pixi filter, and a shutter effect
I have gathered enough feedback from a few selected people. But it is still available if you want to sign up https://forums.rpgmakerweb.com/index.php?threads/looking-for-testers-a-closed-tech-demo.130774/

Forum statistics

Threads
105,995
Messages
1,018,208
Members
137,775
Latest member
yj8570
Top