Can you use gains in if, elif, and else commands?

I’m new to gains, and I have a question about using gains. Can gains be used in if, elif, and else commands? Would something like this work?

Let’s say the gains are “kitchen_proof” “kitchen_no_proof” “janitor_proof” “janitor_no_proof”

Would the code look like this?

if(kitchen_proof){

#kitchen_proof scene

}elif(kitchen_no_proof){

#kitchen_no_proof scene

}elif(janitor_proof){

#janitor_proof scene

}else{

#janitor_no_proof scene

}

I’m sorry if it’s confusing, I’m just new to using these commands. Thanks!

Yes! That’s correct (remember to make the character gain that flag first). You can also check out this:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.