I am almost 100% sure this has GOT to do with variables, i even created a sort of mental map to help myself figure out the logic, yet i can't come up with a definitive solution. I am still a begginer, am perhaps i'm trying to learn something too complex, but one day or another i have to learn how to do this if i want to make an interesting enough game with details.
I'll explain what i want, however i'm so confused at my own code that it may as well be worthless. If anyone has enough experience, this may not be too hard, i hope. (In my previous threads, people have mentioned that it's a little hard to understand what i'm trying to say, and maybe it's because english is not my first language and i may have gotten rusty, for which i apologize. This time i will illustrate my objective to make sure everyone understands!)
So basically, we have this one location: the forest. IF the player visits the forest for the first time without a companion, an event should play telling them the forest is dangerous due to the strange sounds, warning to come back.
This will ensure that the player has in fact visited the forest, which will affect the next cutscene where the player returns to the same place after meeting their companion.
However, if the player never set foot into the forest and already met their companion, upon visiting the forest for the first time while not being alone, another kind of cutscene should happen.
Overall, this is what i wanted to make possible, because knowing variables and switches, i figured this would be somewhat a realistic goal.
I hope i made this as clear as possible since i don't wanna commit the same mistakes more than once. Also, hopefully, i'll make other kinds of alternative versions of the same cutscene without depending on actors themselves, but regular switches or variables. It'll be more dynamic. Any questions and i'll try to make it clearer!!
I'll explain what i want, however i'm so confused at my own code that it may as well be worthless. If anyone has enough experience, this may not be too hard, i hope. (In my previous threads, people have mentioned that it's a little hard to understand what i'm trying to say, and maybe it's because english is not my first language and i may have gotten rusty, for which i apologize. This time i will illustrate my objective to make sure everyone understands!)
So basically, we have this one location: the forest. IF the player visits the forest for the first time without a companion, an event should play telling them the forest is dangerous due to the strange sounds, warning to come back.
This will ensure that the player has in fact visited the forest, which will affect the next cutscene where the player returns to the same place after meeting their companion.
However, if the player never set foot into the forest and already met their companion, upon visiting the forest for the first time while not being alone, another kind of cutscene should happen.
Overall, this is what i wanted to make possible, because knowing variables and switches, i figured this would be somewhat a realistic goal.
I hope i made this as clear as possible since i don't wanna commit the same mistakes more than once. Also, hopefully, i'll make other kinds of alternative versions of the same cutscene without depending on actors themselves, but regular switches or variables. It'll be more dynamic. Any questions and i'll try to make it clearer!!