Help! using multiple gains

hey! so i was trying to create a mini game for baking cookies, where you choose the shape and icing color and toppings. so in the end i want to use and
“if TREE, RED, and SUGAR
overlay create ( the overlay i have with those particular parameters)”

i know that code isn’t real code, that’s just the basis of what i wanted to do.

is this possible and if so can someone help me?

if you want different scene of any particular combination it will look like this

if (SHAPE1) {
if (COLOR1) {
if (TOPPING1) {
#here add SHAPE 1, COLOR1, TOPPING1
} elif(TOPPING2) {
#here add SHAPE 1, COLOR1, TOPPING2
}else {
#here add SHAPE 1, COLOR1, TOPPING3
}
} elif(COLOR2) {
if (TOPPING1) {
#here add SHAPE 1, COLOR2, TOPPING1
} elif(TOPPING2) {
#here add SHAPE 1, COLOR2, TOPPING2
}else {
#here add SHAPE 1, COLOR2, TOPPING3
}
}else {
if (TOPPING1) {
#here add SHAPE 1, COLOR3, TOPPING1
} elif(TOPPING2) {
#here add SHAPE 1, COLOR3, TOPPING2
}else {
#here add SHAPE 1, COLOR3, TOPPING3
}
}
} elif(SHAPE2) {
if (COLOR1) {
if (TOPPING1) {
#here add SHAPE 2, COLOR1, TOPPING1
} elif(TOPPING2) {
#here add SHAPE 2, COLOR1, TOPPING2
}else {
#here add SHAPE 2, COLOR1, TOPPING3
}
} elif(COLOR2) {
if (TOPPING1) {
#here add SHAPE 2, COLOR2, TOPPING1
} elif(TOPPING2) {
#here add SHAPE 2, COLOR2, TOPPING2
}else {
#here add SHAPE 2, COLOR2, TOPPING3
}
}else {
if (TOPPING1) {
#here add SHAPE 2, COLOR3, TOPPING1
} elif(TOPPING2) {
#here add SHAPE 2, COLOR3, TOPPING2
}else {
#here add SHAPE 2, COLOR3, TOPPING3
}
}
}else {
if (COLOR1) {
if (TOPPING1) {
#here add SHAPE 3, COLOR1, TOPPING1
} elif(TOPPING2) {
#here add SHAPE 3, COLOR1, TOPPING2
}else {
#here add SHAPE 3, COLOR1, TOPPING3
}
} elif(COLOR2) {
if (TOPPING1) {
#here add SHAPE 3, COLOR2, TOPPING1
} elif(TOPPING2) {
#here add SHAPE 3, COLOR2, TOPPING2
}else {
#here add SHAPE 3, COLOR2, TOPPING3
}
}else {
if (TOPPING1) {
#here add SHAPE 3, COLOR3, TOPPING1
} elif(TOPPING2) {
#here add SHAPE 3, COLOR3, TOPPING2
}else {
#here add SHAPE 3, COLOR3, TOPPING3
}
}
}

1 Like

if you just need to create separate overlays based on the choices it will be more simple just 3 separate

if (SHAPE1) {
#here create overlay od SHAPE1
} elif(SHAPE2) {
#here create overlay od SHAPE2
}
else {
#here create overlay od SHAPE3
}

if (COLOR1) {
#here create overlay od COLOR1
} elif(COLOR2) {
#here create overlay od COLOR2
}
else {
#here create overlay od COLOR3
}

if (TOPPING1) {
#here create overlay od TOPPING1
} elif(TOPPING2) {
#here create overlay od TOPPING2
}
else {
#here create overlay od TOPPING3
}

1 Like

thank you so much!

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