Ability to directly set a battle code.

Does not restrict based on code type (should it?).
Does restrict if a battle already has a code.