# Relationship commands

**URL:** <https://forum.choiceofgames.com/t/relationship-commands/23658>\
**Category:** ChoiceScript Help\
**Created:** [January 30, 2017, 11:12pm UTC](https://forum.choiceofgames.com/t/relationship-commands/23658 "2017-01-30T23:12:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![GreenTea](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/greentea/32/24318_2.png) [@GreenTea](https://forum.choiceofgames.com/u/GreenTea)\
**Post date:** [January 30, 2017, 11:12pm UTC](https://forum.choiceofgames.com/t/relationship-commands/23658/1 "2017-01-30T23:12:28Z")

</div>

Hello guys, I’ve been digging around and I’m still stuck, so I decided to ask.

I’m trying to create hidden relationships until you meet them but no matter what I do I really don’t get it at all…I’ve tried to create things in startup and stats but so far I get error after errors. So for example I’m trying to use a character with the name Aiden. But before you meet him he’ll be Unknown. How and where would I put this in startup and the stats screen that when you meet him, it will show you his % and name instead of Unknown?

---

<div class="post-metadata">

**Author:** ![FairyGodfeather](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fairygodfeather/32/16709_2.png) [@FairyGodfeather](https://forum.choiceofgames.com/u/FairyGodfeather)\
**Post date:** [January 30, 2017, 11:16pm UTC](https://forum.choiceofgames.com/t/relationship-commands/23658/2 "2017-01-30T23:16:53Z")

</div>

Can you share an example of your code?

You could have an Aiden\_met variable and do \*If Aiden\_met

Or you can just do \*set Aiden “Unknown” in startup, and then when you meet them \*set Aiden “Aiden”

---

<div class="post-metadata">

**Author:** ![RETowers](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/retowers/32/21477_2.png) [@RETowers](https://forum.choiceofgames.com/u/RETowers)\
**Post date:** [January 30, 2017, 11:17pm UTC](https://forum.choiceofgames.com/t/relationship-commands/23658/3 "2017-01-30T23:17:55Z")

</div>

There’s a few ways to do this. I think the easiest is this:

In startup:

```
*create aiden_display_name "Unknown"
*create aiden_relationship 50

```

In stats:

```
*stat_chart
  percent aiden_relationship ${aiden_display_name}

```

When you meat them:

```
*set aiden_display_name "Aiden"

```

---

<div class="post-metadata">

**Author:** ![GreenTea](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/greentea/32/24318_2.png) [@GreenTea](https://forum.choiceofgames.com/u/GreenTea)\
**Post date:** [January 30, 2017, 11:41pm UTC](https://forum.choiceofgames.com/t/relationship-commands/23658/4 "2017-01-30T23:41:08Z")

</div>

It was that easy…My mistake was creating unknown variables apparently. I never set up any Aiden\_met variables or \*if Aiden\_met because I didn’t know where to put them at all. Thanks a lot @FairyGodfeather and especially @RETowers. That example of yours really helped me out!

---

<div class="post-metadata">

**Author:** ![GreenTea](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/greentea/32/24318_2.png) [@GreenTea](https://forum.choiceofgames.com/u/GreenTea)\
**Post date:** [January 31, 2017, 12:35am UTC](https://forum.choiceofgames.com/t/relationship-commands/23658/5 "2017-01-31T00:35:39Z")

</div>

Sorry about this, but I have another question. How would you add or minus relationship values using RETowers code?

Edit: Nvm, I found out how to do it.
