[FE8] ASM Hack to Assign an Affinity to a Character

This may be what you’re looking for.
EDIT: I didn’t read the posts above, so affinity is not in RAM. My bad.