Confusion with coding for stat underline page

So, I am in a bit of a quandary with my stats page.
The base code looks fine, but it’s out-putting odly. Would anyone be able to provide som suggestion on fixing it? Here is the code, feel free to run it to check what I mean:

*stat_chart

	opposed_pair heart
		mind
		heart

	opposed_pair independent
		team_player
		independent

	opposed_pair direct
		monipulative
		direct

	opposed_pair team_oriented
		humanity
		team_oriented

	opposed_pair shigh
		bold
		shigh

	opposed_pair sarcastic
		genuin
		sarcastic

	opposed_pair expressive
		reserved
		expressive

	opposed_pair stoic
		friendly
		stoic

	opposed_pair sentimental
		pragmatic
		sentimental

	opposed_pair charming
		intimidating
		charming

	opposed_pair easyGoing
		stubborn
		easyGoing

	opposed_pair impulsive
		cautious
		impulsive

To all who read this, have a good day.

3 Likes

you don’t need the free lines in between.
Here’s similar code from my game:

*stat_chart
   opposed_pair pol
      Polite
      Blunt as a hammer
   opposed_pair bold
      Bold
      Timid
   opposed_pair tac
      Plans Ahead
      Act first, think whenever
   opposed_pair tru
      Trusting Soul
      Suspicious of Everything
   opposed_pair imp
      Easy to anger
      Patience of a Saint
   opposed_pair cur
      Curious to a fault
      Uncaring as anything
   opposed_pair sel
      Bit of an Ego
      Altruistic Hen

which will look like this:
image

edit: also I’d suggest you flip the Names around to make it a bit easier while coding.

like

	opposed_pair impulsive
		impulsive
		cautious

Or if you want a space between…

*stat_chart
  opposed_pair heart
    mind
    heart
*line_break
*stat_chart
  opposed_pair independent
    team_player
    independent

if you do it like that you don’t even need the line_break.

A *stat_chart alone will not make a space.

Screen Shot 2021-08-12 at 12.48.23 PM

Screen Shot 2021-08-12 at 12.48.35 PM

Currently, what I think I am going to do is have it with the variable of the stat, name of the stat, then a description of what it does, sort of like this:

*stat_chart
	opposed_pair heart
		emotional
		%mind
		logical
	opposed_pair independent
		text"I like doing my own thing."
		team_player
		text"work with others when possible."


Something like that, although I need to figure out the percentages and texts, and it keeps either saying the indent is incorrect, or it needs a percentage, text, ETC. When I put it in it goes to the “incorrect indentation” one, not quite sure what I am doing wrong here.

Hey there!

I ran the code, and it’s showing okay to me. Are you using CSIDE, or some other program? Are you using tabs, or spaces? Do you have a picture how it’s showing strangely?

That’s possibly because you have the %mind and team_player added to the chart, it doesn’t need those and causes the code to get lost in itself. And you don’t need to add the text in front of the second stats once you remove the stray team_player from there.

Hope this helps :slight_smile:

3 Likes

Do you want to do something like this?

I don’t think you can expand the size of the box to fit the description in, nor can you reposition the text so that both descriptions appear in one line.

So this is what comes to my mind (the spacing is just wrong :grinning_face_with_smiling_eyes:). I made it so that the descriptions change depending on your stats.

*stat_chart
	opposed_pair independent
		Team Player
		Independent
*if (independent > 50)
	"I like doing my own thing."
*if (independent < 50)
	"I like to work with others whenever possible."

*stat_chart
	opposed_pair charming
		Intimidating
		Charming
*if (charming > 50)
	"I can sway others without effort."
*if (charming < 50)
	"Everyone should fear and respect me, and they do."

Edit: I got it all mixed up with the stat names and their descriptions.

2 Likes

I am running it through fire fox.

I also tried this,

*stat_chart
	opposed_pair independent
		Team Player[n/]"I like to work with others whenever possible."
		Independent[n/]"I like doing my own thing."

To force the descriptions to show up below the stat name. But nope, it didn’t work.

I was wondering what that [n/] was, but…

Screen Shot 2021-08-12 at 9.06.21 PM

What the hell is this?

It’s the same as *line_break. And unlike *line_break, it can be nestled within a text line.

Hmm, interesting.

I think I have it mostly worked out, although still need to get it so it doesn’t output to something like this, for example:
Heart 50%
Mind 50%

Here is the current code I am working with, Heart/mind below. Would a line_break work? Just putting another line in there doesn’t seem to do anything, it just throws an error message.

*stat_chart
	opposed_pair heart
		emotional

	logical
*stat_chart

Anyway, yeah. Thanks for all the help with this so far. May not seem like it, but I do appreciate all your help when I ask for help with this.

I set it up, and it seems to be working, the only problem is now that it is not quite out-putting correctly. Instead of

*stat_chart
  aposed_pair heart
  mind

  heart

It’s outputting as:

*stat_part
 aposed_pair heart
  mind
  heart

Not sure how to put a space so it doesn’t all read like it’s on the same line, but the *line_break throws up errors when I put it in, and am not sure what to do. Blank lines do the same thing, says you need a percent, text, or aposed_pair on it.

If it shows that error, you most likely have something like this…

*stat_part
  apposed_pair ver_1
    ver_2
  *line_break

As you can see above, the line_break is on the same level as the opposed_pair, which makes that error come up. So you should make sure the line_break is on the same level as the stat_chart, like this…

*stat_part
  apposed_pair ver_1
    ver_2
*line_break

Or if that’s not the case, I also noticed your opposed_pair is typed wrong, which also would make that error come up.

And if you haven’t already, make sure to read the beginners guide to stat screens.