Help with LI coding

Okay, I’m back with more LI errors. :smiley:

So, I once had points and then switched to gains mid-story, then after multiple LI problems, I switched back to points which seems to be working, but I just have a quick question about the point system coding.

Right now this is my code at the beginning of my current chapter to help readers who had the wrong LI reset it and get the one they want. So would this code be correct?

choice
“Floyd” {
@FLOYD=1
}“Male Welly”
@WELLY=1 {
}“Female Welly” {
@WELLYF=1
}
#}

if (WELLYF=1){
goto wellyf_female_branch
} elif (WELLY=1){
goto welly_male_branch
} else {
goto floyd_branch_restaurant
}

Thanks for your help!

Yes, this coding would be correct, but you would then want to set the points of the love interests they didn’t choose to 0, that way, if they changed love interests, only one love interest has a point value of 1.

choice
“Floyd” {
@FLOYD=1
@WELLY=0
@WELLYF=0
}“Male Welly” {
@WELLY=1
@FLOYD=0
@WELLYF=0
}“Female Welly” {
@WELLYF=1
@FLOYD=0
@WELLY=0
}

Amazing! I didn’t know this! Thank you so much for your help!

1 Like