If you have a story to tell, the game should be as long as it needs to be to tell that story, plus the time it takes for the player to navigate the battles. Pretty straight forward, really.
If you make it longer, you will have to pad the story with filler. If you make it shorter, you will be cutting aspects of your story.
I agree with this conceptually, but I would add a caveat. I don't think this necessarily applies to an open world, free exploration game where the game is more about creating an experience of exploration and not just about completing a story line. Now, perhaps, most RPG Maker games don't fall under the open world category. I don't know because I have almost no experience with these types of games.
I would say that my favorite games are non-linear games. You can just do the story line if you want, and the game will take you approximately X amount of hours. The game tells the story and then it is done.
However, if you want to fully explore everything in the game, go to every cave, do every side quest, explore every ruin, fight every monster, pursue every tidbit that you glean from talking to every NPC or from reading books, grind, over develop your character/party, go to every island, explore underwater, etc. then the game is approximately X times 3 or 5 or 10!
In those types of games, I never rush the story line. In fact, I hardly pay attention to the story line. I just go wherever I want to go and do whatever I want to do as I want to do it. And the story line advances as it will.
Now, I fully understand that there are people who don't like open world games or they don't like a lot of extra stuff that isn't directly tied to the story line. Some people look at side quests as just filler and totally unnecessary. And maybe they don't like it because if it is there, they feel like they need to do them and that makes them unhappy. Some players look at things like that as a waste of time.
I just happen to have a totally different perspective. Give me lots of things to do and let me decide what I want to do. If there are 100 quests in the game and I only need to do 20 to complete the story line, fine by me. Especially if the game is fairly intuitive as to which quests are going to move the story line forward and which quests are more experience the world type quests.
I use Morrowind as an example. Over the years, I have played well over a thousand hours of Morrowind and, honestly, I could care less about the story line. I just love the feeling of being able to explore everything in the game.
But, I would say, don't try and mask a very linear story line with a bunch of extra stuff to try to make it seem like an open world, free exploration type of game.
Again, this is just my perspective. And there is nothing wrong with very straightforward games that have the player pursue a direct story line and everything in the game enhances, supports, and furthers that story line. I just lean more toward the other type of games that give me lots to do.
I also think that probably most people using RPG Maker to develop a game aren't looking to make an open world feeling game. And if they are, hopefully not as their first project!
This aspect of game design has been debated quite a bit in other threads so there are many different opinions on it.
As a writer, I just focus on the story first, and if it happens to be short or long, so be it. No artificial changes to the length unless just minor fine-tuning during the editing process, so it will be as long or short as it needs to be for the story to be told as it should be.
And when I am wearing my writer's hat and working on a novel, I completely agree with this. I have a story to tell and I tell it. There might actually be multiple story lines that come together to complete the main story, but I never add things just for the sake of adding something.
However, I do think that games are different. Games allow you to interact with the story in ways that a book never can. And, as a gamer, I can play a game and enjoy it even with a bare bones or almost non-existent story. Especially if the game play is fun, exciting, enjoyable, etc.
So, as I am writing this, I think that is an aspect too. Maybe I am an old outlier, but I don't need a compelling story to enjoy a game. Heck, I absolutely love Wizardry 8, but if that game was actually a novel, I probably would have never chosen to read it because the story is sort of bad. GASP! I said something bad about a Wizardry game!
Anyway, all of the previous responses have been great and I hope these help you.