Some problems with stat chart

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.

Opposed_pair puts two stats in one bar.

Try this.

*stat_chart
    percent heart
    percent mind
*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…

*stat_chart
    percent heart
*line_break
*stat_chart
    percent mind

*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 :slightly_smiling_face:


*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


They go up and down by themselves with a percent.

1 Like

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?

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

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.

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

1 Like

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."
1 Like

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.