Sobeman459
Member
   if attacker.is_a?(Game_Enemy)
   atk = [(attacker.str * 6) + (attacker.dex + attacker.atk)] - self.pdef
   else
   atk = [(attacker.str * 6) + (attacker.level + attacker.atk)] - self.pdef
   end
   self.damage = atk
   atk = [(attacker.str * 6) + (attacker.dex + attacker.atk)] - self.pdef
   else
   atk = [(attacker.str * 6) + (attacker.level + attacker.atk)] - self.pdef
   end
   self.damage = atk
This is what i have but whenever i try to attack it says failed to turn fixum into array it also happen with my skills if i try to use them. If anyone could help that would be great. Thanks.
  hit = if user.is_a?(Game_Enemy)
   hit = [(user.int * 8) + (user.dex + skill.power)] - self.mdef
     else
   hit = [(user.int * 8) + (user.level + skill.power)] - self.mdef
     end
   hit = [(user.int * 8) + (user.dex + skill.power)] - self.mdef
     else
   hit = [(user.int * 8) + (user.level + skill.power)] - self.mdef
     end