Please help with an error! I don't get it!

Okay so, I have this stats screen all set up, and I copied and pasted the setup from my other game where it works fine - though it only has one option THERE, so maybe multiple options is messing it up here? - and it’s giving me an error that literally makes no sense! Unless I messed up my copy pasting.

It’s saying “choicescript_stats line 40: Invalid option; conflicts with option ‘???’ on line 28”. Can someone please look at this and figure out what’s going on, cause it looks fine to me? It’s literally copied and pasted… :frowning:

I’ll mark out lines 28 and 40 with “&”'s, but they’re not like ACTUALLY in the real code okay? :slight_smile: I just added them for quick finding relevance here on the forum post!!!

This is a stats screen!

*label mainpage

*stat_chart
  text "$!{player_name}" player_name
  percent relationship
  percent biomass

*choice
  #Show acquired human forms.
    *goto humanforms
  #Show acquired object forms.
    *goto objectforms
  #Show acquired animal forms.
    *goto animalforms

*label humanforms

*choice
  *if amydawson
    #Amy Dawson.
      *page_break
      This form is usable by you.
      *page_break
      *goto mainpage
  *if not(amydawson)
    #???                             &&&&&&
      *page_break
      You do not have this form.
      *page_break
      *goto mainpage
  *if richardlancer
    #Richard Lancer.
      *page_break
      This form is usable by you.
      *page_break
      *goto mainpage
  *if not(richardlancer)
    #???                              &&&&&&
      *page_break
      You do not have this form.
      *page_break
      *goto mainpage

So um yeah, please help? :frowning: Why are the if not choice options making conflicts here? :frowning: Do you think I should like separate all these by different *choice thingies or what? I mean is it that they’re all stacked that’s making the random error?

EDIT: I tried changing the choice to a *fake_choice but that didn’t make the error go away. :frowning:

EDIT2: If I separate them entirely into different *choice things, the error goes away BUT it will only display ONE #??? option. I ASSUME it’s the top one. But it won’t show any of the OTHER #???'s under that.

Alll… right. What happened there is that you have 2 identical options, both in name and content.

Choicescript doesn’t allow identical choices.

2 Likes

Oh. So to make this work I’d have to like go, “#?” for the first, then for the second I’d put like “#??” and then the third could be “#???” and so on? :slight_smile: Would that get around it and satisfy Choicescript? :slight_smile:

You can try the “or” command.

I think you can change the content instead of the name :thinking:
Other workaround is to use the multireplace @{} to combine every pairs

#@{amydawson Amy Dawson|???}
   *if amydawson
      this form is usable.
   *else
      you don't have this form.
   *page_break
   *goto mainpage
1 Like

Oh! Here’s what I did, and it seems to work fine. I don’t know if using if’s and else’s would be better though? Or less messy or whatever? :slight_smile:

*fake_choice
  *if amydawson
    #Amy Dawson.
      *page_break
      This form is usable by you.
      *page_break
      *goto mainpage
  *if not(amydawson)
    #Form1
      *page_break
      You do not have this form.
      *page_break
      *goto mainpage
  *if richardlancer
    #Richard Lancer.
      *page_break
      This form is usable by you.
      *page_break
      *goto mainpage
  *if not(richardlancer)
    #Form2
      *page_break
      You do not have this form.
      *page_break
      *goto mainpage
  *if jessicaparks
    #Jessica Parks.
      *page_break
      This form is usable by you.
      *page_break
      *goto mainpage
  *if not(jessicaparks)
    #Form3
      *page_break
      You do not have this form.
      *page_break
      *goto mainpage
  *if lindawilde
    #Linda Wilde.
      *page_break
      This form is usable by you.
      *page_break
      *goto mainpage
  *if not(lindawilde)
    #Form4
      *page_break
      You do not have this form.
      *page_break
      *goto mainpage
  *if tobiasreynolds
    #Tobias Reynolds.
      *page_break
      This form is usable by you.
      *page_break
      *goto mainpage
  *if not(tobiasreynolds)
    #Form5
      *page_break
      You do not have this form.
      *page_break
      *goto mainpage
  *if alanmoors
    #Alan Moors.
      *page_break
      This form is usable by you.
      *page_break
      *goto mainpage
  *if not(alanmoors)
    #Form6
      *page_break
      You do not have this form.
      *page_break
      *goto mainpage
  *if kellyhues
    #Kelly Hues.
      *page_break
      This form is usable by you.
      *page_break
      *goto mainpage
  *if not(kellyhues)
    #Form7
      *page_break
      You do not have this form.
      *page_break
      *goto mainpage

*label objectforms

*choice
  *if cellphone
    #Cellphone.
      *page_break
      This form is usable by you.
      *page_break
      *goto mainpage
  *if not(cellphone)
    #Form01
      *page_break
      You do not have this form.
      *page_break
      *goto mainpage
  *if laptop
    #Laptop.
      *page_break
      This form is usable by you.
      *page_break
      *goto mainpage
  *if not(laptop)
    #Form02
      *page_break
      You do not have this form.
      *page_break
      *goto mainpage
  *if quarter
    #Quarter coin.
      *page_break
      This form is usable by you.
      *page_break
      *goto mainpage
  *if not(quarter)
    #Form03
      *page_break
      You do not have this form.
      *page_break
      *goto mainpage
  *if pen
    #Pen.
      *page_break
      This form is usable by you.
      *page_break
      *goto mainpage
  *if not(pen)
    #Form04
      *page_break
      You do not have this form.
      *page_break
      *goto mainpage
  *if toiletpaper
    #Toilet Paper roll.
      *page_break
      This form is usable by you.
      *page_break
      *goto mainpage
  *if not(toiletpaper)
    #Form05
      *page_break
      You do not have this form.
      *page_break
      *goto mainpage
  *if sponge
    #Sponge.
      *page_break
      This form is usable by you.
      *page_break
      *goto mainpage
  *if not(sponge)
    #Form06
      *page_break
      You do not have this form.
      *page_break
      *goto mainpage
  *if coffeecup
    #Coffee mug.
      *page_break
      This form is usable by you.
      *page_break
      *goto mainpage
  *if not(coffeecup)
    #Form07
      *page_break
      You do not have this form.
      *page_break
      *goto mainpage

And so on and so on! :slight_smile: Um, but do I have to have the distinction between 1 and 01 here if they’re in separate *choice thingies, or does the “no same names” thing apply to the ENTIRE FILE? :slight_smile:

EDIT: I’ll keep them like this just to be safe! :slight_smile: And not to tempt fate!!! <3

Nope. It applies to its own *choice. Feel free to have

*choice
   #Meow
      meow
*choice
   #Meow
      meow
*choice
   #Meow
      meow
1 Like

Oh yay! :slight_smile:That’s a relief! Thanks for helping so much!

1 Like