how do parameters/values work?

i don't even know if it's the right name (i know almost nothing about programming) but like a value that can be changed by different functions and once it reaches a certain treshold it can be checked by a function/achievement and do something, like trigger another function. sry for not being clear enough
Continue to help post