RPG Maker Forums

Hey guys!


I'm making a plugin that changes the price of an weapon/armor according it's basis params (HP, MP, ATK, DEF, etc). I already made the buying price, now I'm struggling to make the selling price. I'm still getting the price on database, not the new price altered by my plugin. can anyone help me? :(


The buying price code:

Code:
var _WindowShopBuy_price = Window_ShopBuy.prototype.price;
        Window_ShopBuy.prototype.price = function(item) {
        var _priceMod = newMod[8];
        for (i = 0; i < 7; i++) {
          _priceMod += item.params[i] * newMod[i];
        }
            var price = _WindowShopBuy_price.call(this, item);
            price += _priceMod;
            return price;
        };

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,470
Members
137,821
Latest member
Capterson
Top