Strangest Bug: Opposing pair breaking/Not showing correctly

So, for some reason, one single line of code keeps messing up, no matter what I put there. My opposed pair is showing no other side on the first line, however the second opposed pair shows up fine. If I swap them out the same thing happens to the one that used to work, and the one that didn’t now does?

I’ve tried swapping, restarting, remaking, spaces, indents, tabs, idk what is wrong.

Not sure what’s goin on here, but here is the code.

*label rep
    opposed_pair Slave
    opposed_pair Viking
    percent Jarls
    percent Commoners
    percent Godsrep ${Gods}
        *goto Main_Menu
1 Like

Saw this before. Does writing them like this work:

   opposed_pair var
      Var title
      Other title
1 Like

Well, it broke the other one, but I’ll just do it like that one and that should work.

We gucci. :+1:

Hmm. I don’t know what the exact problem is, but I have a few things you might be able to try.

First is making sure you’ve done a *create in startup for both Godsrep and Gods with a value for each.

Secondly would be checking capitalization, because that matters- and why it tends to be common practice to not use capitalization for variables. I don’t think capitalizing within { }'s would cause a problem… but I haven’t done so and thus don’t know for sure.

And third might be making sure Godsrep is
*set Godsrep (dollarsighhere){Gods} within the stats screen before displaying percent Godsrep. Then you’d only need percent Godsrep, and could leave out the (dollarsignhere){Gods} after it. So for instance, you’d likely put this in after the label, before the STANDINGS:
It’s a workaround, might work.

1 Like

This seems solved, so I’ll close it.

The cleanest way to do your opposed pair would be like this

   opposed_pair slave
   opposed_pair viking
1 Like

@rinari better to rely on the ‘mark as solution’ feature on the correctly advising post, rather than close the discussion. People may come back with related or similar issues. Generally we only tend to close threads when any further discussion is simply not going to be relevant/appropriate (resurrecting dead threads, off-topic tendencies etc). Although in this case, a renaming of the thread (to something more indicative) might not be a bad shout.


I took the liberty to change the title. will this do?


Ah oki, this is pretty old, so when I first made it how I was doing it before worked fine. Maybe some updates passed by and its better to do that now, which is fine.

@CJW ah then that’s my mistake. Generally I was under the impression that it’s better to lock technical threads when they’re solved according to @Gower’s Moderating Norms thread, but next time I’ll use more prudence!

This is a good point, and I will make that change to the Norms. Thanks!


Do we have a “commonly encountered errors” thread?

didn’t i start one once???