Archer30, i^expLimits^ is id of the array with percentage of each level xp cap;
so whn you enter the game it creates temporary storred int array and fill its with these values;
each time you use count founction is only enough for you just set monID and level cap, and erm just reads required lvl percentage from array you set before.
last two lines show that real percentage isn't int value but float.
for lvl 4th Pikemen 26% from 17500 is 4550 , but not 4600 as game shows to us.
for getting 4600 value from 17500 we need 17500 :100 * 26,29 = 4600;
but for working with float values we need to use e-vars (float);
anyway it just says that all my code above is common if wog's exp level caps were exact value as it shown in exp table, but it is false - we ve been cheated all that years