Stats code help

Hello, I’ve been trying for a while now to figure out why some parts of my stats code aren’t working but I really can’t tell. I’m not getting any errors either. (Also Stats is defined elsewhere, just not in this bit).

My code looks like this:

  #Index.
    *label Index
    *stat_chart
     text ArkodiRelationship Relationship
    *choice
     #Arkodians (Arkodis)
       [b]Arkodians (Arkodis):[/b]
       *line_break
       Pronounced: [i] ar-KO-dee-ans [/i]
       *line_break
       *choice
        #Return to Index
         *goto Index
        #Return to Stats
         *goto Stats
       *finish

    *line_break
    *stat_chart
     text WildlandsRelationship Relationship
    *choice
     #Wild Lands
       [b]Wild Lands:[/b]
       *line_break
       *choice
        #Return to Index
         *goto Index
        #Return to Stats
         *goto Stats
       *finish

The result was this:
Screen Shot 2020-01-05 at Sun, 5 Jan 3.35.32

So, although it does show the Arkodi section of code, it doesn’t show the Wild Lands at all or anything after it. Please if anyone knows what’s wrong, I really need the help!
Thanks :slight_smile:

That looks somewhat messy. Now…i am not the best when it comes to coding…i have my ways, but i make sure to make it easier on myself.

I went to CSIDE and decided to make it this way, i had no errors nor issues.

*fake_choice
    #Index
        *goto Index
    
*label Index

What do you wish to check?

*fake_choice
    #Relationships
        *goto relationships
    #Don't know yet.
        *goto Index
    
*label relationships
*page_break

Who's relationship you wish to check?

*fake_choice
    #Arkodians (Arkodis)
        *goto arkodis

*label arkodis
*page_break

[b]Arkodians (Arkodis):[/b]
*line_break
Pronounced: [i]ar-KO-dee-ans[/i]

*stat_chart
    text arkodirelationship Relationship
    

*fake_choice
    #Back to relationships.
        *goto relationships

Works perfect for me. Maybe try it like that.

image

1 Like

Just a question, I never got what the point of fake choices were? And I’ll try your way that’ll probably be better, thanks! Also wondering if there is a way for me to do a percentage (so relationships), then one choice (Arkodi) then another relationship percentage then another choice and so on? I think there’s a few basics I need to go over :sweat_smile:

I think I might’ve not understood that as well as I thought I did. I tried to recopy your code-ish but it still won’t show the wildlands after the arkodi. I think I did something wrong…

  #Index.
    *label Index
    *stat_chart
     text ArkodiRelationship Relationship
    *fake_choice
     #Arkodians (Arkodis)
       *goto Arkodi
    *stat_chart
     text WildlandsRelationship Relationship
    *fake_choice
     #Wild Lands
       *goto WildLands

*label Arkodi
[b]Arkodians (Arkodis):[/b]
*line_break
Pronounced: [i] ar-KO-dee-ans [/i]
*line_break
*choice
  #Return to Index
    *goto Index
  #Return to Stats
    *goto Stats
*finish

*label WildLands
[b]Wild Lands:[/b]
*line_break
*choice
  #Return to Index
    *goto Index
  #Return to Stats
    *goto Stats
*finish

Please try to avoid double posting. If your most recent post is the last one, just edit that one instead of making a new post. :slight_smile:

Could you elaborate a bit on exactly what the issue you’re encountering is? I might be able to rewrite this code into something a bit more manageable. I usually advise against using labels In a choice body unless the text you use there is used elsewhere. For a stats screen, I suggest making the choice tree with *gotos, placing the labels outside of the tree, and then using the choice tree after the information on those labels is displayed.

1 Like

(The second code was me trying to use Mystic’s idea by tweaking different parts. i left the first to compare but I’ll try not to do any others.)
I’m trying to write an Index, where it shows their current relationship, with a choice under it to see more detailed information.
The problem I’m getting is that it shows the first option (Arkodi) and their relationship, but all relationship bars and choices after that don’t show up (Wildlands).
I’m not sure what you mean by choice trees?

I can’t fully test, because you don’t give the code for the relationship variables …

… However, maybe this will work?

*label Index
*stat_chart
    text ArkodiRelationship Relationship
*stat_chart
    text WildlandsRelationship Relationship
*fake_choice
     #Arkodians (Arkodis)
       *goto Arkodi
     #Wild Lands
       *goto WildLands

*label Arkodi
[b]Arkodians (Arkodis):[/b]
*line_break
Pronounced: [i] ar-KO-dee-ans [/i]
*line_break
*choice
  #Return to Index
    *goto Index
  #Return to Stats
    *goto Stats
*finish

*label WildLands
[b]Wild Lands:[/b]
*line_break
*choice
  #Return to Index
    *goto Index
  #Return to Stats
    *goto Stats
*finish
1 Like

The variables, at least for now, are just “Positive” or “Negative” (which is changable by choices ingame). Thanks for that I’ll give it a shot :smiley:

Edit: Thanks yes that works! I’ll just have to separate the relationship bars from the choices. Thanks again that’ll help so much!

Edit: trevers17, I’ve just figured out what you meant by choicetree, and that makes a lot of sense! It really cleans things up too!

2 Likes

Question resolved!