Controlling variables with item equip

Hey guys I'm looking at implementing a system in my current project that would put some more emphases on equipment selection. Eg having armour that changes certain variables when equiped.
I have an idea for a character warmth mechanic that would apply states to the character depending on how warm or cold they are.
I currently have variables set up for the warmth of maps which change dependent of time of day and location (it is always very cold at night in my game.)
To make this work I'm trying to find a way of forcing the player into making a choice between keeping the character warm, or having the highest stat armour.
Has anyone had any success with anything similar? and how did you go about it?
I'm sure there is probably a very simple script to do with this, but I haven't stumbled across one yet.
Thanks.
@cub36 It is not clear to me from the wording of your post whether you want to discuss the design of such a system (penultimate sentence) or the implementation of it (final sentence).

Could you please post and clarify which it is.
@cub36 It is not clear to me from the wording of your post whether you want to discuss the design of such a system (penultimate sentence) or the implementation of it (final sentence).

Could you please post and clarify which it is.
Sorry, more on the implementation side of of it.
What engine? This will belong in the Support forum because you're asking "how to" rather than discussing the actual mechanic/design of the system.
@cub36 As Shaz has mentioned, this needs to be moved, but can't until we know which engine you are using. As well as posting that information here, please consider adding it to the info under your avatar. It can save a lot of time in the future if you do.
@cub36 As Shaz has mentioned, this needs to be moved, but can't until we know which engine you are using. As well as posting that information here, please consider adding it to the info under your avatar. It can save a lot of time in the future if you do.
I am using MV. I will update my profile as well.
Moved to: RPGMaker MV
I have written a plugin that changes variable values depending on equipment (link is in my signature).

Alternatively, you can also use a parallel (common) event to check which items each actor has equipped and change the variables accordingly.
I have written a plugin that changes variable values depending on equipment (link is in my signature).

Alternatively, you can also use a parallel (common) event to check which items each actor has equipped and change the variables accordingly.
Will this work on state as well or only on equipment?

Also thanks for pointing me to this script.
Will this work on state as well or only on equipment?
The plugin works only on equipment. For states, you can use Yanfly's Buffs & States Core plugin with Lunatic notetags (Custom Apply/Remove Effect) to add and subtract from variables when a state is applied/removed: http://yanfly.moe/2015/12/25/yep-50-buffs-states-core/
There could also be other plugins written specifically to handle variables influenced by states, but I don't know any off the top of my head.

If you use a parallel event, you can also use it to check for states similarly to checking for equipment.

Original thread: https://forums.rpgmakerweb.com/threads/controlling-variables-with-item-equip.95419/