How to make different versions of the same cutscene?

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.
1727991934990.png

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.
1727992439268.png

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.
1727992772204.png

Overall, this is what i wanted to make possible, because knowing variables and switches, i figured this would be somewhat a realistic goal.
1727993188951.png

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!!
All you need is one event command.

So you have one event. It will play the first time the player goes to the forest.

Inside that event, you are saying "if" - "if the player is accompanied". "If" is always the event command Conditional Branch.

So inside your event, you do a Conditional Branch that checks whether the companion is in the party. If yes, you do the version of the event with the companion. In the Else branch you do the version without the companion.

You don't need any variables or switches.
All you need is one event command.

So you have one event. It will play the first time the player goes to the forest.

Inside that event, you are saying "if" - "if the player is accompanied". "If" is always the event command Conditional Branch.

So inside your event, you do a Conditional Branch that checks whether the companion is in the party. If yes, you do the version of the event with the companion. In the Else branch you do the version without the companion.

You don't need any variables or switches.
Damn, i overcomplicated things. Overall thank you very much! I will keep that in mind!

All you need is one event command.

So you have one event. It will play the first time the player goes to the forest.

Inside that event, you are saying "if" - "if the player is accompanied". "If" is always the event command Conditional Branch.

So inside your event, you do a Conditional Branch that checks whether the companion is in the party. If yes, you do the version of the event with the companion. In the Else branch you do the version without the companion.

You don't need any variables or switches.
I'm sorry to bother you, but i've come up with a little problem. I can't seem to make the second cutscene to work. Basically, we're focusing on the "Else" branch, the one without the companion. Once it happens, i want it to influence the next cutscene where the player tells the companion it isn't their first time visiting. How do i do that?
When you visit the forest alone, set a Switch like "Forest visited alone" to ON.

In the ELSE Case you open another Conditional Branch with one version with this switch ON and one with this switch OFF.

It's enough to cover the part that is actually different (like the one textbox) in the Conditional Branch. All parts that are similar in both versions can follow after the IF/ELSE case.
For the first cutscene where you arrive at the forest, you can do something like this:
1727996485627.png

Make sure to set a control switch when you visit alone so you can check it later.

Then, for the second cutscene where you want to check if the player was alone, you can do something like this:
1727996533658.png

I'm sorry to bother you, but i've come up with a little problem. I can't seem to make the second cutscene to work. Basically, we're focusing on the "Else" branch, the one without the companion. Once it happens, i want it to influence the next cutscene where the player tells the companion it isn't their first time visiting. How do i do that?
FYI in the future for questions like this, you should probably just post a screenshot of your entire event page you're trying to make. It's usually a lot quicker to identify problems in a screenshot since there's less guesswork.


EDIT: for the second cutscene, if you want a completely different cutscene and not just a bit of differing dialogue, you can alternatively set it up on two event pages:
1727996771681.png

On page one, make sure no switch is selected. This will make it play by default.
Then, make a second page that DOES have a switch. The same one we set in the first event:
1727996863858.png

This one will overwrite the other page and only play if the control switch was previously set sometime before
In the ELSE Case you open another Conditional Branch with one version with this switch ON and one with this switch OFF.
quick question, this specific conditional branch you mentioned, do you mean to create two IF branches or only one IF branch and an ELSE branch?
1727996729579.png


I tried my best replicating what you told me but i completely misunderstood, for sure. Because the 'forest visited alone' turns on, it automatically triggers the third dialogue as shown. Could you perhaps show me the event contents i should follow?
quick question, this specific conditional branch you mentioned, do you mean to create two IF branches or only one IF branch and an ELSE branch?
View attachment 319451

I tried my best replicating what you told me but i completely misunderstood, for sure. Because the 'forest visited alone' turns on, it automatically triggers the third dialogue as shown. Could you perhaps show me the event contents i should follow?
I would take a look at what I posted above to see if that helps, but also, what do you have on the Self Switch pages ? For something this simple you should be able to use Self Switch A for all of them I would think
You probably shouldn't use SelfSwitches here, because your attempt seems to cover all the possibilities at once. If you walk into the forrest once, and it activates Self Switch A, you won't get the other dialogues, since the Event Page 1 won't be reached anymore. But I don't know what the other Pages are doing.

I mean it like this:

Code:
◆If:Sidekick is in the party
  ◆If:Switch "Visited Forest Once" is ON
    ◆Text:None, None, Window, Bottom
    :    :Yeah, I've been here before.
    ◆
  :Else
    ◆Text:None, None, Window, Bottom
    :    :No, I've never been here before.
    ◆
  :End
  ◆
:Else
  ◆Text:None, None, Window, Bottom
  :    :I should leave.
  ◆Control Switches:"Visited Forest Once" = ON
  ◆(leave forest)
:End

EDIT: Actually, I wouldn't even include the part of visiting the forest early alone in the same Event.

