Multiple choice format, group names and gosub

So to stick with the theme there’s going to be two main problems here.

But first some context!

The ‘goal’ that I’m trying to achieve is to minimize the amount of visible redundant text and the page count for character creation.

The idea is to have something like:

What is your hair color, eye color etc
Select a (group name)
#options
Select a (group name)
#options
Select a (group name)
#options

What I’ve noticed though is that I can only have ONE string(simple text) per group name meaning if I want to have two separate words I need to put a underscore in between them like this:

Multiple choice
*choice Two_words some_text
    #choice11
        #choice21
        #choice22
    #choice12
        #choice21
        #choice22

Which would look like:
Select a Two_words
#options
Select a some_text
#options

When what I actually want is:
Select a hair color
#options
Select a eye color
#options

While I know I can’t use quotation or brackets to indicate a single group name, I thought I could use a string variable as a substitute(this was before my search for solutions).

Nope, still not valid.

Which also leads me to my second problem, question and script pet peeve, the *gosub and it’s terrible relationship with multiple choices.

I wanted use the nifty *gosub to simplify multiple choices so that it isn’t a wall of repetitive wall of script by doing something like:

*choice
    #choice11
        *gosub second_set
    #choice12
        *gosub second_set
    #choice13
        *gosub second_set

*label second_set
#choice21 *comment This start at the back because the first choice has the correct indentation before the gosub, or that's the idea anyway.
            #choice22
            #choice23
            #choice24

But this doesn’t work either.

I’m ready to cut my losses on the first problem, this is just me hoping something changed between the last post about it made in 2017 and now:

But I’m really hoping there’s a mcguffen or some deus ex machina to solve my second problem and if I’m just not finding it.

I think it’s important to note that I use CSIDE, maybe? In case that prevent’s something or has a fix for it, though I doubt it.

Ignore me or close this thread if I’m digging up dead cows but I really just needed to ask if there are solutions to these beside “Try something else”.

*choice hair_color eye_colour
#Brown hair.
#Brown eyes.
*set hair “Brown”
*set eyes “Brown”
*goto next_scene
#Blue eyes.
*set hair “Brown”
*set eyes “Blue”
*goto next_scene
#Red hair.
#Brown eyes.
*set hair “Red”
*set eyes “Brown”
*goto next_scene
#Blue eyes.
*set hair “Red”
*set eyes “Blue”
*goto next_scene

Is something like that what you are after? (Done a simple two hair colour and two eye colour choice for the example. )

1 Like

That would lead back to this example

With your example there you’ll get:

Select a hair_color
Brown hair
Red hair
Select a eye_color
Brown eyes
Blue eyes

When again what I actually want is a lack of an underscore, like this:
Select a hair color
Brown hair
Red hair
Select a eye color
Brown eyes
Blue eyes

There however seems to be no solution to this with how choice script is set up, so my first question is basically redundant. I could’ve typed out a better example though. Sorry

Guys guys. Please use Ctrl+Shift+C. This hurts my eyes and soul.

 hurray
   this
     text
   has
 spacing
       behind
     it
   a.k.a.
 indentation

So, for starter, I’d consider group choice as one of the oldest features (and I’d grab Dan’s collar and cry and beg for an update to it). While *goto and *image now accepts variable – *goto {label} --, *choice is a weird exception.

Unfortunately, this can’t be done. I really wish for a better command than what we have right now to do choice-group. However, making changes to CS without breaking older games will be difficult unless there’s a completely new way to create choice-group.

3 Likes

Well atleast now I can happily keep on going without paranoia eating at me. Was stressing half the day away wondering if I’m simply doing something wrong.

So… How do you close threads? I think this is about as far as this one can go.

So, to close the thread, you’ll need the lvl 4 clearance which can only be acquired by exceptional mission performance and/or getting recommendation from agent of lvl 4 or…