How to remove underscore from stat screen?

I’m new at coding and now having trouble with stat screen It’s showing underscore in stat screen can anyone tell me how to remove it

*stat_chart
  percent Swordsmanship
  percent skillfull_with_dagger Skillfull with Dagger
  percent axe_handling Axe Handling

This should work
Basically format in *stat_chart is
percent <variable name> <display name>

2 Likes

Thanks! It works

1 Like

It is also useful to know that the part of the code can contain variables as well so things like this are possible

*create knight "????"
*create kni_rel 25
*create kni_swo 25
*create kni_sor 25

You are the lord of a castle. You need to hire a knight. These are the ones who applies for the job.
*choice
  #Sir Arthur.
    *set knight "Sir Arthur"
    *set kni_rel +25
    *set kni_swo 50
    *set kni_sor 25
    *goto rehire
  #Lady Morgana.
    *set knight "Lady Morgana"
    *set kni_rel +25
    *set kni_swo 25
    *set kni_sor 50
    *goto rehire
  
*label rehire
You have hired ${knight}. You can see their stats in the stat screen.

Are you happy with your choice?
*choice
  *if (knight = "Sir Arthur")
    #I am happy with Sir Arthur.
      *goto next_scene
  *if (knight = "Sir Arthur")
    #Actually I'd rather hire Lady Morgana
      *set knight "Lady Morgana"
      *set kni_swo 25
      *set kni_sor 50
      *goto next_scene
  *if (knight = "Lady Morgana")
    #I am happy with Lady Morgana.
      *goto next_scene
  *if (knight = "Lady Morgana")
    #Actually I'd rather hire Sir Arthur.
      *set knight "Sir Arthur"
      *set kni_swo 25
      *set kni_sor 50
      *goto next_scene
    
*label next_scene
${knight} serves you faithfully for the rest of your reign.
*ending

Choicescript stats

*stat_chart
  text knight Hired Knight
  percent kni_rel Relationship with ${knight}
  percent kni_swo ${knight}'s skill with a blade
  percent kni_sor ${knight}'s skill with magic

As you can see with this code I only need three variables for the knight but can change who the knight is through variables. Put the above code into the choicescript IDE and you will see what I mean :slight_smile:

3 Likes

thanks for the explanation, it’s help me a lot

1 Like

This topic was automatically closed 24 hours after the last reply. If you want to reopen your WiP, contact the moderators.