Hi,

a dumb question i think, but oh well..

Imagine two points A and B and its distance = 100.

I want that when distance decreases, a variable or skill should proportional increases its value and vice versa.

An example: when distance = 80 or 100 the skill must be 20 or 0 respectively and so on.

Is there a math function to do that?
Thanks in advance