MV Yanfly Item Core: Selecting specific stats for random variance

Hey Guys,


I'm using Yanfly's item core plugin, and it's really good. I especially love the random variance function, however I'm running into issues where I only want to apply the random variance to specific stats on the item, but still have other stats on it thats are not affected by the random variance.


E.G


I want to create a shield, where it reduces the user's AGI but increases their MaxHP, Def & Mdef.


So something like:


AGI: -2


MaxHP: 25


Def: 10


Mdef: 10


I want the random variance of 10 to apply to only the MaxHP, Def, & M.Def.


At the moment it's being blanketly applied to everything and the item thats meant to slow down your attacks is speeding them up.


Is there aynway to specify in the notetags that the random variance only applies to specific attributes?


Thanks in advance
I recommend Yanfly's Item Upgrade Slots. You could accomplish what you're asking about with the following notetag the the armor / weapon that you want the effect in:
Code:
<Upgrade Effect>
MaxHP: +25
DEF: +10
MDF: +10
Random Agi: -10
</Upgrade Effect>

Using the tag "Random Agi: -10" means that when that armor is given to the player, it will pick a random Agi debuff, from 0 to -10.

***Edit*** (just noticed I got your request backwards, lol, sry about that... but what you want to do can STILL be accomplished with the Item Upgrade Slots plugin ~ see the following example):
Code:
<Upgrade Effect>
Random MaxHP: +25
Random DEF: +10
Random MDF: +10
Agi: -2
</Upgrade Effect>

In the above example, the MaxHP, DEF, & MDF bonuses will range from 0 to the listed value of each, but the Agi will be a static / constant (-2). Using Yanfly's signature "Lunatic Mode", you can REALLY get into some fully-customizable, fun (& complex) conditional perks for any weapons or armor you use with this plugin, as well.
I recommend Yanfly's Item Upgrade Slots. You could accomplish what you're asking about with the following notetag the the armor / weapon that you want the effect in:
Code:
<Upgrade Effect>
MaxHP: +25
DEF: +10
MDF: +10
Random Agi: -10
</Upgrade Effect>

Using the tag "Random Agi: -10" means that when that armor is given to the player, it will pick a random Agi debuff, from 0 to -10.

***Edit*** (just noticed I got your request backwards, lol, sry about that... but what you want to do can STILL be accomplished with the Item Upgrade Slots plugin ~ see the following example):
Code:
<Upgrade Effect>
Random MaxHP: +25
Random DEF: +10
Random MDF: +10
Agi: -2
</Upgrade Effect>

In the above example, the MaxHP, DEF, & MDF bonuses will range from 0 to the listed value of each, but the Agi will be a static / constant (-2). Using Yanfly's signature "Lunatic Mode", you can REALLY get into some fully-customizable, fun (& complex) conditional perks for any weapons or armor you use with this plugin, as well.
That's awesome, thank you!
However, does this work with weapons found in the wild, or does the player have to manually upgrade the weapon? Because I'm looking to have the weapon start out this way before the player does anything to it. I'll take a look and see if I can find that answer on my own, but if you know I would also appreciate your input.
I use DreamX's Random Equipment plugin for what you're looking for, & Yanfly's plugin (the one I previously linked) for manual upgrades. Hope that helps.
I use DreamX's Random Equipment plugin for what you're looking for, & Yanfly's plugin (the one I previously linked) for manual upgrades. Hope that helps.
Thanks! DreamX's plugin seems to be what I'm looking for, but I am struggling to make it work. The instructions are kind of hard to figure out. Could you send me a picture of one of your weapons and how you set it up in your game? I'm following the instructions, but the note tags don't seem to be working for me.
Just to be sure... you are using Yanfly's Item Core, & it's positioned above DreamX's script in your plugin list, right? Also... you aren't using Yanfly's Augment System, right? There seems to be some problems making the two scripts play nice. To that end, my current project DOES have the augment system in place, so I have my DreamX plugin disabled at the moment (sry... I had forgotten about that); it was meant to be temporary until I could find a fix, but it seems like there is no fix for it to date. I found that Yanfly's Augment System suited my needs more than DreamX's, so I left it (& some parameters on "backup weapons") in place, should I want to revert back. I could grab a screenshot of that, if you like.

Other than that, it seems like DreamX's plugin should still work with a game that is using minimal scripts. A good person to ask about this might be @ShadowDragon. He's been very helpful with me in the past, & also has experience, both in this area, & helping others with the DreamX plugin.

P.S. Sorry to put you on the spot like that, Shadow, but you have been immensely helpful to me in the past, & this struck me as an area where your wisdom could be helpful.
Just to be sure... you are using Yanfly's Item Core, & it's positioned above DreamX's script in your plugin list, right? Also... you aren't using Yanfly's Augment System, right? There seems to be some problems making the two scripts play nice. To that end, my current project DOES have the augment system in place, so I have my DreamX plugin disabled at the moment (sry... I had forgotten about that); it was meant to be temporary until I could find a fix, but it seems like there is no fix for it to date. I found that Yanfly's Augment System suited my needs more than DreamX's, so I left it (& some parameters on "backup weapons") in place, should I want to revert back. I could grab a screenshot of that, if you like.

Other than that, it seems like DreamX's plugin should still work with a game that is using minimal scripts. A good person to ask about this might be @ShadowDragon. He's been very helpful with me in the past, & also has experience, both in this area, & helping others with the DreamX plugin.

P.S. Sorry to put you on the spot like that, Shadow, but you have been immensely helpful to me in the past, & this struck me as an area where your wisdom could be helpful.
I figured it out. DreamX's plugin didn't play nice with Yanfly's Critical Control plugin, either. Luckily, that one isn't really central to my game design, so I just took it out. everything works great now. Thank you for your help!
Glad it worked out for you. Happy gaming!

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-item-core-selecting-specific-stats-for-random-variance.154975/