# Need help with some small issues

**URL:** <https://forum.choiceofgames.com/t/need-help-with-some-small-issues/2658>\
**Category:** ChoiceScript Help\
**Created:** [August 16, 2014, 9:52am UTC](https://forum.choiceofgames.com/t/need-help-with-some-small-issues/2658 "2014-08-16T09:52:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BraveMustang](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@BraveMustang](https://forum.choiceofgames.com/u/BraveMustang)\
**Post date:** [August 16, 2014, 9:52am UTC](https://forum.choiceofgames.com/t/need-help-with-some-small-issues/2658/1 "2014-08-16T09:52:41Z")

</div>

Hi…so in my game I created a opposed pair of Confederate and Union and set Union at 100…what I can’t seem to do later on is change that…I tried

```

*choice
    #Long Live the Confederacy!
        *page_break
        *set Union -25
        *goto confederacy
        
    #The Union Shall Prevail!
        *page_break
        *set Union -25
        *goto Union

```

Also, for fun I took a jpg picture off of the internet and put it into my games folder while adding the code for it. However when I go to that spot where the picture should be, it only shows a tiny black box with a question mark in it…

Thank you!

---

<div class="post-metadata">

**Author:** ![MutonElite](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@MutonElite](https://forum.choiceofgames.com/u/MutonElite)\
**Post date:** [August 16, 2014, 10:03am UTC](https://forum.choiceofgames.com/t/need-help-with-some-small-issues/2658/2 "2014-08-16T10:03:13Z")

</div>

Opposed\_pair works the same as percent, you can’t ever set it to 0 or 100, it’s 1-99. And you’ll be using %+ and %- when you’re increasing/decreasing them. For opposed\_pair you ought to be starting at 50. Actually that’s a simplified explanation, but go for that for now.

As for the jpg, I have no idea. Pictures go in the mygame folder.

Edit: Also, in your example, both choices decreases union.

---

<div class="post-metadata">

**Author:** ![MutonElite](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@MutonElite](https://forum.choiceofgames.com/u/MutonElite)\
**Post date:** [August 16, 2014, 10:11am UTC](https://forum.choiceofgames.com/t/need-help-with-some-small-issues/2658/3 "2014-08-16T10:11:18Z")

</div>

If you do want to have a number variable that goes from 0-100, you’ll need to set up a subroutine, using either \*gosub or \*gosub\_scene, in the latter you’ll need to create a text file for it.

Something like this;

```

*set union +25
*gosub cap_stats

*label cap_stats

*if (union > 100)
   *set union 100
*if (union < 0)
   *set union 0

*return

```

This does work with percent and opposed\_pair as far as I know, unless some update broke it.

---

<div class="post-metadata">

**Author:** ![Havenstone](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/havenstone/32/198451_2.png) [@Havenstone](https://forum.choiceofgames.com/u/Havenstone)\
**Post date:** [August 16, 2014, 11:46am UTC](https://forum.choiceofgames.com/t/need-help-with-some-small-issues/2658/4 "2014-08-16T11:46:59Z")

</div>

Best not to capitalize your variables – keep it all lower case. And you don’t need to follow a choice with a page\_break, that happens naturally.

And like MutonElite said in his first response, the dynamics of opposed pair stats is designed for fairmath, which means no 0 or 100 – start with union at 99 if you want to begin the game with maximum union as the default, and write all stat changes with a % in front of them e.g. \*set union %+10 or \*set union %-50.

---

<div class="post-metadata">

**Author:** ![BraveMustang](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@BraveMustang](https://forum.choiceofgames.com/u/BraveMustang)\
**Post date:** [August 16, 2014, 12:04pm UTC](https://forum.choiceofgames.com/t/need-help-with-some-small-issues/2658/5 "2014-08-16T12:04:46Z")

</div>

Thank you for the help @Havenstone and @MutonElite I set Union to 99 and Confederacy to 1 and it worked with me doing \*set Confederacy +blah blah instead…

I also got the pictures to work by placing them again in the mygame folder…I think I was placing them in the wrong spot before…

Thanks again!
