I was hoping to have a mercantile skill of some kind, that would improve by purchasing or selling. Since YEP_X_CondShopPrices allows scaling shop prices by a certain formula, all I need now is for the act of shopping to improve the skill. It simply needs to add a "use" of the skill any time an item is bought or sold in the shop.
MV [YEP_SkillMasteryLevels] gain use on shop transaction.
Javascript/Plugin SupportYou can add a plugin that edits the buy/sell methods like below (you can alias them if you want). Change actor id and skill id. Currently the uses increase based on the number bought/sold. If you want an increase of only 1, change the last lines' 'number' into 1. If you need other stuff, like more than one actor increasing the skill or if the actor doesn't have the skill at game start, you can add more lines and conditionals there.
Scene_Shop.prototype.doBuy = function(number) { $gameParty.loseGold(number * this.buyingPrice()); $gameParty.gainItem(this._item, number); $gameActors.actor(id).gainSkillMasteryUses(skillId, number);};Scene_Shop.prototype.doSell = function(number) { $gameParty.gainGold(number * this.sellingPrice()); $gameParty.loseItem(this._item, number); $gameActors.actor(id).gainSkillMasteryUses(skillId, number);};Original thread: https://forums.rpgmakerweb.com/threads/yep_skillmasterylevels-gain-use-on-shop-transaction.182372/