For the second solution you don't have to script yourself, it's more like applying a behavior to the character through the editor interface.
If you are looking for a solution to "configure" the status on a character, it would be hidden somewhere in the character stats, but I am not aware of how to do this directly (there is no column "Status" in the character stats I am aware of). You could create some special equipment (like a ring, necklace or armor) that carries the desired status and apply it through the equipment set of the character. However, this (the stats tables) is a field I don't have much experience in, so you should talk to the folks on the modding discord channel. There are some real stats experts hanging around over there.