Using more than one gain in choices


#1

Hey! I was wondering if someone could explain this to me. How do you use more than one gain in an “if” Here is my script;
AMAYA (talk_rear)
Let me get…
choice (Drink)
“Tequila” {
gain Tequila
FEMALE23 (talk_excited)
Good choice! I love Tequila.
FEMALE23 (talk_think)
With what chaser?
} “Vodka” {
gain Vodka
FEMALE23 (talk_excited)
Good choice! I love Vodka.
FEMALE23 (talk_think)
With what chaser?
} “Beer” {
gain Beer
FEMALE23 (talk_excited)
Good choice! The beer here is great.
}“Champagne” {
gain Champange
FEMALE23 (talk_excited)
Good choice! The champagne here is to die for.
}
label Chaser
AMAYA
(Chaser…)
choice (Chaser)
“Orange Juice” {
gain Oj
AMAYA (talk_rear)
I’ll take it with Orange juice.
} “Ginger Ale” {
gain Ginger
AMAYA (talk_rear)
I’ll take it with Ginger Ale, like her.
} “Club Soda” {
gain Club
readerMessage Yuck!
AMAYA (talk_rear)
I’ll take it with Club Soda.
}
if (Tequila) and (Oj) {
FEMALE23 (talk_hold_drink)
Here you go! Here is your Orange Juice and Tequila.
} elif (Tequila) and (Ginger) {
FEMALE23 (talk_hold_drink)
There you go! Here is your Ginger Ale and Tequila.
} elif (Tequila) and (Club) {
FEMALE23 (talk_hold_drink)
There you go! Here is your Club Soda and Tequila.
} if (Vodka) and (Oj) {
FEMALE23 (talk_hold_drink)
Here you go! Here is your Orange Juice and Vodka.
} elif (Vodka) and (Ginger) {
FEMALE23 (talk_hold_drink)
There you go! Here is your Ginger Ale and Vodka.
FEMALE23 (talk_excited)
Same as the ladies!
} elif (Vodka) and (Club) {
FEMALE23 (talk_hold_drink)
There you go! Here is your Club Soda and Vodka.
} elif (Champagne) {
FEMALE23 (talk_hold_drink)
There you go! Here is your champagne.
FEMALE23 (talk_excited)
Best in town!
} elif (Beer) {
FEMALE23 (talk_hold_drink)
There you go! Here is your Beer.
}


#2

If you’re using different outcomes like that, it’s best to have if/elif/else inside if/elif/else

if (Tequila) {

if (Oj) {
[Tequila and oj here]
} elif (Ginger) {
[Tequila and ginger here]
} else {
[Tequila and club here]
}

} elif (Vodka) {

if (Oj) {
[vodka and oj here]
} elif (Ginger) {
[vodka and ginger here]
} else {
[vodka and club here]
}

} elif (Beer) {
[just beer here]

} else {
[just champagne here]
}


#3

Thanks so much :slight_smile:


#4

Remembering choices and different outcomes is what I’m having the most issues with. I saw the above reference or example and I still don’t understand it, is there any hope for me ha ha


#5

Here is a guide that can help you:

HOW TO: Remember Past Choices (if/elif/else)


#6

Thank you


#7

Closing due to one month of inactivity :slight_smile:


#8