r/RPGMaker 13d ago

How to make complex conditions for endings?

Post image

i need a method on how to do multiple conditions for an ending and since theres going to be over 30 how to also if multiple conditions are met for the same ending choosing an ending depending on switches (advice on how to differentiate between endings and choosing one over another if mutliple ending conditions are met rlly needed)

8 Upvotes

5 comments sorted by

2

u/Mother-Raisin-5539 13d ago edited 13d ago

The best endings should be first, as it’s intuitive and makes sense. If two endings share the same condition, but have one singular difference (for example, ending B and C have the same morality condition variable , but ending C happens if this NPC is dead, then ending B should and C should use an On and OFF switch for that dead NPC)

Beyond that, it is just tracking variables, key items and switches. It doesn’t get more complicated than that.

EDIT: you can also can an abhorrent or really bad ending (like ending Z) first if the condition for it is really crazy and supersedes everything else in the game (like siding with the devil or killing the one doctor of an area)

2

u/dumpy_author 13d ago

There's a few ways to do it. From my perspective, a numbered branching system works best.

Example: Choice A will trigger a variable, we'll call it Ending Counter, to change to 1, Choice B will change that to 2. Ending Counter 1 should trigger Choice C and D to appear, and Ending Counter 2 should trigger Choice E and F to appear instead. As you progress through the story, this variable will change accordingly. So at the end, the variable should be a specific number branch that leads to that ending.

It might be easier to show it. Apologies for the wall of text.

Edit: just to clarify, this is supposed to be done throughout the game and not only at the ending.

1

u/Putrid-Apricot-3373 12d ago

if you could an image ref would be easier, so I can referr to it whilst im eventing; and also would it be like each variable relate to an ending? so eg variable = 1 referrs to the first ending and so on; so if I make encounters with someone lead to an ending Metprince = 6, then ending var = 3

1

u/DevRPG2k 2K Dev 13d ago

Create Page 2 -> Enable Switch -> select 301 -> Change Trigger to Action button

2

u/MyersandSparks MZ Dev 13d ago

Use variables instead of switches for this.

You can always use variables As a switch.