I know the damage has to do with the users level, but say I taught it to a level 50 pokemon. Would the base damage be 50? Or would it always do 50 damage regardless of the other pokemon's defenses?
No. The damage is 50 HP regardless of any other factors. (not the base damage)