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.
State that reduces item prices?
JS Plugin RequestsThat 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
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:
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.
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.
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...
EST - PRICE FORMULA MZ
■ Information ╒══════════════════════════╛ EST - PRICE FORMULA MZ Version: 1.0 By Estriole File name: .js ■ Introduction ╒══════════════════════════╛ This script make us able to create formula for item / equip price. for example item like seltzer from star ocean where it become more...
forums.rpgmakerweb.com
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...
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 🙂
so it's possible to create the effect by switch or state 🙂
@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 😀... and those two method have the same exact code in MV and MZ... that's why i think it should work in MV too 😀...
so hopefully nothing broken... finger crossed 😀.
Original thread: https://forums.rpgmakerweb.com/threads/state-that-reduces-item-prices.130732/