Oh my gosh help! I haven't used choicescript in forever and I'm stumped!

I would try putting your double statements under one tree like this:

*elseif (tyria = true)
  *if (engineer)
    *goto engineerintro
  *if (soldier)
    *goto soldierintro
  *if (pilot)
    *goto pilotintro

^ this too.

Also, is tyra & pilot the last remaining possibility or are there others?

That’s the last one. :frowning: I only made three mixed and matched AND’s for the tyria and the classes.

Blehs. Still not changing anything. Still just stops on the third choice from the top, right before it SHOULD go onto the AND’s. :frowning: It just hates the AND’s. Do you think there’s a way I can like, do it in two parts, where it goes through the first singles, THEN the doubles, but like, actually works? Like in two separate *if levels or something? I don’t know! I just want it to work. Don’t care how convoluted! :smiley:

here’s what I would do:

*if (human)
  *goto humanintro
*if (selonian)
  *goto selonianintro
*if (taxxion)
  *goto taxxionintro
*if (tyria)
  *if (engineer)
    *goto engineerintro
  *if (soldier)
    *goto soldierintro
  *if (pilot)
    *goto pilotintro

Try without the elseifs and else in other words

Ok!

I can’t tell you how many times I’ve given myself a headache trying to figure out what could possibly be wrong with my code only to realize that it was being thrown off by a typo in there somewhere. Maybe there’s just one thing that doesn’t match the *create variable and that’s why it is only stopping at a certain *elseif?

3 Likes

also: important question: are you up to the newest version of CS?

edit: @Writing_Fever I think then quicktest would complain. the code looks fine, all parenthesis are in place.

2 Likes

Um, I don’t know? I’m using notepad.

I’ll check.

Have you tried CSide? It would let you import the scene files you already have

They didn’t say that they ran any of the -tests, I don’t think.

EDIT: Actually, that might be a good idea. If you’re just running the game through dashingdon or whatever and the *label text isn’t appearing, running the -tests might give you a more specific error message.

2 Likes

Here’s the forum thread if you want it

1 Like

also: when you download the newest version of ChoiceScript (from where you got your current version: Save your scenes folder elsewhere, replace the old CS folder with the new stuff and replace its scenes folder with your own files)

1 Like

Oh my FRICKING GOD!!! I JUST CHECKED. MY. CHARACTER CREATOR. FILE. RIGHT AFTER STARTUP. AND I HAVE ONE OF THE CHOICES NAMES SWAPPED! FOR NO REASON!!!

It’s like:

*choice
#Tyria soldier
*set taxxion true
#Tyria engineer
*set engineer true

Oh my god. HOW DID MY EYES GLAZE THIS MIXUP?!

I’m gonna swap the stupid labels to how they should be and hope it fixes it! This might be why it keeps going to the third choice, because it DOES go to the third choice…

1 Like

Ahahaha – I feel your pain and your relief. I’ve had the same thing happen to me several times.

1 Like

Choicescript really makes my eyes feel terrible, with how much it just MISSES OBVIOUS STUFF!

3 Likes

Annd now it is working perfectly! Thank youuu! I love you! <3 But platonically and stuff!

2 Likes

Another life saved, another heart broken.

All in a day’s work.

2 Likes

This topic was automatically closed 24 hours after the last reply. If you want to reopen your WiP, contact the @moderators.