Question about "opposed_pair" and *if commands

Hello
I’ve just added in a stat tracking two opposing stats, and I wanted to ask how exactly I would use them in commands

this is my specific code:

Summary

startup.txt
*create Alignment 50

choicescript_stats.txt
*stat_chart
opposed_pair Alignment
Integrity
Dishonesty
(I didn’t figure out how to add proper indentations in this post)

The question I want to ask is, how do I use the opposing pair in a ‘stat-check’ command

for an example
if I wanted someone to chastise the player for being ‘dishonest’, would I use something like this:

*if Alignment >75%
or
*if Integrity <25%
or
*if Dishonesty >75%

do I use the actual Alignment stat written in my startup, Left being 0 and Right being 100?
or do I just use what name I gave each side with their own percentage?

You would use something like

*if Alignment>50

for checks involving Integrity

and

*if Alignment<50

for checks involving Dishonor.

I would suggest against using stats with capital letters, though.

(The stats Integrity and Dishonor do not exist in code. You add, subtract, and check against Alignment.)

1 Like

Thanks, this clears up alot