Multiple endings

I know HOW to create different endings (using various condition like variablies and switches, common events etc.), but it there a plugin that which installed will add a "Endings" tab in the title screen? Maybe have it keep track of how many ending you have unlocked and screen similiar to the item menu to choose the ending that you have availiable, maybe even only show the Endings tab if the player beat the game at least once (my guess is you can do that with a show/enable command).


Kinda like how Yanfly Item synthesis can be show in the main menu, but only if you have at least one reciepe. only differenece is its the title menu, not the main menu, and it will take you to a customization ending screen. 


Also i kinda like the ending system in Fire emblem which if two charactars have support lvl A, it could change the individual(s) endings. so maybe you can change it to show support convos instead
I've moved this thread to Plugin Request. Please be sure to post your threads in the correct forum next time. Thank you.
It's always helpful in window requests to make a mock-up of what you want the window to look like.
and it will take you to a customization ending screen. 



What does that mean?
w

What does that mean?

well i mean like how you want to display certain endings, do u want them in list form, just show the names of said ending then players can choose from the ones unlocked, or do you want like a 3 columns display which allows pictures as well as the endings name, so you can give each ending a picture display instead of just a list of the names of the endings 
w


well i mean like how you want to display certain endings, do u want them in list form, just show the names of said ending then players can choose from the ones unlocked, or do you want like a 3 columns display which allows pictures as well as the endings name, so you can give each ending a picture display instead of just a list of the names of the endings 

Are you therefore looking for a feature that allows you to customize how the endings should be displayed?

Because providing a design to have it implemented is much easier than having someone build a tool that will allow you to create your own design, especially if you do not want to write code yourself and are looking for a "designer" tool that allows you to drag and drop windows and other GUI elements around.
Are you therefore looking for a feature that allows you to customize how the endings should be displayed?

Because providing a design to have it implemented is much easier than having someone build a tool that will allow you to create your own design, especially if you do not want to write code yourself and are looking for a "designer" tool that allows you to drag and drop windows and other GUI elements around.

well its not mandatory, im actually more considered of having the actually "Endings" tab within the title menu, and being able to choose an ending only when unlocked, i should think that the design is secondary i wouldn't mind if the "Ending screen" did display the endings in list forms (with just the names you given it, default would probably be ending 1,2,3,etc.), display the progress (2 out of 8 endings unlock) is also secondary and should be that hard if a variable. 


maybe like in yanfly battle system (between default, ATB, and CT😎have it toggle back and forth between list form and 3 column form, but like i said im more considered about having the tab withing the title and unlocking an Ending when u achieved it.
I could think of a plugin like that. Some issues would be once you unlock an ending, you'd need to track the variables that control the ending from the plugin.


The next thing would be if it's made using events and the player on the map, you would have to recreate that moment.


It's totally possible to do this by creating a save state of sorts when all conditions are met, then replaying/loading that save.


This is just an idea for plugin designers; I might consider making one with this in mind if it fits the criteria.


One question though,  do you want a scene to open up that shows you all the  unlocked endings  when you click "Ending" on the title screen?
One question though,  do you want a scene to open up that shows you all the  unlocked endings  when you click "Ending" on the title screen?

what do you mean? like show all the endings one after another in sequence, i dont think that would be good, but if you mean the player was able to choose amongst the endings that they unlocked (similar to items) then yes that is EXACTLY what i'm looking for, if it makes it easier for you to develop, maybe show all AVAILABLE endings but have them masked until hey're unlocked, that also works.


what you described is perfect, many RPG now have a "choose your adventure", and wouldn't it be redundant that no matter what u chose, the ending would be the same! (im looking at you mass effect). and i mean imagine if a game had like 20 endings but it didn't show at least the endings that u got or the progress you made, you basically have to write down all the endings that u got in notepad or something to keep track of it all!
I could think of a plugin like that. Some issues would be once you unlock an ending, you'd need to track the variables that control the ending from the plugin.


The next thing would be if it's made using events and the player on the map, you would have to recreate that moment.

huh?!wouldn't that be easier if we used the a common event for that, the creator (of the game) would have to make all the variables, switches and etc. that made the ending possible turned on (or off) within the common event (and text and animation etc.) then all you would need is the map (or maps if there's transer events) where it takes place. that's what i did in an experiment i created an battle processing if i defeated it id call a common event which checks variables and switches to change the endings, when iwent into the game,i used the debug mode to check if the endings i made were possible and it worked just fine.
@kreedves That's why I was considering the save state idea. 
Essentially the developer could have a script call in an event like:



saveEnding("Regular Route")


That would then save all of switches, variables, etc that were used at that point and give the ending a name. 
After that say, you wanted to replay the ending from that point; you only would have to click on the ending from the ending menu. 

My only issue with the common event is if the developer doesn't want to have a common event  that changes the variables to match. You only would have to click on the  ending in the menu to return back to that point essentially, with all the common events and stuff already in place for that ending route. 


It's only an idea though; I could  incorporate some of the things you mentioned also.


 
And yea, you have the right idea on what I was getting at.
@Kino  ok thanks, i cant w8 to see what you come up with! 
I got a basic idea for what it looks like right now. 
It loads up to the map at whenever it was saved.
@kreedves I just have to polish it, and add a few checks and such.


Finished a usable plugin: @kreedves


State Machine


So, essentially, you can name the command on the title menu whatever you'd like.
All you have to do is on your specific ending route, wherever you want to make your save, you would use the below function.


KR.Helpers.createSaveState("Ending: World Regeneration", 1);
// This is an example.
// This would create a new save at that point in time on the map scene.
// The save would then appear in the title menu's "Ending" command scene.
// Then when you select "Ending" you will find the ending with that name.
// Finally, clicking on that ending will bring you back to where you were with the same switches/variables/etc intact.


Hopefully this helps; it was really challenging to make.
@KinoO man, thanks a lot! Three questions though, do i have to use a plugin commend or a script commend?(my guess, plugin), I didn't make a save state (ending) yet but i didn't change the name, it said "undefined", it that suppose to happen and only appear as "endings" (or what ever you named it) after you unlocked an ending? 
So wait? It gave you an undefined error? @kreedves


Screenshot for me


Also they should appear on the title screen as Ending by default 


Once you create one it will be saved


And it's a script command
16.jpg14.jpg


O i changed the plugin name but i didnt alter the script
Most plugins use the name to find the parameters, do not rename it unless a script writer tells you they've made it so you can do that, because it seems as if it can't find the plugin parameter so it comes up as "UNDEFINED" because it couldn't get the value from the plugin parameters because it relies on the name of the script to find the parameters. Though not ALL scripts need to have their name kept the same, many do.


I checked, this plugin DOES need the correct name, to fix the issue, simply re-name the plugin  EISSaveStateMachine and it should work!
@Kloe Thank you very much! It worked!


@KinoThis plugin is great and it works fine now! Please let me know if there are updates to this plugin!
I'm glad it helped! 


By the way, if there are any issues  -- just message me; I'd appreciate it. Thanks~

Original thread: https://forums.rpgmakerweb.com/threads/multiple-endings.60406/