# Hiding Stats: Making two separate stat screens for two different main characters (RESOLVED)

**URL:** <https://forum.choiceofgames.com/t/hiding-stats-making-two-separate-stat-screens-for-two-different-main-characters-resolved/21052>\
**Category:** ChoiceScript Help\
**Created:** [October 10, 2016, 4:04am UTC](https://forum.choiceofgames.com/t/hiding-stats-making-two-separate-stat-screens-for-two-different-main-characters-resolved/21052 "2016-10-10T04:04:04Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![J.M.Williams](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/j.m.williams/32/19075_2.png) [@J.M.Williams](https://forum.choiceofgames.com/u/J.M.Williams)\
**Post date:** [October 10, 2016, 4:04am UTC](https://forum.choiceofgames.com/t/hiding-stats-making-two-separate-stat-screens-for-two-different-main-characters-resolved/21052/1 "2016-10-10T04:04:04Z")

</div>

So at the beginning of my story I have two paths the reader can take: on one path you can be a woman Healer in the far southern reaches of the Kingdom plagued by soldiers of the King and on the other path you can choose to be a man known as a thief who consorts with pirates in a northerly port town. Both of these characters will lead the reader on their own unique adventures but eventually their journeys will cross and coincide. But until that point I need to create two separate stat screens for each character. I can’t figure out how to set it up in the beginning of the story without giving them both the same stat screen…I’ve tried various \*if statements but still can’t get it to work. And I’ve looked through some of the forums and can’t find a similar situation.

Any light shed on this would be incredibly helpful. Thanks!

---

<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:** [October 10, 2016, 4:26am UTC](https://forum.choiceofgames.com/t/hiding-stats-making-two-separate-stat-screens-for-two-different-main-characters-resolved/21052/2 "2016-10-10T04:26:00Z")

</div>

I think the best option is to just use the same stat screen and have \*if statements at the top so it only displays the current character.

Otherwise you will have issues returning from the stats screen. (I’m not sure if those have been fixed or not.)

I think there’s a bit of discussion on the following topics about using gosub scene in the stats screen.

> [@New features in ChoiceScript: \*gosub\_scene, \*goto\_scene label](https://forum.choiceofgames.com/t/new-features-in-choicescript-gosub-scene-goto-scene-label/2329/):
>
> \*goto\_scene now optionally allows you to specify a label, like this: \*goto\_scene invitations cordial That would go to the invitations.txt file and automatically \*goto cordial at the start of the file. There’s a new command, \*gosub\_scene, that allows you to visit a scene file and then \*return from it. Like \*goto\_scene, you can use \*gosub\_scene to visit a specific label in another file and return from there. \*gosub\_scene invitations cordial These features are available only in the lat…

> [@Grr...More restrictions found on the stats screen](https://forum.choiceofgames.com/t/grr-more-restrictions-found-on-the-stats-screen/2568/):
>
> Alright, so it’s okay to use a \*gosub\_scene within the stat screen, but if you THEN use a choice and a \*goto within that \*gosub, suddenly the whole thing breaks seemingly. When I then click return to game, it only returns me to the stats page, and then I’m stuck there forever. Now why is that? Going on the name, \*goto, one would think it actually jumps to a piece of code within the scene. But instead, it seems it creates a new iteration of the page you’re on, so it doesn’t move you through spac…

---

<div class="post-metadata">

**Author:** ![Jacic](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jacic/32/7061_2.png) [@Jacic](https://forum.choiceofgames.com/u/Jacic)\
**Post date:** [October 10, 2016, 5:23am UTC](https://forum.choiceofgames.com/t/hiding-stats-making-two-separate-stat-screens-for-two-different-main-characters-resolved/21052/3 "2016-10-10T05:23:12Z")

</div>

If you only want one character active, use the \*if command like feather is describing. If you want a separate screen for each character I use a \*choice command as what I find to be the most simple option for myself anyway.

So at the top of your stats screen have  
\*label stats (This gives you the command to return to main screen without getting an eternal loop happening).

Below this have what ever info/general stats you want then have then add a choice to move to another screen.

```
*choice
#Character A's screen
*goto characterA

#Character B's screen 
*goto characterB

*label characterA
Blah blah
*choice
#return to main page
*goto stats

#go to character B's info
*goto characterB

*label characterB 
(etc)

```

(Sorry can’t get the proper spacing to work but hope that gives you an idea of what I’m on about).

---

<div class="post-metadata">

**Author:** ![Shawn\_Patrick\_Reed](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/shawn_patrick_reed/32/20691_2.png) [@Shawn\_Patrick\_Reed](https://forum.choiceofgames.com/u/Shawn_Patrick_Reed)\
**Post date:** [October 10, 2016, 6:28pm UTC](https://forum.choiceofgames.com/t/hiding-stats-making-two-separate-stat-screens-for-two-different-main-characters-resolved/21052/4 "2016-10-10T18:28:13Z")

</div>

\*create charnum 0

At the part where you choose whether to be the healer or thief- if you choose the healer, \*set charnum 1, if you choose the thief \*set charnum 2.

At the beginning of the stats screen,  
\*if charnum = 0  
Some statement about not knowing which character is chosen by fate or whatnot.  
\*label healer  
\*if charnum = 1  
Then under this you display all of your stats for the healer. At the end of this section, \*goto endstats  
\*label thief  
\*if charnum = 2  
Under this you display all of your stats for the thief. At the end of this section, \*goto endstats  
\*if charnum = 3  
Under this, you display the stats for -both- characters for when they meet up and join. Then, at the end, \*goto endstats  
\*label endstats  
\*finish

And in the main story, when the characters meet up, \*set charnum 3

---

<div class="post-metadata">

**Author:** ![J.M.Williams](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/j.m.williams/32/19075_2.png) [@J.M.Williams](https://forum.choiceofgames.com/u/J.M.Williams)\
**Post date:** [October 11, 2016, 4:06am UTC](https://forum.choiceofgames.com/t/hiding-stats-making-two-separate-stat-screens-for-two-different-main-characters-resolved/21052/5 "2016-10-11T04:06:46Z")

</div>

The \*charnum commands worked! Thank you! You have no idea how frustrating that was to me haha I was trying everything! And then your way worked perfectly! Thank you so much!

---

<div class="post-metadata">

**Author:** ![Shawn\_Patrick\_Reed](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/shawn_patrick_reed/32/20691_2.png) [@Shawn\_Patrick\_Reed](https://forum.choiceofgames.com/u/Shawn_Patrick_Reed)\
**Post date:** [October 11, 2016, 4:08am UTC](https://forum.choiceofgames.com/t/hiding-stats-making-two-separate-stat-screens-for-two-different-main-characters-resolved/21052/6 "2016-10-11T04:08:54Z")

</div>

_salutes_ There was a project I worked on once that needed to change the stat screen around. It was incredibly frustrating, and I went through a lot of trial and error figuring out how to make it do what I wanted it to. I’m glad to be able to help someone else through a chunk of the frustration.

---

<div class="post-metadata">

**Author:** ![J.M.Williams](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/j.m.williams/32/19075_2.png) [@J.M.Williams](https://forum.choiceofgames.com/u/J.M.Williams)\
**Post date:** [October 11, 2016, 4:15am UTC](https://forum.choiceofgames.com/t/hiding-stats-making-two-separate-stat-screens-for-two-different-main-characters-resolved/21052/7 "2016-10-11T04:15:17Z")

</div>

Many thanks 🙂 It feels good to have that in order.

Oh and thanks to everyone else who posted their help! I tried doing it the other ways but I’m still not fully tech savvy.

This whole community of writers and players is really quite wonderful, I’m positively beaming right now haha and over such a simple matter.

Thanks guys 🙂

---

<div class="post-metadata">

**Author:** ![J.M.Williams](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/j.m.williams/32/19075_2.png) [@J.M.Williams](https://forum.choiceofgames.com/u/J.M.Williams)\
**Post date:** [October 11, 2016, 5:47am UTC](https://forum.choiceofgames.com/t/hiding-stats-making-two-separate-stat-screens-for-two-different-main-characters-resolved/21052/8 "2016-10-11T05:47:07Z")

</div>

Okay so now I want to have access to a third character that acts as a sort of animal companion to the Healer. And the reader has to choose the right path in order to get the animal companion. But I want to make it so the animal companion has its own separate stats from the Healer. @Jacic explained a bit earlier about switching between stat choices but I didn’t fully understand it…

So, the story goes that Merti has a choice to either kill a magpie trapped in one of her nets or save him. If she kills him then he is not apart of the story. But if she saves him then he becomes her companion. So I’m trying to figure out how to set it up so that when she chooses Mig they each have their own separate stats in the stat screen.

This is what I have so far. I realize the coding is wrong for charnum 3 and 4 but I just don’t know how to set it up right with switching between choices in the stat screen

\*label stats  
\*if charnum = 0  
Choose Your Fate

\*label Healer  
\*if charnum = 1  
\*stat\_chart  
opposed\_pair Merciful  
Vengeful  
opposed\_pair Integrity  
Subterfuge  
opposed\_pair Helpful  
Lone Wolf  
percent Will  
\*goto endstats

\*label thief  
\*if charnum = 2  
\*stat\_chart  
percent Stealth  
percent strength Silver Tongue  
percent Comradery  
\*goto endstats

\*label Mig  
\*if charnum = 3  
\*stat\_chart  
percent Health  
percent Loyalty  
\*goto endstats

\*label animal  
\*if charnum = 4  
\*choice  
#Merti  
\*goto Healer

```
    #Mig 
      *goto Mig

```

\*label together  
\*if charnum = 4  
\*choice  
#Merti  
\*goto Healer

```
     #Rigel 
       *goto thief

```

\*label endstats  
\*finish

Oh and the same goes for when the Healer and the thief meet up later on in the story…I want separate stat screens. So I would also have to set up two different stat paths, one where Mig is apart of the story and one where Mig isn’t, which would also be a bit complicated in coding it correctly. So by the middle of the story I would either have a stat screen with three separate character stats or a stat screen with only two separate character stats.

By the way, having it set up this way allows me to see the choices but when I click on the choice it doesn’t take me anywhere, it keeps me on the stats page with the two choices listed.

---

<div class="post-metadata">

**Author:** ![Jacic](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jacic/32/7061_2.png) [@Jacic](https://forum.choiceofgames.com/u/Jacic)\
**Post date:** [October 11, 2016, 5:56am UTC](https://forum.choiceofgames.com/t/hiding-stats-making-two-separate-stat-screens-for-two-different-main-characters-resolved/21052/9 "2016-10-11T05:56:33Z")

</div>

Can use an \*if command if using a \*choice to switch between screens “in the party” or what ever other provisor you want.  
ie

```
*choice
   *if (magpiestat = "inparty") #Go to the magpie's stat screen.
      *goto magpie
 
   *if (thiefstat = "inparty") #Go to the thief's stat screen.
      *goto theif

```

and so on.

So for example if you save the magpie then set the magpiestat as “inparty” in order to make that screen visible. Not sure if that makes sense?

---

<div class="post-metadata">

**Author:** ![J.M.Williams](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/j.m.williams/32/19075_2.png) [@J.M.Williams](https://forum.choiceofgames.com/u/J.M.Williams)\
**Post date:** [October 11, 2016, 5:57am UTC](https://forum.choiceofgames.com/t/hiding-stats-making-two-separate-stat-screens-for-two-different-main-characters-resolved/21052/10 "2016-10-11T05:57:12Z")

</div>

I’ll try that, thanks 🙂

---

<div class="post-metadata">

**Author:** ![J.M.Williams](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/j.m.williams/32/19075_2.png) [@J.M.Williams](https://forum.choiceofgames.com/u/J.M.Williams)\
**Post date:** [October 11, 2016, 5:57am UTC](https://forum.choiceofgames.com/t/hiding-stats-making-two-separate-stat-screens-for-two-different-main-characters-resolved/21052/11 "2016-10-11T05:57:55Z")

</div>

Do I put that under a charnum? or is it its own separate thing?

---

<div class="post-metadata">

**Author:** ![Jacic](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jacic/32/7061_2.png) [@Jacic](https://forum.choiceofgames.com/u/Jacic)\
**Post date:** [October 11, 2016, 6:03am UTC](https://forum.choiceofgames.com/t/hiding-stats-making-two-separate-stat-screens-for-two-different-main-characters-resolved/21052/12 "2016-10-11T06:03:40Z")

</div>

If I understand right what Shawn\_Patrick\_Reed and I are suggesting are two different ways of coming at the same problem (He can correct me if I’m wrong 🙂 )

What I think his method will allow you to do is turn the stat screen from one person to another depending on who is the focus of the story. (ie if charnum = 2, you should have the thief’s details on the stat screen visible but the others will be invisible).

What I’m suggesting is each character has its own screen from the start via a choice at the bottom of the screen. Since some of the characters may or may not be present in the story depending on what you do, you can blank them out by setting an \*if variable that needs to be activated. (Much like your charnum one but I’m giving each character a separate variable (ie magpiestat and thiefstat).

---

<div class="post-metadata">

**Author:** ![J.M.Williams](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/j.m.williams/32/19075_2.png) [@J.M.Williams](https://forum.choiceofgames.com/u/J.M.Williams)\
**Post date:** [October 11, 2016, 6:09am UTC](https://forum.choiceofgames.com/t/hiding-stats-making-two-separate-stat-screens-for-two-different-main-characters-resolved/21052/13 "2016-10-11T06:09:42Z")

</div>

Okay I’m trying it out now

_crossing my fingers_

🙂 🙂

---

<div class="post-metadata">

**Author:** ![Jacic](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jacic/32/7061_2.png) [@Jacic](https://forum.choiceofgames.com/u/Jacic)\
**Post date:** [October 11, 2016, 6:14am UTC](https://forum.choiceofgames.com/t/hiding-stats-making-two-separate-stat-screens-for-two-different-main-characters-resolved/21052/14 "2016-10-11T06:14:25Z")

</div>

No probs, it should look something like this (just so you can see if this is what you’re going for)

 ![](https://global.discourse-cdn.com/choiceofgames/original/3X/9/2/92e23a85374f05d6f720dba2a24d8b25870ca63d.jpg)

---

<div class="post-metadata">

**Author:** ![J.M.Williams](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/j.m.williams/32/19075_2.png) [@J.M.Williams](https://forum.choiceofgames.com/u/J.M.Williams)\
**Post date:** [October 11, 2016, 6:19am UTC](https://forum.choiceofgames.com/t/hiding-stats-making-two-separate-stat-screens-for-two-different-main-characters-resolved/21052/15 "2016-10-11T06:19:41Z")

</div>

So this is how I’ve coded it now, and so far the stats screen shows three separate characters like you showed, but I don’t know how to make it so that I can have two different charnums be accessible at the same time…So, I set Merti’s scene with charnum 1, but then within that scene she finds Mig meaning I now have to set charnum 3. but when I do that, it makes it so that all three stats have the same as Mig’s stat.

\*label stats

\*choice  
#Merti  
\*goto Merti  
#Rigel  
\*goto Rigel  
#Mig  
\*goto Mig

\*label Merti  
\*if charnum = 1  
\*stat\_chart  
opposed\_pair Merciful  
Vengeful  
opposed\_pair Integrity  
Subterfuge  
opposed\_pair Helpful  
Lone Wolf  
percent Will  
\*goto endstats

\*label Rigel  
\*if charnum = 2  
\*stat\_chart  
percent Stealth  
percent strength Silver Tongue  
percent Comradery  
\*goto endstats

\*label Mig  
\*if charnum = 3  
\*stat\_chart  
percent Health  
percent Loyalty  
\*goto endstats

\*label endstats  
\*finish

---

<div class="post-metadata">

**Author:** ![J.M.Williams](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/j.m.williams/32/19075_2.png) [@J.M.Williams](https://forum.choiceofgames.com/u/J.M.Williams)\
**Post date:** [October 11, 2016, 6:48am UTC](https://forum.choiceofgames.com/t/hiding-stats-making-two-separate-stat-screens-for-two-different-main-characters-resolved/21052/16 "2016-10-11T06:48:05Z")

</div>

Okay I figured it out using text name and page break to separate the charnums 🙂

Thanks so much for all the help!

\*label stats  
\*if charnum = 0  
Choose Your Fate

\*label Healer  
\*if charnum = 1  
\*stat\_chart  
opposed\_pair Merciful  
Vengeful  
opposed\_pair Integrity  
Subterfuge  
opposed\_pair Helpful  
Lone Wolf  
percent Will  
\*goto endstats

\*label thief  
\*if charnum = 2  
\*stat\_chart  
percent Stealth  
percent strength Silver Tongue  
percent Comradery  
\*goto endstats

\*label Magpie  
\*if charnum = 3  
\*stat\_chart  
text Merti  
opposed\_pair Merciful  
Vengeful  
opposed\_pair Integrity  
Subterfuge  
opposed\_pair Helpful  
Lone Wolf  
percent Will  
\*goto endstats  
\*page\_break  
\*stat\_chart  
text Mig  
percent Health  
percent Loyalty

\*label three  
\*if charnum = 5  
\*stat\_chart  
text Merti  
opposed\_pair Merciful  
Vengeful  
opposed\_pair Integrity  
Subterfuge  
opposed\_pair Helpful  
Lone Wolf  
percent Will  
\*goto endstats  
\*page\_break  
\*stat\_chart  
text Mig  
percent Health  
percent Loyalty  
\*page\_break  
\*stat\_chart  
text Rigel  
percent Stealth  
percent strength Silver Tongue  
percent Comradery  
\*goto endstats

\*label two  
\*if charnum = 5  
\*stat\_chart  
text Merti  
opposed\_pair Merciful  
Vengeful  
opposed\_pair Integrity  
Subterfuge  
opposed\_pair Helpful  
Lone Wolf
