# How to add content on the stats page after the start of the game?

**URL:** <https://forum.choiceofgames.com/t/how-to-add-content-on-the-stats-page-after-the-start-of-the-game/120175>\
**Category:** ChoiceScript Help\
**Created:** [June 15, 2022, 7:25am UTC](https://forum.choiceofgames.com/t/how-to-add-content-on-the-stats-page-after-the-start-of-the-game/120175 "2022-06-15T07:25:08Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayamine](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@Ayamine](https://forum.choiceofgames.com/u/Ayamine)\
**Post date:** [June 15, 2022, 7:25am UTC](https://forum.choiceofgames.com/t/how-to-add-content-on-the-stats-page-after-the-start-of-the-game/120175/1 "2022-06-15T07:25:08Z")

</div>

I’d like to add information like character reference or choices after the said character is introduced (or delete them once they died) not immediately at the start of the game, how to do that?

---

<div class="post-metadata">

**Author:** ![Rebman22](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rebman22/32/214178_2.png) [@Rebman22](https://forum.choiceofgames.com/u/Rebman22)\
**Post date:** [June 15, 2022, 7:43am UTC](https://forum.choiceofgames.com/t/how-to-add-content-on-the-stats-page-after-the-start-of-the-game/120175/2 "2022-06-15T07:43:54Z")

</div>

I honestly need help on this too. I apologize that I can’t be much help.

All I can think of is a possible false command?

I’ll have to play with coding a bit more to be qualified to help

---

<div class="post-metadata">

**Author:** ![geldar](https://avatars.discourse-cdn.com/v4/letter/g/a3d4f5/32.png) [@geldar](https://forum.choiceofgames.com/u/geldar)\
**Post date:** [June 15, 2022, 7:54am UTC](https://forum.choiceofgames.com/t/how-to-add-content-on-the-stats-page-after-the-start-of-the-game/120175/3 "2022-06-15T07:54:19Z")

</div>

You can use if statements. I don’t know if that’s the optimal way to do it, but I know it works.

---

<div class="post-metadata">

**Author:** ![Kshatriya](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/kshatriya/32/168996_2.png) [@Kshatriya](https://forum.choiceofgames.com/u/Kshatriya)\
**Post date:** [June 15, 2022, 7:56am UTC](https://forum.choiceofgames.com/t/how-to-add-content-on-the-stats-page-after-the-start-of-the-game/120175/4 "2022-06-15T07:56:13Z")

</div>

One way to do this is to create variables that check whether the player has met the character or not, and whether the character is alive or dead. In startup.txt:

```nohighlight
*create met_chara1 false
*create chara1_alive true
*create met_chara2 false
*create chara2_alive true

```

Next, add `*set met_chara1 true` in the scene where the character is introduced. When the character dies, add the `*set chara1_alive false` statement.

In choicescript\_stats file, use `*if` statements to show information about the character.

```nohighlight
*if ((metchara_1=true) and (chara1_alive=true))
    Example text of Character1's Bio.

```

---

<div class="post-metadata">

**Author:** ![Rebman22](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rebman22/32/214178_2.png) [@Rebman22](https://forum.choiceofgames.com/u/Rebman22)\
**Post date:** [June 15, 2022, 7:56am UTC](https://forum.choiceofgames.com/t/how-to-add-content-on-the-stats-page-after-the-start-of-the-game/120175/5 "2022-06-15T07:56:22Z")

</div>

Yes! If statements work as well but I’ve noticed that it doesn’t hide choices to go to another stat page. I mean it works, so I’m content with this method until I find something that works better.

---

<div class="post-metadata">

**Author:** ![Rebman22](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rebman22/32/214178_2.png) [@Rebman22](https://forum.choiceofgames.com/u/Rebman22)\
**Post date:** [June 15, 2022, 7:57am UTC](https://forum.choiceofgames.com/t/how-to-add-content-on-the-stats-page-after-the-start-of-the-game/120175/6 "2022-06-15T07:57:03Z")

</div>

This is a god send. Thanks!

---

<div class="post-metadata">

**Author:** ![Anjie](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/anjie/32/165888_2.png) [@Anjie](https://forum.choiceofgames.com/u/Anjie)\
**Post date:** [June 15, 2022, 8:16am UTC](https://forum.choiceofgames.com/t/how-to-add-content-on-the-stats-page-after-the-start-of-the-game/120175/7 "2022-06-15T08:16:05Z")

</div>

You can also use simpler variables to make it cleaner - for instance if your character is named Jay:

```choicescript
*set jaymet false
*set jayalive true

```

After setting these variables to true or false in the game itself, the use of \*if in the stats page can just be:

```choicescript
*if not(jaymet)
    You have not met anyone yet.
*if (jaymet)
    Description of Jay here
*if ((jaymet) and not(jayalive))
    Jay has died.

```

Hopefully it helps to make things less clunky!

> [@Rebman22](#):
>
> I’ve noticed that it doesn’t hide choices to go to another stat page.

Could I also clarify what you mean by this?

---

<div class="post-metadata">

**Author:** ![Loudbeat](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/loudbeat/32/115975_2.png) [@Loudbeat](https://forum.choiceofgames.com/u/Loudbeat)\
**Post date:** [June 15, 2022, 12:39pm UTC](https://forum.choiceofgames.com/t/how-to-add-content-on-the-stats-page-after-the-start-of-the-game/120175/8 "2022-06-15T12:39:20Z")

</div>

If you have for example a different stats page for one of the characters you can make the option to choose that page invisible or unselectable.

```nohighlight
grayed out choice if char_1 is dead:
*selectable_if (char_1_alive)
  #Move to (char_1) page.

or
invisible if char_1 is dead:
*if (char_1_alive)
  #Move to (char_1) page.

```

---

<div class="post-metadata">

**Author:** ![Rebman22](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rebman22/32/214178_2.png) [@Rebman22](https://forum.choiceofgames.com/u/Rebman22)\
**Post date:** [June 15, 2022, 6:30pm UTC](https://forum.choiceofgames.com/t/how-to-add-content-on-the-stats-page-after-the-start-of-the-game/120175/9 "2022-06-15T18:30:41Z")

</div>

Thanks!!!

Another problem has been resolved for me.

---

<div class="post-metadata">

**Author:** ![Rebman22](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rebman22/32/214178_2.png) [@Rebman22](https://forum.choiceofgames.com/u/Rebman22)\
**Post date:** [June 15, 2022, 6:31pm UTC](https://forum.choiceofgames.com/t/how-to-add-content-on-the-stats-page-after-the-start-of-the-game/120175/10 "2022-06-15T18:31:34Z")

</div>

I meant that there’s a choice then the options for different stats, such as relationships, personality, morality etc.

---

<div class="post-metadata">

**Author:** ![Nocturnal\_Stillness](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/nocturnal_stillness/32/100414_2.png) [@Nocturnal\_Stillness](https://forum.choiceofgames.com/u/Nocturnal_Stillness)\
**Post date:** [June 15, 2022, 10:47pm UTC](https://forum.choiceofgames.com/t/how-to-add-content-on-the-stats-page-after-the-start-of-the-game/120175/11 "2022-06-15T22:47:19Z")

</div>

You could also make it even simpler by using a string variable instead.

```nohighlight
*create jay_status "you don't know who this is"

*label jay
There is a guy standing in front of you. $!{jay_status}.
*choice
    #You know Jay.
        *set jay_status "Jay is an acquaintance"
        *goto jay
    #J-man is my friend.
        *set jay_status "Jay is a good friend"
        *goto jay
    #Who is this guy?
        *set jay_status "You don't know who this is"
        *goto jay

```

---

<div class="post-metadata">

**Author:** ![Anjie](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/anjie/32/165888_2.png) [@Anjie](https://forum.choiceofgames.com/u/Anjie)\
**Post date:** [June 18, 2022, 2:14pm UTC](https://forum.choiceofgames.com/t/how-to-add-content-on-the-stats-page-after-the-start-of-the-game/120175/12 "2022-06-18T14:14:56Z")

</div>

I’m still not too sure what you mean, sorry \>\< From what I gather, I think you want a choice on the stats screen that navigates to a separate relationships/ character page?

If so, what you can do is create entirely separate scene files based on what you want. Say, `relationships.txt` and `character_guide.txt`

```nohighlight
*choice
      #View relationships
            *goto_scene relationships
      #Read a description of the characters
            *goto_scene character_guide

```

and then to link everything back nicely on each separate page (I’ll use the `relationships.txt` one as an example:

```nohighlight
*choice
      #Read a description of the characters
            *goto_scene character_guide
      #Return to main menu
            *goto_scene choicescript_stats

```
