Getting event to work with multiple conditions?

EcchiSamurai

Veteran
Veteran
Joined
Oct 31, 2018
Messages
72
Reaction score
5
First Language
English
Primarily Uses
RMVXA
Currently nearing the end of my game (I've mentioned it plenty of times before in other threads) and a last minute change has me wondering if it was worth going through the trouble of implimenting the change or not.

Was going to have a single condition ending where if you did this, it was easier to beat the game and if you didn't it was going to be harder.

Now, I want to set it up where if you have these multiple conditions met, it will be easier and you can get different endings based on how many conditions met.

A deeper description:
I'm working on a horror game (think Corpse Party style of game) where the player can go through an abandoned, spook school and have encounters and death triggers with ghosts and a bad guy. They can also encounter helpful NPCs that can join the party and such. Now, with having the ghosts in the game, I wanted it to be something where you just avoid the ghosts and death triggers and then beat the game by confronting the main bad guy, but now I want to set it up where you can get different endings based on what you do. For example:

Help all ghosts pass on -> Good ending
Ignore all ghosts and beat game -> Ok ending
Get all saveable partners and beat game -> Helper Ending
Get all saveable partners killed -> Psycho Ending

Just a few examples of what I got for ideas. Basically, I want to set it up where if you help all ghosts, you get a good ending but you need to get items these ghosts are attached to to appease them. Say you only get half of the saved and beat the game, you get an ok ending instead of a good ending.

Basically, multiple endings based on multiple conditions met. How would I set this up?
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
541
Reaction score
219
First Language
english
Primarily Uses
RMMV
when beat end boss you could have event run a series of if statements checking for quest completion switches. each switch that is on would then add to a variable.
then run another if statement checking that variable to determine if all ghosts have been helped or not.
same for the partners but using a different variable
 

EcchiSamurai

Veteran
Veteran
Joined
Oct 31, 2018
Messages
72
Reaction score
5
First Language
English
Primarily Uses
RMVXA
when beat end boss you could have event run a series of if statements checking for quest completion switches. each switch that is on would then add to a variable.
then run another if statement checking that variable to determine if all ghosts have been helped or not.
same for the partners but using a different variable
How exactly would I set that up? I've honestly been avoiding variables in my game to keep things simple for me. It's my first game ever but I'm willing to move out of my comfort zone to improve my game overall.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,282
Reaction score
7,635
First Language
German
Primarily Uses
RMMV
follow the link to the starting point tutorial in my signature, then look for the "variables guide" there. That game is a good start to learn variables.
 

EcchiSamurai

Veteran
Veteran
Joined
Oct 31, 2018
Messages
72
Reaction score
5
First Language
English
Primarily Uses
RMVXA
follow the link to the starting point tutorial in my signature, then look for the "variables guide" there. That game is a good start to learn variables.
So theres a game there to teach about variables? Or is it a guide?
 

Shiro-chan

Friendly Neighbourhood Neppy Maid
Veteran
Joined
Aug 7, 2018
Messages
151
Reaction score
42
First Language
German
Primarily Uses
RMVXA
Variables are really not that different from switches. A switch is a boolean function, which means it only has two states: true/false, yes/no, on/off, 1/0 etc. Switches always start in the off (false) position. Variables are similar, just that they have more possible states. You use them as counters, like money for example is basicly a variable saying how much... well, money you have as it starts typically at 0 and increases or decreases.

In your example, it would more or less boil down to:
IF Ghost A saved THEN ghostssavedvariable +1
IF Ghost B saved THEN ghostssavedvariable +1
IF Ghost C saved THEN ghostssavedvariable +1
etc
And if the variable matches the number of ghosts, you get your ending.

You can adapt this to your other chars as well.
 

EcchiSamurai

Veteran
Veteran
Joined
Oct 31, 2018
Messages
72
Reaction score
5
First Language
English
Primarily Uses
RMVXA
Variables are really not that different from switches. A switch is a boolean function, which means it only has two states: true/false, yes/no, on/off, 1/0 etc. Switches always start in the off (false) position. Variables are similar, just that they have more possible states. You use them as counters, like money for example is basicly a variable saying how much... well, money you have as it starts typically at 0 and increases or decreases.

In your example, it would more or less boil down to:
IF Ghost A saved THEN ghostssavedvariable +1
IF Ghost B saved THEN ghostssavedvariable +1
IF Ghost C saved THEN ghostssavedvariable +1
etc
And if the variable matches the number of ghosts, you get your ending.

You can adapt this to your other chars as well.
I get told to play a lot of the game guides and although they help, they put a hefty pause on my games production. I'm the ONLY one working on my game with some very much needed help from the community here. Since its a horror survival game, I'm aiming to get it finished before October 31st (for anyone that may not know, its a US holiday called Halloween).

So having this actually explained to me helps a bit more than taking time off of my game to play a game about it, besides, not everyone wants to play a game about a specific subject...
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

All of the auditions for our game are so good, I'm so glad I'm not in charge of choosing completely. lol I just can't with some of them. I listen to them on repeat. XD
Working on a Patch to integrate AlphaABS into random generated Dungeons. Was a bit tricky, but the outcome is a real Life Changer!!

Will release it the next days!
Been pretty busy... but I got a better headset for recording and listening today. Dad says that he'll consider taking me to Great Wolf Lodge for the first time once I finish summer classes (my final semester!) I'll be taking my plushie friends with me: Bendy, Lolbit, and Helen Henny. (I WUV PLUSHIES!)
SF_Monster3,4 added!


My only regret is the portal mirror effect is too subtle to show up in these GIFs. It probably just needs more sparkles. :LZSwink:

Forum statistics

Threads
105,649
Messages
1,015,285
Members
137,326
Latest member
tobirama
Top