Choicescript unable to parse *selectable_if magic>5 #exclusive option?

You should be able to upload just the single text file that has the problems and then share a link to that.

Ok, thanks. I will do that in the future if need be

What’s this error?
Variable ‘lr’ exists but has no value

Sorry I keep asking so much… o.o … I don’t wanna be a bother DX

It means that you have not set a value to the variable LR. So you need to either *set lr true or you need to *create LR true

I thought so but I did… soo… :confused: here is what I have:

*temp lr
*fake_choice
  #"You should come, Larth."
    *set lr true
    *if Larth_mad
      You really didn't care for him to be there, but said it for Letha's sake.
    *if Larth_pity
      You didn't want him to miss out. 
    
    "Fine..." He said getting up.

You need to set LR as something.

*temp lr is not enough. It needs to be

*temp lr
*set lr true

I’m confused… I had a *set lr true once you chose a certain option. do you see it in my code?? but it’s not working for some reason…

But, it’s possible to not choose that option and then LR isn’t set as anything. So when you create a variable, you should generally set it as something. Admittedly in that case you want to set it as false, since it’s set as true later. But you can’t just create it and then leave it blank because that’s when errors happen.

OH! I knew that… =p thanks…

sorry another thing…

UNTESTED night_one 628-636
UNTESTED night_three 275-290
SOME LINES UNTESTED
QUICKTEST PASSED

what dose that mean??

Guess?

Seriously your guess is as good as mine.

Read it over and try and work it out.

Also you should start your own RockStarPenguin needs help thread.

Do you have the latest version of Choicescript downloaded? Some things changed with the latest update, but if you don’t have it, the suggestions people are giving might not work.

Also, it’s possible you have an “invisible bug” because you think you have a carriage return and you don’t. If you paste code from Word into Notepad, for example, it will still show things as being on different lines, but the code doesn’t believe it. You have to delete the returns and put them back in while you’re in Notepad, or the lines all run together and the code breaks.

Or edit this one. Change the title and the first post a bit, and you’re good to go.

@Fairygodfeather Don’t temp stats have to be initially created as something? I’ve been seeing people suggesting commands like that; is “*temp lr false”, etc., no longer necessary?

The most likely thing it means is that you can’t reach that code. Maybe there is nothing that leads there, maybe it is code-in-progress that you don’t intend to be reachable yet, or maybe the requirement for it is impossible. If you need Luck at 100 to get there, and Luck can only be at 80 maximum at that point, they will be untested.

Untested lines in quick test are unreachable if I recall correctly. So at no point is it possible for those lines to ever actually be run at the moment, no matter the variables.

1 Like

Nope. You can create a temporary stat without actually setting it to anything. If you do that you get the “variable exists but has no value” error.

1 Like