Dekita's Statistic control and Vlue's Randomization

I'm using these two scripts and found an incompatibility, which I'm unable to fix. Due to Dekita's script, assigning stats to weapons and armors needs to be used via notetags, the normal boxes in the databases doesn't work. That's not a problem for normal items, I can assign them the appropriate notetags with numbers I want them to increase or decrease. There is a small problem when generating random affixes however using Vlue's randomization script.

When generating a random affixed item, they increase the stats by a random number, so I can't use the notetags from the statistic script, as I cannot predict what number will be generated.

I need a compatibility for this i assume, which will notetag the generated items for me with the proper stats. Or the script to use the modified stats in Dekita's script so I don't need to notetag the items whatsoever.

In the picture I provided you can see a generated weapon. In its description, you can see several randomly generated stats, however, when I want to equip it, it doesn't change the stats of the actor, due to Dekita's script modifying the stats.

Dekita Statistic control

Vlue weapon/armor randomization

Picturehttps://imgur.com/a/sM9vV
Try to add this snippet below Dekita's script:
Spoiler
Code:
class Game_Actor < Game_Battler

  def param_plus_equips_pars(pid)
    equips.compact.inject(0) {|r, i| r += i.pars[pid] + i.params[pid] }
  end
 
end
This will make the randomized stats properly added to the actor's stats, but there is a side effect here too.
The parameters from the database will now be added too (from the equipment's default parameter settings), so you either use those note-tags from Dekita's script to set the equipment's base parameters OR use the default database editor, but do NOT use both, or else they both will count.
I suggest you set all parameters in the database editor to 0, and use Dekita's note-tags on all equipment. That, or just use the default database editor if you don't need higher than +/-500 from a stat on an equipment, and use the note-tags on the stats only if they need to go higher/lower.
Thank you Sixth, it works 🙂

However, why it adds an additional one point to the MAT stat? Ivemade pictures, ive set the MAT to +3, however, in the game, it adds +4 points of it? Even if I don't use Vlue's randomization script, and use your param description addon for it, it just says +3 to MAT, however it adds +4 points?

Picture 1

Picture 2
No idea.
One possibility is that the actor got some +X% MAT from a feature from somewhere (another equipment, state, actor, class or some custom feature).
Yes, I was testing this with a priest class actor, and he has +140% MAT as a feature, however I thought that it just increased his MAT by +40%, not all equipments will be modified by it. It looks like I've learned something new today.
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/dekitas-statistic-control-and-vlues-randomization.84246/