Invalid Expression, couldn't extract another token

Opposed pairs can be coded in two ways. The first is:

*stat_chart
  opposed_pair X
    Y

…Where X is a variable, and X and Y are displayed as the opposed traits. This is what you seem to be trying to do—successfully, in the idealism/cynicism case. The other way opposed pairs can be coded is:

*stat_chart
  opposed_pair X
    Y
    Z

…Where X is the variable, but Y and Z are displayed as the opposed traits.

I believe your issue is that you have an extra indented line under Compassion (your Y) that your code is interpreting as a second element (an unintended Z)—except Z, in your case, is a blank space. This is why Compassion has become your opposed pair’s first trait (instead of the second, as you’re intending) and the second half of the bar is just blank.

Try clicking on the blank line between your opposed pairs and your “skills and proficiencies” section, and making sure you don’t have indents/spaces there; if you do, delete them. If this doesn’t solve the problem, you can also just code it the way @needs-to-be-loved has suggested, and that should work just as well.

As for your other issue, I believe needs-to-be-loved is correct that you’ve added an extra period where one oughtn’t be.

2 Likes