These values change through interactions in the game. Typically only members of your "party" are affected, so you can have an encounter that would increase/decrease the affection for a specific character, but if they are not in the main party then it is not applied.is there a way to change affection and corruption values?
If you are talking about just being able to change the values then you can use a save editor to modify them.