Problem with attach augments

Hi, I'm using the plugin attach augments from yanfly, I want to block the use of the same augment on the same equipment but in another slot. But I can not, could anyone help me?

I've moved this thread to Plugin Support. Thank you.



Hope this helps.


(I think I may need to make topics for all my plugins so peeps can find them...)


Hope this helps.


(I think I may need to make topics for all my plugins so peeps can find them...)

Thank you so much, you saved my life. I sound like a newbie still hehe
LoL
We all were at some point.
Happy to help.
can I put 2 constraints of different type in the same augment?

I have 4 tiers of augments of various types. ex: atk 10%, atk 20%, atk 30%, atk 40%. for these put type 1 works properly, however I need q tier 3 and 4 have restriction with tier 3 and 4 another type of augment. ex: 10% mhp, 20% mhp, 30% mhp, 40% mhp. mhp I put it as type 2. I tried to execute as follows:
<Augment: subst>

atk: +30%

</Augment: subst>

------------------------------------------

<augRestrictType: 1, 93>

------------------------------------------

<Augment Attach Eval: subst>

$gameParty.addAugmentRestrictType(item, 1);

</Augment Attach Eval: subst>

<Augment Detach Eval: subst>

$gameParty.removeAugmentRestrictType(item, 1);

</Augment Detach Eval: subst>

------------------------------------------

<Augment Attach Eval: subst>

$gameParty.addAugmentRestrictType(item, 93);

</Augment Attach Eval: subst>

<Augment Detach Eval: subst>

$gameParty.removeAugmentRestrictType(item, 93);

</Augment Detach Eval: subst>
<augRestrictType: 1, 93>
Objects can only have one augment restriction at a time.

So while you can only do one augment at a time, there's no limit to how many restrictions are activated at once.
So for your example, you might have these Augments:
atk+1
atk+2
atk+3
atk+4
mag+1
mag+2
mag+3
mag+4

Of these, you can only have 1 stat type and 1 +3 or +4 item.
While a little tedious, the easiest way to solve this with my plugin as is would be to split the augment types.

atk+1 = restrict type 1
atk+2 = restrict type 1
atk+3 = restrict type 2
atk+4 = restrict type 2
mag+1 = restrict type 3
mag+2 = restrict type 3
mag+3 = restrict type 4
mag+4 = restrict type 4

Then on the atk+1 you could have:

<Augment Attach Eval: subst>
$gameParty.addAugmentRestrictType(item, 1);
$gameParty.addAugmentRestrictType(item, 2);
< /Augment Attach Eval: subst>

to disallow other atk items.
Then, on atk+3:

<Augment Attach Eval: subst>
$gameParty.addAugmentRestrictType(item, 1);
$gameParty.addAugmentRestrictType(item, 2);
$gameParty.addAugmentRestrictType(item, 4);
< /Augment Attach Eval: subst>

to disallow atk items AND other tier 3 or 4 items.

Can that work for you?

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-attach-augments.107658/