Stat help?

Here’s a bit from my game

Summary
*temp stat_page 0
*label main
*if (protagparent = "true")
   [b]Name:[/b]  $!{parent_firstname} $!{lastname}
   *line_break
   *if cafegot = "true"
      [b]Our little Café:[/b] The ${cafename} Café
      *line_break
   [b]You[/b]
   *line_break
   *stat_chart
      opposed_pair Conventional
         Unconventional
      opposed_pair Unflappable
         Easily Ruffled
      opposed_pair Rude
         Polite
      opposed_pair Careful
         Rash
      opposed_pair Curious
         Disinterested
*goto navigation_menu

*if (protagchild ="true")
   Name: ${kid_firstname}
   *line_break
   *line_break
   [b]What makes You You[/b]
   *line_break
   *stat_chart
      opposed_pair Oddball
         Straight Laced
      opposed_pair Busybody
         Lackadaisy
*goto navigation_menu

*label cookingskills

   [b]Taste[/b]
   *line_break
   *stat_chart
      percent Sweet
      percent Savory
      percent Spicy

*if (**contest_entered** = "true")
   [b]Skills[/b]
   *stat_chart
      percent speed Speed
      percent organization Organization
      percent decoration Decoration Skills
      percent creativity Creativity with Recipes
      percent taste A Tongue For Taste
*goto navigation_menu

*label relationships
*if (protagparent = "true")
   *if met_heatstroke = "true"
      *stat_chart
         percent heatstroke $!{heatstroke_name}
   *if met_ian = "true"
      *stat_chart
         percent ian $!{ian_name}
   *if met_lamode = "true"
      *stat_chart
         percent lamode $!{lamode_name}
   *if met_stormrider = "true"
      *stat_chart
         percent stormrider $!{stormrider_name}
*goto navigation_menu
(...)
*label navigation_menu
*choice
     *if (stat_page != 0) #View Main Stats.
        *set stat_page 0
        *goto main
     *if ((stat_page != 1) and (**protagparent** = "true")) #View Cooking Skills
        *set stat_page 1
        *goto cookingskills
     *if (stat_page != 2) #View Relationships.
        *set stat_page 2
        *goto relationships
     *if ((stat_page != 3) and (**powersgained** = "true") and (**parentpowers** = "true") or (**protagchild** = "true")) #View Superpowers.
        *set stat_page 3
        *goto superpowers
     *if (stat_page != 4) #View Who's Who.
        *set stat_page 4
        *goto whoswho

This is for a multipage statscreen with hidden pages. basically you put a *temp for the page number on top of the stats text and then work with labels and if unequal to’s.
Goodluck

What does those “stars” on each side of powersgained do?

1 Like

the ** you can ignore.
that was supposed to bold it. forgot it doesn’t do it in codemode Dx

I’m having trouble with trying to create bold text below a stat_chart similar to how the stat chart is set up in The Lost Heir 1: Fall of Daria. Where there is a name, followed by health percent, then directly below health is bolded Specialized Training: linebreak then the word none. I’d like to know how by any chance to recreate that sort of effect if anyone could assist me

My code looks like this:
*temp naming_text “”
*temp specialization_text

*if specialization_set
*set specialization_text “${specialization}”
*goto stat_chart

*if name_set
*set naming_text “${name} of Teecelay
*goto stat_chart

*if gender_set
*set naming_text “$!{gender} of Teecelay
*goto stat_chart
*else
*goto stat_chart

*label stat_chart
{naming_text} *stat_chart percent Health text [b]Specializations: {specialization}[/b]

MORALITY:
*stat_chart
opposed_pair Good
Good
Evil

Example
*commend
    Indent

The code should look like this

${name}
*stat_chart
   percent Health
[b]Specialized Training:[/b]
*line_break
${training}

But be noted that I don’t know the actual variable used in the game :point_up:t4:

This could cause some errors, Alteratively this could be used

${name}

*stat_chart
   percent Health

[b]Specialized Training:[/b]
*line_break
${training}

Hweh, there’s nothing wrong with that!

You can’t have text below and above *stat_chart

Look at this.

Oh, that one is fixed with the latest CS build.
My code has text above the *stat_chart command.

Really. I can’t find it. Can you link me to it.

Hrr… how come you don’t know the link.

Here you go
http://github.com/dfabulich/choicescript/zipball/master

Not that link but the link to the forum post in which Dan said that the version has removed this bug because I don’t wanna miss on other bugs/features that that post mentioned.

Nah, it’s a very-old post. Around september, IIRC?

I found the bug previously and summoned Dan. Fortunately, he quickly responded to it and updated the CS. But he just said, “the bug is fixed on choicescript version blabla,” IIRC.

Thank you all again for your input I deeply appreciate it! The problem above has been addressed by you all. Though i still experience one problem. The text formatting makes the line of text I add below appear a few white spaces below or away from the stat chart making the format look messy. I sorta just want it to be one continuous stream but its in chunks. Any tips?

Yeah, I noticed that one too.
It appears this issue is persistent since the fix I mentioned some comments above takes place.

I tried all kinds of spacing, but there’ll always be line breaks on it. I think this is the issue of the script itself :confused:

You could use it like

*stat_chart
    Percent blabla1
    Text blabla2

This way you would get text just below stat chart but you can’t italic or bold the text.

PS : I hope I am not wrong. Again.

1 Like

Dang. Well thanks again for clearing that up with me. I appreciate all of your help everyone!

1 Like
*input_text dan_said

The bug us fixed on choicescript version ${dan_said}.

Run Randomtest.