# Hidden versus Conditional Stats

**URL:** <https://forum.choiceofgames.com/t/hidden-versus-conditional-stats/1298>\
**Category:** General\
**Created:** [April 30, 2013, 7:21pm UTC](https://forum.choiceofgames.com/t/hidden-versus-conditional-stats/1298 "2013-04-30T19:21:14Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![adjppm1227](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@adjppm1227](https://forum.choiceofgames.com/u/adjppm1227)\
**Post date:** [April 30, 2013, 7:21pm UTC](https://forum.choiceofgames.com/t/hidden-versus-conditional-stats/1298/1 "2013-04-30T19:21:14Z")

</div>

Le sigh. ChoiceScript is by far the most challenging skill I have ever tried to master…and I like a challenge. But only in the same aspect you like a puzzle you can solve. ChoiceScript is like that million-piecer to me. Anyway…

I’ve decided that, if I have to, I’ll simply have “hidden” stats. Those stats you create, but the player doesn’t see them on the stats screen. Only, I hate hidden stats. To no end. So, I ask two things.

One: Can you something where the stat appears only a certain time, and only through a certain choicepath?

Two: What are your thoughts on hidden vs. conditional stats?

---

<div class="post-metadata">

**Author:** ![RockyBalboa](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@RockyBalboa](https://forum.choiceofgames.com/u/RockyBalboa)\
**Post date:** [April 30, 2013, 7:25pm UTC](https://forum.choiceofgames.com/t/hidden-versus-conditional-stats/1298/2 "2013-04-30T19:25:04Z")

</div>

1. Yes, I’m pretty sure you can, don’t know how to though.

---

<div class="post-metadata">

**Author:** ![adjppm1227](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@adjppm1227](https://forum.choiceofgames.com/u/adjppm1227)\
**Post date:** [April 30, 2013, 7:27pm UTC](https://forum.choiceofgames.com/t/hidden-versus-conditional-stats/1298/3 "2013-04-30T19:27:02Z")

</div>

@RockyBalboa I’ve been looking into it. You can, that’s a certainty. But I couldn’t read this computer language if it meant my life. LOL

---

<div class="post-metadata">

**Author:** ![hahaha01357](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/hahaha01357/32/915_2.png) [@hahaha01357](https://forum.choiceofgames.com/u/hahaha01357)\
**Post date:** [April 30, 2013, 7:27pm UTC](https://forum.choiceofgames.com/t/hidden-versus-conditional-stats/1298/4 "2013-04-30T19:27:22Z")

</div>

Or maybe… at certain point in your story, you can have description of your skills be given to you in-game.

---

<div class="post-metadata">

**Author:** ![adjppm1227](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@adjppm1227](https://forum.choiceofgames.com/u/adjppm1227)\
**Post date:** [April 30, 2013, 7:31pm UTC](https://forum.choiceofgames.com/t/hidden-versus-conditional-stats/1298/5 "2013-04-30T19:31:02Z")

</div>

@hahaha01357 It won’t work. It would in theory, but not practice. As it isn’t really a…skill…per se. It’s a relationship, and I’ll need to use \*if statements as well. It would be simpler, I think, if I didn’t tell you you had an invisible stat floating around. And not really good style, either. It’s almost like saying that someone in this room is a check for a million dollars, but you’ll never find it.

---

<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:** [April 30, 2013, 7:36pm UTC](https://forum.choiceofgames.com/t/hidden-versus-conditional-stats/1298/6 "2013-04-30T19:36:32Z")

</div>

Yes you can make sure that stats appear only under certain conditions. You can place if statements in the stats chart. I did it in my game to make sure that most NPCs only showed up once you met them. So whenever the player encountered a new NPC I’d have

\*set met\_bob true

and then in the stats file I’d have

```

*set met_bob true

*if met_bob

   *stat_chart
      percent rel_bob Bob

```

or

```

*set met_bob "true"

*if met_bob="true"

   *stat_chart
      percent rel_bob Bob

```

Where rel\_bob is their relationship with Bob and it would mean it would only show up when they’d met Bob. That’s working on memory though.

Aha! Worked out what I did wrong. True is finally making sense to me. That’s actually helped me a lot. Of course I’ve no idea if it works in the new code.

---

<div class="post-metadata">

**Author:** ![adjppm1227](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@adjppm1227](https://forum.choiceofgames.com/u/adjppm1227)\
**Post date:** [April 30, 2013, 7:52pm UTC](https://forum.choiceofgames.com/t/hidden-versus-conditional-stats/1298/7 "2013-04-30T19:52:12Z")

</div>

@FairyGodfeather

Oh…wow, that’s going to make this sooo much fun. I’ll probably have ten stat charts to choose from once I’m done. Le sigh again! Also, I’ve found a problem.

I have \*create king adalyn 50 on my ‘startup.’ I have him on my choicescript\_stats too. But it says “Invalid creation instruction, value must be a number, true/false, or quoted string: king adalyn 50” I quite obviously have a number value, but…yeah, it’s not happening.

---

<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:** [April 30, 2013, 7:55pm UTC](https://forum.choiceofgames.com/t/hidden-versus-conditional-stats/1298/8 "2013-04-30T19:55:26Z")

</div>

Sorry I haven’t downloaded the new version of choicescript yet so I’m not sure what the bug could be.

Can you use spaces in variables?

Tweaked my code above a bit because I messed up.

---

<div class="post-metadata">

**Author:** ![CJW](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cjw/32/111787_2.png) [@CJW](https://forum.choiceofgames.com/u/CJW)\
**Post date:** [April 30, 2013, 8:01pm UTC](https://forum.choiceofgames.com/t/hidden-versus-conditional-stats/1298/9 "2013-04-30T20:01:33Z")

</div>

@FairyGodfeather  
@adjppm1227

No, you can’t. Try \*create king\_adalyn 50

---

<div class="post-metadata">

**Author:** ![adjppm1227](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@adjppm1227](https://forum.choiceofgames.com/u/adjppm1227)\
**Post date:** [April 30, 2013, 9:00pm UTC](https://forum.choiceofgames.com/t/hidden-versus-conditional-stats/1298/10 "2013-04-30T21:00:57Z")

</div>

@CJW It worked. Thanks. 😃

@FairyGodfeather I have four story routes, which in turn will break into other story routes, which in turn gives me TOO MANY CHARACTERS to make \*if statements for. Also, I couldn’t do all the combinations. If I tried, you may get this…

\*if A\_met=“true” and B\_met=“true” and C\_met=“true” and so on, and I may even have to use AA\_met=“true”

So the \*if statements are a no. LOL. Do you know how to make multiple stat charts? I have an idea…

---

<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:** [April 30, 2013, 9:34pm UTC](https://forum.choiceofgames.com/t/hidden-versus-conditional-stats/1298/11 "2013-04-30T21:34:31Z")

</div>

It mostly requires organisation. It’s also useful for setting variables in the story. Have a look at Zombie Exodus’ code for instance. That has a lot of variables depending on relationships with people and if you’ve encountered them or not.

For my games I’m planning relationships to be a large part of it. I eventually want the relationships on the stat page to change depending on how you’ve interacted with them so I was mostly laying the ground work for that.

On the stat screen it’s just.

```

*If met_bob
	Bob is a great guy and has been your best friend since childhood.
	*stat_chart
		percent rel_bob Bob

*if met_bill
	Bill's an annoying work-colleague and is due you cash. 
	*stat_chart
		percent rel_bill Bill

*if met_ben
	Ben's a technical genius and said to call him if you ever needed help.
	*stat_chart
		percent rel_ben Ben

```

So while there’s a lot of if statements, it’s all organised and on the stat screen for me. And it means I can also run a check in the game if the MCs computer breaks down.

\*if met\_ben  
#Phone Ben for tech support.

It might not be the best way to do things but it has been working for me so far. Of course if you have a story where you just meet every character then there’s no reason to hide things. Or you could just set variables for part1 part2 part3 part4 and then on your stat chart have a if part1 show these stats and deal with them all in one huge chunk.

Or set the defaul value of every stat to 0 and have every stat with an if \>0 statement in front of it.

@adjppm1227 Yeah you can make multiple stat\_charts. You can make as many of them as you want. They also don’t need to be on the stat page, they can be anywhere.

---

<div class="post-metadata">

**Author:** ![adjppm1227](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@adjppm1227](https://forum.choiceofgames.com/u/adjppm1227)\
**Post date:** [April 30, 2013, 10:00pm UTC](https://forum.choiceofgames.com/t/hidden-versus-conditional-stats/1298/12 "2013-04-30T22:00:08Z")

</div>

@FairyGodfeather OrganiSation? Not organiZation? Are you UK? Lol, being a writer gives you a keen grammatical eye.

Anyway, my plan is to do something like this.

So you have four relationship charts.

Relations w/ King…Relations w/ Slaves…Relations w/ Queen…Relations w/ Prince

And inside these four charts, for example, it’s broken up into something like this.

New People First Scene  
X  
X  
X

New People Second Scene  
X  
X  
X

It’s the best I’ve come up with so far that saves me the massively complicated \*if statements.

And I know you can have multiple stat pages…I just don’t know how to make another. LOL

---

<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:** [April 30, 2013, 10:09pm UTC](https://forum.choiceofgames.com/t/hidden-versus-conditional-stats/1298/13 "2013-04-30T22:09:29Z")

</div>

Yes I’m a Brit and an insomniac, hence why I’m awake so late. 🙂 You can show code with \< pre \> and \< /pre \>

You can have multiple stat pages. You can also have multiple stat charts on the same page. Doing things your way should be easy enough though.

---

<div class="post-metadata">

**Author:** ![adjppm1227](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@adjppm1227](https://forum.choiceofgames.com/u/adjppm1227)\
**Post date:** [April 30, 2013, 10:40pm UTC](https://forum.choiceofgames.com/t/hidden-versus-conditional-stats/1298/14 "2013-04-30T22:40:17Z")

</div>

So if I wanted to write something on a stat chart, I would put…

\< pre \> XXX \< /pre \> ?

And how to you make more stat pages?

---

<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:** [April 30, 2013, 10:45pm UTC](https://forum.choiceofgames.com/t/hidden-versus-conditional-stats/1298/15 "2013-04-30T22:45:27Z")

</div>

No. \< pre \> is just for forum to make code show up. (No spaces).

The wiki’s better for this [http://choicescriptdev.wikia.com/wiki/Stats%26Stats\_Screen](http://choicescriptdev.wikia.com/wiki/Stats%26Stats_Screen)

---

<div class="post-metadata">

**Author:** ![adjppm1227](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@adjppm1227](https://forum.choiceofgames.com/u/adjppm1227)\
**Post date:** [April 30, 2013, 10:48pm UTC](https://forum.choiceofgames.com/t/hidden-versus-conditional-stats/1298/16 "2013-04-30T22:48:56Z")

</div>

@FairyGodfeather Oh. Then I’ll just use text and never give you a chance to replace it. Lol. And thanks. 😃

(I hate when I can’t sleep)

---

<div class="post-metadata">

**Author:** ![lackofmops](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/lackofmops/32/986_2.png) [@lackofmops](https://forum.choiceofgames.com/u/lackofmops)\
**Post date:** [June 1, 2013, 10:12pm UTC](https://forum.choiceofgames.com/t/hidden-versus-conditional-stats/1298/17 "2013-06-01T22:12:26Z")

</div>

Can you something where the stat appears only a certain time, and only through a certain choicepath?

Sorry, I’m not sure what this means. But I could help, if you clarified a little. Sorry, not trying to be rude it’s my fault. I’d love to help though.

---

<div class="post-metadata">

**Author:** ![Gower](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/gower/32/21972_2.png) [@Gower](https://forum.choiceofgames.com/u/Gower)\
**Post date:** [February 4, 2020, 7:05pm UTC](https://forum.choiceofgames.com/t/hidden-versus-conditional-stats/1298/18 "2020-02-04T19:05:19Z")

</div>

Split this topic on February 4, 2020, 7:05pm UTC

A post was merged into an existing topic: [“Hidden” stats, what am I doing wrong?](https://forum.choiceofgames.com/t/hidden-stats-what-am-i-doing-wrong/27577/8)
