Script help! Flags, if/elif/else

Ok, so everything looked fine, but now, one option doesn’t work and it just brings me to the end!



So everything works, except if I just select the C option!
If anyone knows whats wrong. let me know, I couldn’t find an issue!
I feel so stupid lol

1 Like

@Dara.Amarie :woman_shrugging:t3:

Bump!

Uh I’m sorry but I can’t really see what it says. Could you by any chance take a closer photo or cut the ones you have so the script becomes bigger?
I would be glad to help though, but I’m not very good at choices, maybe @Farah_DeSantis could help if I can’t :upside_down_face: :crazy_face:

Didnt realise that you couldnt see! :thinking:

1 Like

Thanks :smiling_face_with_three_hearts:

1 Like

Yeah well this is way too advanced for me, but maybe @xWafflesx could help or like I said @Farah_DeSantis

I’m sorry I can’t help more, but I hope you get the help you need :kissing_heart: :upside_down_face:

2 Likes

It’s no biggie! Thank u for trying! :kissing_heart:

1 Like

Can you PM me your script?

hmm it would be also easier for me wit copy of the script so I woudl be able to replay it in portal

but if I thing I get what you are trying to do. So let my try something in my portal…

Should I PM it to you?

if you do not post it here sed it per PM. :slight_smile:

In my opinion you do not heed to make such complicate if/elipf else because the condition can be combined…wait I will try it my way if it will work as I think…

Yeah, I thought that you can definitely simplify it, but how?

Hy this seem to me works as you (I hope) intended

please try it out.
Also remember always refresh the page before you will test it again

INT. BLACK - NIGHT
label picking
NARRATOR
Pick up:
choice “A” {
gain A
} “B” {
gain B
} “C” {
gain C
}
NARR
Have you picked up all?
choice “No” {
goto picking
} “YES” {

if (A and B and C) {
goto next
} elif(A and B) {
NARR
You got only A and B
goto picking
} elif(A and C) {
NARR
You got only A and C
goto picking
} elif(B and C) {
NARR
You got only B and C
goto picking
} elif(A) {
NARR
You got only A
goto picking
} elif(B) {
NARR
You got only B
goto picking
} elif( C ) {
NARR
You got only C
goto picking
}else {
NARR
Something went wrong
}
}
label next
NARR
Go on with story here

The “something went wrong” is there only for my testing - it should never actually came to this option…

That is much shorter, seems to be working fine, I tried most of the combinations, that’s what I’m looking for! Thank u! :slight_smile:
Tho…

Does that also work with character points?

Hmm…I actually never tried it with character points so I cant confirm it.

Well, I’ll experiment later! Thank u! :orange_heart:

1 Like

:smiley: let me know what you will find out. :slight_smile:

1 Like

lol I tested it and yes it seems to work

@CHAR1 =1
@CHAR2 =1

if (CHAR1 =1 and CHAR2 =1){
NARR
It works

}else {
NARR
Something went wrong
}