State that reduces item prices?

KrimsonKatt

The Endless
Veteran
Joined
Nov 12, 2016
Messages
188
Reaction score
76
First Language
English
Primarily Uses
RMMV
Hello. So in my game there is an ability system and one the abilities is "spendthrift," inspired by Fire Emblem Fates. It is an ability that allows you to reduce shop prices by 25%. Does anyone know how to incorporate this into a state? Thank you.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,528
Reaction score
14,259
First Language
English
Primarily Uses
RMVXA
That would require a plug-in as the prices are set up in the engine, and there is no feature to implement that would affect the prices at all.

Moved to Plug-in Requests

 

GachaPringle

Potato Chip Master
Member
Joined
Aug 15, 2020
Messages
3
Reaction score
0
First Language
English
Primarily Uses
RMMV
Hello. So in my game there is an ability system and one the abilities is "spendthrift," inspired by Fire Emblem Fates. It is an ability that allows you to reduce shop prices by 25%. Does anyone know how to incorporate this into a state? Thank you.
One thing I can think of is making every single shop have a conditional branch that checks if an actor has a certain state. For example:
1607374933864.png
This certainly isn't the most efficient way but it works. You would have to go through every shop and edit it to do this so it's not recommended if you have a bunch of shops and don't like to work out 25% of everything.

That would require a plug-in as the prices are set up in the engine, and there is no feature to implement that would affect the prices at all.
EDIT: I know this is under plugin requests but this is how you can do it without plugins. So you don't have to go to every corner of the internet to find a plugin to do so. Sorry if I'm not of any use.
 

Attachments

Last edited:

estriole

Veteran
Veteran
Joined
Jun 27, 2012
Messages
1,315
Reaction score
536
First Language
indonesian
Hello. So in my game there is an ability system and one the abilities is "spendthrift," inspired by Fire Emblem Fates. It is an ability that allows you to reduce shop prices by 25%. Does anyone know how to incorporate this into a state? Thank you.
my plugin here can do that... it's written for MZ... but i think this should work too in MV because both have the same method...

if you want to check actor 1 have state 28 (example 28 is spenddrift state id)
i think you can tag your item with
<buy_formula>
a.actor(1).isStateAffected(28)? oprice * 0.75 : oprice
</buy_formula>

you can also add more complex formula as long as you left the final result to be a number...
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
2,938
Reaction score
1,044
First Language
Dutch
Primarily Uses
RMMV
you can also check if it's possible with BO_CustomShops which allow JS for shops,
so it's possible to create the effect by switch or state :)
 

KrimsonKatt

The Endless
Veteran
Joined
Nov 12, 2016
Messages
188
Reaction score
76
First Language
English
Primarily Uses
RMMV
@estriole Okay, I'm using your plugin. It seems to work fine so far, but hopefully it doesn't completely break my game. But we have to wait and see.
 

estriole

Veteran
Veteran
Joined
Jun 27, 2012
Messages
1,315
Reaction score
536
First Language
indonesian
@estriole Okay, I'm using your plugin. It seems to work fine so far, but hopefully it doesn't completely break my game. But we have to wait and see.
hopefully because the plugin only modify 2 method :D... and those two method have the same exact code in MV and MZ... that's why i think it should work in MV too :D...

so hopefully nothing broken... finger crossed :D.
 

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,992
Messages
1,018,195
Members
137,773
Latest member
Kirakirna
Top