Not exactly sure if the title is exactly what this problem is, but it's as close as I can describe it. I want to have three different outcomes to a situation depending on what the player does, and in order to so, I need to know the order that the player chooses the three passages. Here's the scenario:
Cheryl and Mike are stuck in a car that has crashed off the side of the road. Cheryl is the only one conscious at the moment. She has to wake up Mike in order to get him out of the car, but she also has to get all of their supplies out of the back seat. When she wakes Mike up, she realizes that he has a head injury and is bleeding profusely and needs to patch him up. How many supplies they get is determined by the order of Cheryl's actions. She has two turns before the car is blocked by the falling snow and can no longer be accessed.
The outcomes are:
Cheryl wakes up Mike --> chooses to get everything outside = gets all supplies but Mike loses a lot of blood
Cheryl gets everything outside --> wakes up Mike = get almost everything and Mike doesn't lose a lot of blood
Cheryl wakes up Mike --> fixes Mike's head injury = get very few supplies but Mike loses almost no blood
Here's the problem. I can't figure out how to set the variables to determine the order that she chooses. Here's what needs to happen:
If Cheryl wakes up Mike first --> set variable "first" to "wake up"
if Cheryl gets the supplies out first --> set variable "first" to "get everything"
if Cheryl patches up Mike second --> set variable "second" to "patch up" (only available if she chooses to wake him up first)
if Cheryl wakes up Mike second --> set variable "second" to "wake up"
if Cheryl gets everything out second --> set variable "second" to "get everything"
I've tried tons of different methods but there's nothing that can get what I need. I need to be able to check that the variable "first" isn't already set to the other option and then set the chosen option to "first", and in that same check, I need to have the chosen option set to "second" if "first" is already set with the other option. I can't figure out the code for this and it's driving me crazy.
Any assistance would be appreciated.