plugins involved:
Item Core (YEP)
Attachable Augments (YEP)
So, I'm trying to make a system involving improving independent item stats based on the augment attached. Items that are acquired come with an augment that dulls and can be fixed/improved by blacksmiths. I want this augment to be applicable globally to all weapon types, so it's important that it only improves the item's stats rather than the player's ones.
For some reason, when I use 0.2 instead of 0.4 it seems to work. But when I increase by 0.4 and anything else, it stacks the independent item parameters rather than the base. The parameter value I've been modifying for tests is 10, so with 0.2 it goes to 12, but with 0.4 goes to 11, then 9, 8, 7, and stays at 6.
Item Core (YEP)
Attachable Augments (YEP)
So, I'm trying to make a system involving improving independent item stats based on the augment attached. Items that are acquired come with an augment that dulls and can be fixed/improved by blacksmiths. I want this augment to be applicable globally to all weapon types, so it's important that it only improves the item's stats rather than the player's ones.
In weapon/armor notetag
<On Creation Eval>
ItemManager.applyAugmentEffects($dataWeapons[1], $dataItems[181+$gameVariables.value(X)], 3, 1);
</On Creation Eval>
(where X = smithing level)
In augment notetag
<Augment Attach Eval: Quality>
item.params[2] += Math.round(baseItem.params[2]*0.4);
</Augment Attach Eval: Quality>
<On Creation Eval>
ItemManager.applyAugmentEffects($dataWeapons[1], $dataItems[181+$gameVariables.value(X)], 3, 1);
</On Creation Eval>
(where X = smithing level)
In augment notetag
<Augment Attach Eval: Quality>
item.params[2] += Math.round(baseItem.params[2]*0.4);
</Augment Attach Eval: Quality>
For some reason, when I use 0.2 instead of 0.4 it seems to work. But when I increase by 0.4 and anything else, it stacks the independent item parameters rather than the base. The parameter value I've been modifying for tests is 10, so with 0.2 it goes to 12, but with 0.4 goes to 11, then 9, 8, 7, and stays at 6.