Do one for visiting alone, and a second one for visiting together. So you don't have to deal with a reset logic of your event. The same way you can use Switches to activate cutscenes, you can use them to deactivate cutscenes (to make sure, the alone-visit won't happen if you have a party member already).
You probably shouldn't use SelfSwitches here, because your attempt seems to cover all the possibilities at once. If you walk into the forrest once, and it activates Self Switch A, you won't get the other dialogues, since the Event Page 1 won't be reached anymore. But I don't know what the other Pages are doing.

I mean it like this:

Code:
◆If:Sidekick is in the party
  ◆If:Switch "Visited Forest Once" is ON
    ◆Text:None, None, Window, Bottom
    :    :Yeah, I've been here before.
    ◆
  :Else
    ◆Text:None, None, Window, Bottom
    :    :No, I've never been here before.
    ◆
  :End
  ◆
:Else
  ◆Text:None, None, Window, Bottom
  :    :I should leave.
  ◆Control Switches:"Visited Forest Once" = ON
  ◆(leave forest)
:End
I was about to reply to Bazinioli trying the suggested code, which for some reason wasn't working, and now i tried yours, thank you! Here is how it is:
1727998189266.png


But how do i make each dialogue possible without the self switch stopping them? would it be multiple self switches? Or regular switches? Sorry for the inconvenience.
I don't exactly know, what is supposed to happen. I assume, you get teleported out of the forest, if you are alone (hence the "I should leave"). If not, you'll have to adapt the actual behaviour.


Code:
◆If:Sidekick is in the party
  ◆If:Switch "Visited Forest Once" is ON
    ◆Text:None, None, Window, Bottom
    :    :Yeah, I've been here before.
    ◆
  :Else
    ◆Text:None, None, Window, Bottom
    :    :No, I've never been here before.
    ◆
  :End
  ◆(rest of the cutscene)
  ◆Control Switches:"Forest Cutscene done" = ON
  ◆
:Else
  ◆Text:None, None, Window, Bottom
  :    :I should leave.
  ◆Control Switches:"Visited Forest Once" = ON
  ◆Teleport out of forest
  ◆
:End

And do a second, empty event page with Switch "Forest Cutscene done" as a Condition.

This way, he will say "I should leave" every time you try to enter the forest alone. Once, you have your party member, the Cutscene will play once. Afterwards, you can move.
Ahh. I missed the part that the player was forced to leave if they went alone, I thought this was a location the player went to twice under variable conditions. Zia's method should work for what you're trying to do

If you want the "I'm alone I should leave" to repeat until he has a party member, just don't add a self switch to the Alone if, then teleport the player out of the map and every time you enter the map it will repeat
I don't exactly know, what is supposed to happen. I assume, you get teleported out of the forest, if you are alone (hence the "I should leave"). If not, you'll have to adapt the actual behaviour.
I've adapted, yes! I found a solution! I followed your instructions regarding the edit earlier, to create a separate event, with just a single extra step.

First, i should clarify what i wanted in the first place. To create a possibility where, if the player explores the map and finds the forest alone, a cutscene will play reccomending to stay away from such a place. Later on the player unites with a party member and is now ready to traverse the same forest, in which the new cutscene now tells the player has visited the forest before. However, if the player never visited the forest but meets the conditions necessary to set foot in there, in this case having this particular party member, a cutscene will play keeping in mind that the player never entered the forest.

Here is what i've done to make this possible:
1727999883715.png


I then set a conditional branch where the new party member activates a new switch only if the player visited the forest before:
1727999987429.png


And then finally:
1728000016231.png


I've tested each possibility to see if it's the way i wanted, and it is! Everyone who reached out to help me, thank you so much! I hope to bother you less in the future!
First, i should clarify what i wanted in the first place. To create a possibility where, if the player explores the map and finds the forest alone, a cutscene will play reccomending to stay away from such a place. Later on the player unites with a party member and is now ready to traverse the same forest, in which the new cutscene now tells the player has visited the forest before. However, if the player never visited the forest but meets the conditions necessary to set foot in there, in this case having this particular party member, a cutscene will play keep
the clarity is definitely helpful! Good practice to be as descriptive as possible when asking stuff
I've tested each possibility to see if it's the way i wanted, and it is! Everyone who reached out to help me, thank you so much! I hope to bother you less in the future!
you got it backwards, if you were bothering people and they didn't want to help, simply put, they wouldn't help. The people here helping you are only helping because they want to, not out of obligation, so don't fret over asking for more help in the future, it's what these help forums are for after all 🙂
you got it backwards, if you were bothering people and they didn't want to help, simply put, they wouldn't help. The people here helping you are only helping because they want to, not out of obligation, so don't fret over asking for more help in the future, it's what these help forums are for after all 🙂
I couldn't thank you enough! 😀

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-different-versions-of-the-same-cutscene.172344/