Trying to understand how to change Stat-Bar names in the stat screen

Hello! This is my first time working on a project and also my first time on the board, so i sorry if im posting wrong or if my question was already answered and i just can’t find it

I’m having trouble with trying to create a… ‘friendship’ meter, showing positive and negative reactions based on your choices

my issue is that i don’t want to display all the names before you meet the people they’re associated with.
I played Choice of Robots, and that had a similar stat page, people knew had their names over the % bar, but people you hadn’t met yet had a “?” in place of the name

[ex:
Eiji 50%
Josh 50%
? 50%
? 50%
? 50%]

could someone show me how to create that same effect where you hide or rename that bar

You need to use variables.

In startup
*create npc_onea “?”
*create npc_oneb 50

In choicescript_stats
*stat_chart
percent npc_oneb ${npc_onea}

In game
*set npc_one “John”

2 Likes

@Nocturnal_Stillness nailed it, but the indentation should look like this:

*stat_chart
   percent npc_oneb ${npc_onea}
2 Likes

Yeah I forgot to put it in code tags lol

2 Likes

thank you guys so much, i didnt even think to try ‘${ }’ in the stat file

1 Like

Also remember that anything you write after a variable in a chart renames it

I. E

*stat_chart
    text code_name Code Name
    percent power ${chosen_power} 
1 Like