# Question About Determining Stats

**URL:** <https://forum.choiceofgames.com/t/question-about-determining-stats/744>\
**Category:** ChoiceScript Help\
**Created:** [September 11, 2012, 12:25am UTC](https://forum.choiceofgames.com/t/question-about-determining-stats/744 "2012-09-11T00:25:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shssay](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Shssay](https://forum.choiceofgames.com/u/Shssay)\
**Post date:** [September 11, 2012, 12:25am UTC](https://forum.choiceofgames.com/t/question-about-determining-stats/744/1 "2012-09-11T00:25:47Z")

</div>

I’d like to create a stat that’s based on two other stats and I wanted to know if there was a way to do this in choicescript. For instance, if I wanted to create a combat stat that was created by adding a character’s strength and agility stats, is that something that I could do? Or if I wanted to create a stealth stat by subtracting a character’s strength stat from her agility stat, would that be possible? Any help would be appreciated!^^

---

<div class="post-metadata">

**Author:** ![RETowers](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/retowers/32/21477_2.png) [@RETowers](https://forum.choiceofgames.com/u/RETowers)\
**Post date:** [September 11, 2012, 12:42am UTC](https://forum.choiceofgames.com/t/question-about-determining-stats/744/2 "2012-09-11T00:42:51Z")

</div>

All you need is the \*gosub command.

```
*label stealth_set
*set stealth agility
*set stealth - strength
*return

```

Then, whenever you change strength or agility, just “\*gosub stealth\_set”. However, there is no way to tie the two together permanently so you do have to gosub everytime you change strength or agility.

---

<div class="post-metadata">

**Author:** ![Shssay](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Shssay](https://forum.choiceofgames.com/u/Shssay)\
**Post date:** [September 11, 2012, 3:23pm UTC](https://forum.choiceofgames.com/t/question-about-determining-stats/744/3 "2012-09-11T15:23:41Z")

</div>

Thanks Reaperoa!^^
