Coding help: Choice not showing up?

(before anyone asks, yes I’ve done a google search and searched the forums for this particular issue. I haven’t been able to find a fix.)

*fake_choice
    #I hate it with everything in me. How dare they do this to me?
        Is it the injustice that enrages you? Or do you hate them so you simply wanted the chance to kill them first?
        *fake_choice
            #It's dishonorable. How dare they treat family this way?
                *set honor %+20
            #It's too bad. I wanted to get them back for everything they've done to me.
                *set Bloodthirst %+25
    #Perhaps this is for the best?
        Do you resign yourself to this because it serves you? Or because you hope it will provide you a new, safer home?
        *fake_choice
            #It serves me, of course. The palace is where power is traded like breath.
                *set scheming %+25
            #Anything to get me away from these cruel abusers.
                *set genuine %+25
    #It scares me. The Palace is a dangerous place for those without backing.
        Does this fear cripple you?
        *fake_choice
            #Never. I'll just have to hold my head high and be brave.
                *set bravery %+25
            #I'm shaking as we speak. What am I going to do? How can I survive this?
                *set cowardice %+25

for some reason, the second option in the third *fake_choice isn’t showing up.

I’ve double checked the code so many times at this point, and the other two fake choices are set up the exact same way and both of them show both options! What am I doing wrong here???

These are the stats being affected, btw:

    [b]Virtues[/b]
    *stat_chart
      opposed_pair Bravery
          Cowardice
      opposed_pair Scheming
          Genuine
      opposed_pair Bloodthirst
          Honor

And yes, Genuine is created in the startup.txt file.

Please let me know if anyone has any ideas as to why this is happening. Thanks a ton!

@Niki_Christopherson --Just a FYI: I moved the thread to the Choicescript Help topic.

Oh thank you!

How are you running this script? I copy and pasted it and then redid the tabbing and it works for me.

*fake_choice
	#I hate it with everything in me. How dare they do this to me?
		Is it the injustice that enrages you? Or do you hate them so you simply wanted the chance to kill them first?
		*fake_choice
			#It's dishonorable. How dare they treat family this way?
				*set honor %+20
			#It's too bad. I wanted to get them back for everything they've done to me.
				*set Bloodthirst %+25
	#Perhaps this is for the best?
		Do you resign yourself to this because it serves you? Or because you hope it will provide you a new, safer home?
		*fake_choice
			#It serves me, of course. The palace is where power is traded like breath.
				*set scheming %+25
			#Anything to get me away from these cruel abusers.
				*set genuine %+25
	#It scares me. The Palace is a dangerous place for those without backing.
		Does this fear cripple you?
		*fake_choice
			#Never. I'll just have to hold my head high and be brave.
				*set bravery %+25
			#I'm shaking as we speak. What am I going to do? How can I survive this?
				*set cowardice %+25

I have to admit this is the first help thread I’ve seen where the code seems fine. The other guy even tried it and got it to work.

Maybe try adding *create implicit_control_flow true if you haven’t already.

Alternatively, lay candles at the feet of the fox god and bask in His flame (try FireFox if you aren’t using it already).

1 Like

I’m using Visual Studio Code to write in, and the in-VSC browser to test easily.

I just tried it in Chrome instead, and just like with yours, IT WORKED?!?!?! I don’t know WHY?!?!?

insert photo here of me losing my mind

Okay, well… I’m not sure what exactly happened here. But thanks for taking a look!

Okay, SUPER newb here, what is *create implicit_control_flow true exactly?

Like, what does it do.

You can find details on implicit control flow here: New ChoiceScript features: implicit control flow, gosub parameters

It MIGHT help but it’s just me throwing darts at the wall here.

Also 100% use Firefox – it’s the most reliable way of testing your work.

TAT I am not switching browsers just for testing this stuff. Not until I absolutely have to.

Anyways, I just closed and reopened the in-software browser, and BAM, it fixed itself. I have no idea what the hell happened.

That said, I’ll take a look at the link you sent! Thanks a ton!

You don’t have to switch browsers lol, just set Firefox as the program that opens .html files. You can still use whatever browser you want.

From what I understand, your issue has been fixed, but I’ve also encountered the same problem several times.

It’s usually caused by using a mix of tabs and spaces for indentation. When this happens, I manually delete the indentation and redo it by using exclusively tabs OR spaces.

4 Likes