How to make a Variable a formula?

Hey there. I tried googling for this but couldn't find anything on it.
I'm looking for how to get a variable to be a formula, not in battle. For example: I want Variable 25 to be 10 * actor 1 MAT + 100
I am no scripter so my attempt failed. If anyone knows how to do this, your help is appreciated.

EDIT: Nevermind, I figured it out.
It was: $game_variables[26] = (10 * $game_party.leader.mat) + 100

Please close this thread
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-variable-a-formula.80988/