# Some problems with stat chart

**URL:** <https://forum.choiceofgames.com/t/some-problems-with-stat-chart/106767>\
**Category:** ChoiceScript Help\
**Created:** [September 8, 2021, 2:13am UTC](https://forum.choiceofgames.com/t/some-problems-with-stat-chart/106767 "2021-09-08T02:13:57Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArchivistAlpha096](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/archivistalpha096/32/203655_2.png) [@ArchivistAlpha096](https://forum.choiceofgames.com/u/ArchivistAlpha096)\
**Post date:** [September 8, 2021, 2:13am UTC](https://forum.choiceofgames.com/t/some-problems-with-stat-chart/106767/1 "2021-09-08T02:13:57Z")

</div>

So, I am having a bit of trouble with my stats\_chart personality.  
Last time it worked correctly, it was outputting as something like this:  
Heart 50%  
Mind 50%  
I am trying to get something more like this, don’t know if it outputs correctly without a screanreader, but anyway.

heart 50%

mind 50%

If it’s unclear, currently it’s reading as 1 block of text, the heart and mind, and I want it to read as 2 different blocks, since there 2 different stats, though aposet  
The problem is, that for my personality section, it’s throwing up airers about indentation and such, and I am not sure why. I am putting the code for the personality section below. Would you helpful people be able to look at it, and tell me what I am doing wrong so I can fix it?  
Anyway, for all who read this, have a good day, or what’s left of it, as the case may be.  
Here is the code:

```
*label personality
[b]Personality[/b]

*stat_chart
	opposed_pair heart
		emotional
*line_break
Logical
*stat_chart
	opposed_pair independent
*line_break
team_player

Independent
*if (independent >=60)
	"I like doing my own thing, thankyou very much. Better that way."
*if (team_player >=60)
	"Working with people is better, yes?"
*stat_chart
	opposed_pair direct
		indirect
*line_break
	direct
*if (direct >=50)
	"I am blunt as a hammer, and I dam well like it that way. If you lot don't like it, well, good for you, cause I really couldn't care less."
*if (indirect >=50)
	"I am someone who can actually apretiate tact, thankyou very much."
*stat_chart
	opposed_pair team_oriented
		humanity
		team
*if (team_oriented >=50)
	"I like people allright, but if it comes down to helping my team and helping anyone or anything else? Well, that second one can go find someone else to bother as far as I am concerned.
*if(humanity >=50)
	"I will do my best to help those outside my team, regardless if it will actually help my team."
*stat_chart
	opposed_pair shigh
		bold
		shigh
*if (shigh >=50)
	"Who, me? can I hide deeper in the shadows than I already am, please and thankyou?"
*if (bold >=50)
	"I like being seene, thankyou very much."
*stat_chart
	opposed_pair sarcastic
		genuine
*if (sarcastic >=50)
"O, you liked that did you? Well, I will go get a bucket of it then."
*if (genuine >=50)
"Thanks for your help, you know?"
*stat_chart
	opposed_pair expressive
		reserved
*if (expressive >=50)
"People say that I am an open book. I would rather people think that I just like showing my emotions."
*if (reserved >=50)
"I would rather listen than speak. I would rather be silent, than show my hand. I would rather not show my enotions, thank you very much."
*stat_chart
	opposed_pair stoic
		friendly
*if (stoic >=50)
"Tell me what you wish, then leave. I have things to do, and little enough time to do them in." 
*if (friendly >=50)
"Huh, what's that? You want help with something? OK, give me like 5 minutes."
*stat_chart
	opposed_pair sentimental
		pragmatic
*if (sentimental>=50)
	"Aah, that's adorible! Let's pet the spiky venom dripping critter!
*if (pragmatic >=50)
	"This is no-longer useful to me, and as such it will be purged."
*stat_chart
	opposed_pair charming
		intimidating
*if (charming >=50)
"Would you believe me if I told you I didn't actually start off with a plan to charm your pants off?"
*if (intimidating >=50)
"You looking at me? No? Good. Now kindly leave."
*stat_chart
	opposed_pair easyGoing
		stubborn
*if (easyGoing >=50)
"You burned down my house you say? Meh, I was going to move anyway, so, thanks I guess? Firetrucks are a bit annoying, but once again, meh."
*if (stubborn >=50)
"I will never give in. I will never give up. I will never break."
*stat_chart
	opposed_pair impulsive
		cautious
*if (impulsive >=50)
	"Shoot first, ask questions later. Or what ever, the point is that we ask questions later and shoot things first."
*if (cautious >=50)
	"Let's think about this here, now?"
*goto my_stat_page

```

Flaver text is not set in stone. Also, now I think about it, might change the thresholds to something, a bit better like 70+ or so. Anyway.

---

<div class="post-metadata">

**Author:** ![Nocturnal\_Stillness](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/nocturnal_stillness/32/100414_2.png) [@Nocturnal\_Stillness](https://forum.choiceofgames.com/u/Nocturnal_Stillness)\
**Post date:** [September 8, 2021, 2:29am UTC](https://forum.choiceofgames.com/t/some-problems-with-stat-chart/106767/2 "2021-09-08T02:29:39Z")

</div>

Opposed\_pair puts two stats in one bar.

Try this.

```
*stat_chart
    percent heart
    percent mind

```

---

<div class="post-metadata">

**Author:** ![Sid0](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/sid0/32/151165_2.png) [@Sid0](https://forum.choiceofgames.com/u/Sid0)\
**Post date:** [September 8, 2021, 7:04pm UTC](https://forum.choiceofgames.com/t/some-problems-with-stat-chart/106767/3 "2021-09-08T19:04:20Z")

</div>

```choicescript
*label personality
[b]Personality[/b]

*stat_chart
	opposed_pair heart
		emotional
*line_break
Logical

```

That “`Logical`” is the kind of thing you want as what @Nocturnal_Stillness described I think. Or the space you were talking about…

```choicescript
*stat_chart
    percent heart
*line_break
*stat_chart
    percent mind

```

* * *

```choicescript
*if (independent >=60)
	"I like doing my own thing, thankyou very much. Better that way."
*if (team_player >=60)
	"Working with people is better, yes?"

```

Actually, the second stat in an “`opposed_pair`” is only a name, so in that case you’ll need to make something like this…

> \*if (independent \<50)
> 
> \*if (independent \>50)

Then you can also make it to something like the 60 you had up there of course…

> \*if (independent \<=40)
> 
> \*if (independent \>=70)

And yes, I know this is all not necessary if you use a `percent`, but maybe you can learn something for future projects 🙂

* * *

```choicescript
*if (expressive >=50)
"People say that I am an open book. I would rather people think that I just like showing my emotions."
*if (reserved >=50)
"I would rather listen than speak. I would rather be silent, than show my hand. I would rather not show my enotions, thank you very much."

```

Missing spaces/tabs after the `*if`

Also…

> enotions → emotions

* * *

> [@ArchivistAlpha096](#):
>
> would I have to manually raise or lower the aposed stat? I thought that for example, you put mind and heart in an aposed pair, when you raised heart, mind lowered, and vice-versa. Would it work the same if I do, percent mind, percent heart?

They go up and down by themselves with a `percent`.

---

<div class="post-metadata">

**Author:** ![ArchivistAlpha096](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/archivistalpha096/32/203655_2.png) [@ArchivistAlpha096](https://forum.choiceofgames.com/u/ArchivistAlpha096)\
**Post date:** [September 8, 2021, 7:05pm UTC](https://forum.choiceofgames.com/t/some-problems-with-stat-chart/106767/4 "2021-09-08T19:05:41Z")

</div>

If I do what you suggest, would I have to manually raise or lower the aposed stat? I thought that for example, you put mind and heart in an aposed pair, when you raised heart, mind lowered, and vice-versa. Would it work the same if I do, percent mind, percent heart?

---

<div class="post-metadata">

**Author:** ![Nocturnal\_Stillness](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/nocturnal_stillness/32/100414_2.png) [@Nocturnal\_Stillness](https://forum.choiceofgames.com/u/Nocturnal_Stillness)\
**Post date:** [September 8, 2021, 8:54pm UTC](https://forum.choiceofgames.com/t/some-problems-with-stat-chart/106767/5 "2021-09-08T20:54:44Z")

</div>

Yes you would have to raise and lower each stat separately. oppossed\_pair is actually just one stat. So

```
*stat_chart
    opposed_pair body
        mind

```

Would show body and mind in the bar but it is actually only “body” that actually exists. So you raise body and lower mind but to raise mind you lower body

Edit: might have got the code wrong so changed it been awhile since I used Opposed\_pair

---

<div class="post-metadata">

**Author:** ![ArchivistAlpha096](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/archivistalpha096/32/203655_2.png) [@ArchivistAlpha096](https://forum.choiceofgames.com/u/ArchivistAlpha096)\
**Post date:** [September 10, 2021, 12:10am UTC](https://forum.choiceofgames.com/t/some-problems-with-stat-chart/106767/6 "2021-09-10T00:10:41Z")

</div>

I’m trying to and Mind for example. But when I tried doing that with either a line on the line break or just a blank line, it throws up an air, which is rather annoying.

---

<div class="post-metadata">

**Author:** ![Sid0](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/sid0/32/151165_2.png) [@Sid0](https://forum.choiceofgames.com/u/Sid0)\
**Post date:** [September 10, 2021, 12:25am UTC](https://forum.choiceofgames.com/t/some-problems-with-stat-chart/106767/7 "2021-09-10T00:25:41Z")

</div>

You can’t use a `*line_break` in an `opposed_pair`, if that’s what you mean.

---

<div class="post-metadata">

**Author:** ![Jacic](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jacic/32/7061_2.png) [@Jacic](https://forum.choiceofgames.com/u/Jacic)\
**Post date:** [September 10, 2021, 1:09am UTC](https://forum.choiceofgames.com/t/some-problems-with-stat-chart/106767/8 "2021-09-10T01:09:36Z")

</div>

Yep, I’m not sure why you’re trying to use line\_breaks like this. Take out the line\_break from sequences like this as there’s no reason for it to be there and could well break the code.

```
*stat_chart
	opposed_pair independent
*line_break
team_player

```

What nocturnal stillness is saying is right. Opposed pairs only measure the top variable (in this case it would be independent.) It just sticks another word on the opposite side of the bar to make it look opposed, but all stat changes come from independent, not team\_player.

If you want separate variables to show up separately like heart AND mind, you’ll need to add them separately but also change them separately. (Not as an opposed stat.)

Also as has already been stated you need to change both of these to direct, but for one of them, also drop the = sign as you’re saying both can = 50.

```
*if (direct >=50)
	"I am blunt as a hammer, and I dam well like it that way. If you lot don't like it, well, good for you, cause I really couldn't care less."
*if (indirect >=50)
	"I am someone who can actually apretiate tact, thankyou very much."

```

---

<div class="post-metadata">

**Author:** ![ArchivistAlpha096](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/archivistalpha096/32/203655_2.png) [@ArchivistAlpha096](https://forum.choiceofgames.com/u/ArchivistAlpha096)\
**Post date:** [September 10, 2021, 8:17pm UTC](https://forum.choiceofgames.com/t/some-problems-with-stat-chart/106767/9 "2021-09-10T20:17:42Z")

</div>

That makes sence. Now just have to figure out how to get over the fairmath, since if I remember correctly, if I have say, heart at 60% and mind at 40%, if I have a choice that raises heart by 10% and lowers mind by the same, mind will not quite get to 30%. If I am understanding the fairmath thing correctly, anyway.
