MV YEP_AttachAugments Help

So I have this on a medallion, this code changes the Image for the Item when it's attached and back to the original image when detached. It works great for this, but the problem lies in that I have a separate piece of equipment that can have either a weapon augment or a body augment [depending on what slot type you choose to place on it] and I don't want that one to have it's image change when they are attached.

This is what I have on the Augment:

Code:
<Augment Attach Eval: Armament>
if ($gameVariables.value(246) === 1)
    $gameVariables.setValue(247, 'Power_Gun1')
else
    $gameVariables.setValue(247, 'Power_Staff1')
    this.applyAugmentSetPictureImg(mainItem, $gameVariables.value(247), slotId, true)
end
</Augment Attach Eval: Armament>
<Augment Detach Eval: Armament>
if ($gameVariables.value(246) === 1)
    this.applyAugmentSetPictureImg(mainItem, $gameVariables.value(316), slotId, true)
else
    this.applyAugmentSetPictureImg(mainItem, $gameVariables.value(317), slotId, true)
end
</Augment Detach Eval: Armament>

I just want the Augment to apply the Image change when the Item being Augmented in NOT the special item.

I was thinking of adding something to this code like:
Code:
if ($gameVariables.value(246) === 1 && !$gameActors.actor($gameVariables.value(246)).equips[1]))
which doesn't seem to work... somewhat.

but this just seems to check if the equipment is equipped not whether the item being Augmented to IS the item... if that makes sense.

I looked through this: Script Call List
But didn't understand the calls very well... Not at all.

And so I come to the forums to see what can be brought up here...

Please help me out.
When you said the item's picture, i had thought you meant the icon, but you seem to have meant something else entirely. it doesnt matter though since youve found a function to do change it.

I was thinking of adding something to this code like:
theoretically a bit simpler. that notetag provides an item variable thats a reference to the item being augmented. You just have to add a conditional for your medallion's attach and detach to not run based on some value on "item". i was going to suggest using the item's base item id, but this might be better in the long run incase theres more special items:

put a <Special> notetag in the notebox of items you dont want the medal to change,
wrap both of your attach evals in a conditional that looks at the item's notebox, and make it only run the code if the <Special> notetag isnt there
Code:
if (!item.meta.Special){
    if ($gameVariables.value(246) === 1)
        $gameVariables.setValue(247, 'Power_Gun1')
    else
        $gameVariables.setValue(247, 'Power_Staff1')
    this.applyAugmentSetPictureImg(mainItem, $gameVariables.value(247), slotId, true)
}
Code:
Code:
if (!item.meta.Special){
    if ($gameVariables.value(246) === 1)
        $gameVariables.setValue(247, 'Power_Gun1')
    else
        $gameVariables.setValue(247, 'Power_Staff1')
        this.applyAugmentSetPictureImg(mainItem, $gameVariables.value(247), slotId, true)
}
Worked like a charm... Thank you

Original thread: https://forums.rpgmakerweb.com/threads/yep_attachaugments-help.169740/