If anyone has played World of Warcraft or similar games they know what I'm talking about. I want there to be a reason to wear full sets other than just looking good, so I want the player to receive a bonus when wearing all parts of a set, for example +50 strength.
I don't know much about scripting, but I guess I need a function that is set to 0 by standard, and increases by 1 for every part of the set you equip. When the function becomes 8 the player should receive some sort of bonus (A full armor set excluded the shield has 8 parts).
It's also very important that when you disequip the parts the function decreases so you can't keep the bonus without wearing the full armor.
So my guess is that every of the 8 parts needs a script that makes function X increase by 1 when they are equipped and decrease by 1 when they are disequipped. And when function X is 8, strength is increased by 50, when X drops below 8, strength is reduced by 50 again. (And maybe strength can increase by 25 when X is 6.)
This is my plan and how I think it could be executed. Now I would appreciate some help in how to translate this into commands that the CS will understand.