Complex conditional branches

Hi! It's my first time posting here and I've only used RMMV for a few weeks by now, so please be gentle.
I'm making a game with a lot of ending variations - it depends not only on your actions, but also your stats. For example: there's an ending where you sell your friend's itens to get more money, he gets mad at you and leaves. However, how it happens depend on the player's charisma: if it's too low, he screams at you, if it's high enough, it's a bittersweet but peaceful farewell.

For what I've seen, it seems rather complex, so I wonder if there's any way to do this.
Nested conditional branches. Basically a conditional branch inside a conditional branch. Basic eventing.

For your stat check you wanna save whatever stat you wanna check in a variable via control variable > Game data > Actor like so:
1751740666000.png

Now this only works for basic stats that actually exist in the engine. If you've got some kinda plugin for a "charisma stat" you'd need to check out how you can access that information. (and if you manage that via eventing already, you'll probably have a variable for that anyway)


Then you can simply check the value of that variable in your event, and if you wanna do even more, you can put another conditional branch inside your stat check to add another requirement. A switch perhaps? Like so:
1751740944754.png

In this example, if player stat is 25 or higher AND he did some kinda thing, friendo isn't gonna be as mad.

If his stats are 25 or more but he didn't do that thing, he'll tell you you're a chad but leave.

And lastly if neither one of those things happen, he'll call you the worst person.

Now this example doesn't account for the idea what happens if the player doesn't have 25 of "stat" but did the "thing", but you get the idea.
making a lot branch (ending) is kinda hard for begginer. But is not imposible to do it.. It take time about it. The first things you do is to make flowchart about it. Meaning using this
A flowchart (or flow chart) is a diagram that shows the steps in a process. Flowcharts are often used for visualizing the sequence of actions or information needed for training, documenting, planning, and decision-making. They often use symbols, shapes, and arrows to illustrate how one step leads to another.​
it help your planning idea. I know it might not easy to show what your idea.
Second lets start simple like having 2 condition. and make small then make big (gradually).
Third but not final, try to understand how conditional branch work.. it not easy task even for me as programer (web). it takes time, where you might already have

recommended: follow this post also.. basicly have same problem. my answer kinda same like this.
Nested conditional branches. Basically a conditional branch inside a conditional branch. Basic eventing.

For your stat check you wanna save whatever stat you wanna check in a variable via control variable > Game data > Actor like so:
View attachment 344331
Now this only works for basic stats that actually exist in the engine. If you've got some kinda plugin for a "charisma stat" you'd need to check out how you can access that information. (and if you manage that via eventing already, you'll probably have a variable for that anyway)


Then you can simply check the value of that variable in your event, and if you wanna do even more, you can put another conditional branch inside your stat check to add another requirement. A switch perhaps? Like so:
View attachment 344332
In this example, if player stat is 25 or higher AND he did some kinda thing, friendo isn't gonna be as mad.

If his stats are 25 or more but he didn't do that thing, he'll tell you you're a chad but leave.

And lastly if neither one of those things happen, he'll call you the worst person.

Now this example doesn't account for the idea what happens if the player doesn't have 25 of "stat" but did the "thing", but you get the idea.
Thank you!
making a lot branch (ending) is kinda hard for begginer. But is not imposible to do it.. It take time about it. The first things you do is to make flowchart about it. Meaning using this
A flowchart (or flow chart) is a diagram that shows the steps in a process. Flowcharts are often used for visualizing the sequence of actions or information needed for training, documenting, planning, and decision-making. They often use symbols, shapes, and arrows to illustrate how one step leads to another.​
it help your planning idea. I know it might not easy to show what your idea.
Second lets start simple like having 2 condition. and make small then make big (gradually).
Third but not final, try to understand how conditional branch work.. it not easy task even for me as programer (web). it takes time, where you might already have

recommended: follow this post also.. basicly have same problem. my answer kinda same like this.
Alright, thanks!

Original thread: https://forums.rpgmakerweb.com/threads/complex-conditional-branches.178743/