# Opposed pair not working?

**URL:** <https://forum.choiceofgames.com/t/opposed-pair-not-working/82512>\
**Category:** ChoiceScript Help\
**Created:** [July 8, 2020, 6:21pm UTC](https://forum.choiceofgames.com/t/opposed-pair-not-working/82512 "2020-07-08T18:21:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hudush](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/hudush/32/121022_2.png) [@hudush](https://forum.choiceofgames.com/u/hudush)\
**Post date:** [July 8, 2020, 6:21pm UTC](https://forum.choiceofgames.com/t/opposed-pair-not-working/82512/1 "2020-07-08T18:21:41Z")

</div>

hi! my problem is with opposed pair. the value is not changing and if it is, it’s just wrong?

here’s my code in startup.txt

My code looks like this:

```
*create Name ""
*create Surname ""
*create Memory 0
*create Acceptance 50

```

and

```
*label accepting1
*set Acceptance %+5

For two years you learned to coexist with ghosts. How to relax around some of them.

```

```
*label defiance1
*set Acceptance %-2

```

this is how it look in the stats file:

```
opposed_pair Acceptance
    Defiance

```

with the first choice, the value should be acceptance 55% and defiance 45%, but it shows as defiance 51% and acceptance 49%?  
the same problem is with the second choice but it shows defiance 51% and acceptance 49%.

i dont know what do do anymore, so could someone help me? i’d really appreciate it!

---

<div class="post-metadata">

**Author:** ![Kotosinica](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/kotosinica/32/145626_2.png) [@Kotosinica](https://forum.choiceofgames.com/u/Kotosinica)\
**Post date:** [July 8, 2020, 6:47pm UTC](https://forum.choiceofgames.com/t/opposed-pair-not-working/82512/2 "2020-07-08T18:47:39Z")

</div>

It is not opposed pair display problem, you are using a different type of math here. It is fairmath, explained in [this article](https://choicescriptdev.fandom.com/wiki/Arithmetic_operators).  
If you want to add 5 to 50, you need \*set variable +5, not %+5.  
If you want to add a small amount of stat so it never goes out of 1-99 boundary, then you use \*set variable %+5.

---

<div class="post-metadata">

**Author:** ![hudush](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/hudush/32/121022_2.png) [@hudush](https://forum.choiceofgames.com/u/hudush)\
**Post date:** [July 8, 2020, 7:45pm UTC](https://forum.choiceofgames.com/t/opposed-pair-not-working/82512/3 "2020-07-08T19:45:18Z")

</div>

Oh, thank you!

---

<div class="post-metadata">

**Author:** ![trevers17](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/trevers17/32/127415_2.png) [@trevers17](https://forum.choiceofgames.com/u/trevers17)\
**Post date:** [July 9, 2020, 4:51pm UTC](https://forum.choiceofgames.com/t/opposed-pair-not-working/82512/4 "2020-07-09T16:51:41Z")

</div>

Closed on July 9, 2020, 4:51pm UTC

Question resolved!
