@Red_Prince You can’t return a value from a main() function. If getting a value (e.g. TRUE/FALSE) is important you will have to use a local variable to store it for later retrieval.
The armor class will only stack, if it’s a different type, i.e shield modificator +1 vs. X + deflection modificator (a ring etc) +1 vs. X will result in a +2 vs. X .Two rings with +1 will result in a +1 total.
Damage resistance of the same type (i.e. two times 5/- fire) will never stack, but it will be added to damage reduction (i.e. 5/+1) if it’s blunt, piercing or slashing.