My cousin is trying to find a tutorial or learn how to collect a specific item to achieve a secret ending since they're also adding multiple endings in their game. They told me at the end of the game that the player has multiple choices what to do next of their action, and if the player finds all the items, like finding all 28 gems or seeds, that ending will be included in the choice if the player finds them. So I guess it could be close to the horror game, Mad Father, collecting all gems to achieve the secret ending, but they want it to know how to create it and make it appears at the end of the player's choice for an ending. I'm not sure if I'm making any sense in this or not.
How to collect certain item to achieve an secret ending?
RPG Maker MV SupportIf it is simply a matter of "player must have X number of item Y in inventory", then in your ending event, do a Control Variables > Game Data > Item X to put the quantity of that item into a variable, followed by a Conditional Branch to see if that variable is equal to or greater than the required number.
If it is more like "player must collect each of these 15 different items that can each only be obtained once", then have one variable to track how many have been obtained, and each time the player gets one item, increment that variable. Again, in the ending event, do a Conditional Branch to see if the variable is equal to or greater than the required number. You can also use this method if the player needs to perform a certain number of tasks instead of, or in addition to, collecting certain items.
In both of the above cases, your true block will show the choices including the special ending, and your false/else block will show the choices without it.
If it is more like "player must collect each of these 15 different items that can each only be obtained once", then have one variable to track how many have been obtained, and each time the player gets one item, increment that variable. Again, in the ending event, do a Conditional Branch to see if the variable is equal to or greater than the required number. You can also use this method if the player needs to perform a certain number of tasks instead of, or in addition to, collecting certain items.
In both of the above cases, your true block will show the choices including the special ending, and your false/else block will show the choices without it.
Expertly explained. He could also do a more messy version with nested If conditions but I'll spare you the details. 😀
Original thread: https://forums.rpgmakerweb.com/threads/how-to-collect-certain-item-to-achieve-an-secret-ending.137819/