Hi
purplexel there is a flaw for faction (demon | witch | neutral/balanced) unless demon faction carries more weight than witch. your current calculation to do this is demon/witch based on your logic.
align_value > .66: # Demon
align_value < .34: # Witch
else: # Neutral/Balanced
if demon value = 25 and witch value = 25
demon / witch = 1
the align_value returns demon faction, not neutral/balanced
or
demon value = 25 and witch value = 36
demon / witch = 0.6944444444444444
align_value returns demon faction, not witch
View attachment 5450799