If there is an algorithm that determines the equipment setup that the computer controlled characters use, then I doubt that it differentiates between the heroes and the villains. Games rarely make that type of distinction. It would have been a cool idea if it was implemented that way, though, that Kefka or Exdeath would be more likely to have access to equipment that they normally wouldn't have at their level rather than the heroes who try to stick to their own level.