/*All that I apparently need to show...
Variable P is players/Player, a child class of mob with its own variables.
Variable M is obj/Team, which stores the players and other values.
The 'budget' variable of M is part of the Team subclass, which can't be accessed easily
without using : */
Problem description: This line (and the others you don't know of, but they can't because the code is stopped obviously) generated a "Undefined operation" error at runtime. It has worked before, but it won't now. All of the values used are numbers, defined and also known to be from previous testing.
Does anyone know what is going on, or do I need to post more?
The whole idea is that the Keep variable is increased by a rounded and extended calcuation - The TSI is taken away from the current Keep value which is added to the Budget divided by 100. The result then divided by 400, and then it will be rounded.