# Relationship bar

**URL:** <https://forum.choiceofgames.com/t/relationship-bar/28429>\
**Category:** ChoiceScript Help\
**Created:** [July 7, 2017, 2:14am UTC](https://forum.choiceofgames.com/t/relationship-bar/28429 "2017-07-07T02:14:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mathew\_7](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@Mathew\_7](https://forum.choiceofgames.com/u/Mathew_7)\
**Post date:** [July 7, 2017, 2:14am UTC](https://forum.choiceofgames.com/t/relationship-bar/28429/1 "2017-07-07T02:14:29Z")

</div>

How do I replace the stats Bar with a relationship bar. Since I having problem. I very new this site and don’t know much

---

<div class="post-metadata">

**Author:** ![Ylva](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/ylva/32/71693_2.png) [@Ylva](https://forum.choiceofgames.com/u/Ylva)\
**Post date:** [July 7, 2017, 2:28am UTC](https://forum.choiceofgames.com/t/relationship-bar/28429/2 "2017-07-07T02:28:45Z")

</div>

What do you mean?  
A relationship bar is the same as a stat bar, the only thing that changes is the variable being read and displayed.  
E.g.  
(On startup.txt)

```
*create someone_relationship 50

```

(On choicescript\_stats.txt)

```
*stat_chart
    percent someone_relationship Someone

```

Now when you go to the stats screen it should show a relationship bar at 50%

---

<div class="post-metadata">

**Author:** ![Szaal](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/szaal/32/112202_2.png) [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Post date:** [July 7, 2017, 2:30am UTC](https://forum.choiceofgames.com/t/relationship-bar/28429/3 "2017-07-07T02:30:28Z")

</div>

Yo, there.

First thing first, to have a working relationship bar, you need a relationship variable.

Two, you don’t need to replace anything just to make a working relationship bar.  
The command is like this

```
*stat_chart
   percent [relationship]
   percent [stats]

```

And voila, you have to bars 🙌🏽
