You can just edit the formula I gave you to use the ranks... Just play with it and you can easily do whatever you want with it...
as for making ranks, if you haven't done anything yet:
For enemies: Just make a new hash or array, then for each enemy id, set a corresponding rank then you can retrieve that for the formula
for the users, it's more complicated as you can change ranks in-game right?
class Game_Battler < Game_BattlerBase
EN_RANKS = {1 => 0,
2 => 0,
3 => 4,
and so on for all enemies
}
def addstat(user,target,paramid,bonus)
if user.actor?
if target.enemy?
if target.EN_RANKS[target.enemy.id] == something => not sure if it's the right one
user.add_param(paramid, bonus)
end
end
end
end
end
Note that this is just to give you the idea of how you can edit it to make what you want... it's not guaranteed to work... You see, I'm more of a fan of give you the base, then teach you how you can modify it to your liking...