put npc and pc into character file