I want to streamline a process in which an Inn's price to sleep the night is inversely calculated against a variable that runs from 1-100 (a karma system). I'm just completely stumped on how to calculate it aside from 100 conditional branches for every possible value this variable can have 
Essentially the Karma variable will range from 1-100 throughout the game, and I want an event command to take the value of the Karma variable and invert it - so when it is at say 25, another variable (InnPrice) will be set to 75. If Karma is 70, InnPrice becomes 30. If Karma is 100, InnPrice is 1.
I plan on customizing it further, as paying a single currency unit (or zero lol) for an inn stay is kinda goofy to me and I would prefer it follows some more math afterwards just to make it more realistic (like a flat +25 value added after all the math), but just getting to the point of having the variable inverted to begin with is muddling my brain. Anyone have a way to do this with some scripting or math magic?

Essentially the Karma variable will range from 1-100 throughout the game, and I want an event command to take the value of the Karma variable and invert it - so when it is at say 25, another variable (InnPrice) will be set to 75. If Karma is 70, InnPrice becomes 30. If Karma is 100, InnPrice is 1.
I plan on customizing it further, as paying a single currency unit (or zero lol) for an inn stay is kinda goofy to me and I would prefer it follows some more math afterwards just to make it more realistic (like a flat +25 value added after all the math), but just getting to the point of having the variable inverted to begin with is muddling my brain. Anyone have a way to do this with some scripting or math magic?