EthanFox

Veteran
Veteran
Joined
Oct 15, 2018
Messages
496
Reaction score
342
First Language
English
Primarily Uses
RMMV
Hi all, question for the JS experts here. I'm not after help to do this as-of-yet, but it involves saving data and I just want to know, is this sort of functionality actually possible via an RPG Maker MV plugin?

Save/Load Behaviour Plugin

NALE is a chapter-based game; it has 3 chapters (1, 2 and 3), and we want the user to have to play 1 to unlock 2, 2 to unlock 3, and once 3 is complete, for some special features to be unlocked.

The actual chapter selection will take place in a special in-game map, not a menu; that’s not important for this plugin; this is just to provide some context.

For this to work, we require NALE to save data outside of the typical RPG Maker MV savegame structure. This is because if a user hits “New Game” (which will be renamed "New Chapter"), we want the game to know if they’ve unlocked Chapter 2, 3 or the special features, rather than always having to hit “Continue”. After completing each chapter, players will be returned to the title screen, ready to start another "new chapter".

Additionally, while in-game, we need to be able to poll this save system, to ask things like “has the user unlocked chapter 2 yet?” - so that we can have a message saying “Congrats, you have now unlocked chapter 3!” or similar when relevant.

This will also be used for Steam Achievements; a bool will exist for each achievement (each time the game loads a new chapter, it will poll to “fulfill” all achievements the user has completed; this is useful in case an achievement has been fulfilled, but did not unlock at the time due to the user having a poor connection at that moment).

So, to break that down in terms of features:

  • A Javascript plugin
  • Must save data to a distinct file/structure outside/independent of the typical RPG Maker MV saves
  • Contains a list of configurable named BOOL flags
  • Ability to set, mid-game, a named flag, and save that value/all values
  • Ability to poll a named value, returning what value it is (for IF statement conditions)
  • Feature a function to wipe all existing data back to a blank slate (options-screen option for players, guarded by a Yes/No modal box)
It is not necessary for the savegame structure to be obfuscated, though if it’s easy to do, that’d be good. We don’t really care all that much if people “cheat” at NALE; it’s a single-player game.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
32,092
Reaction score
7,989
First Language
German
Primarily Uses
RMMV
you're thinking too complex, it goes much simpler.

look for a plugin to give persistent switches and variables. there should be two or three like that for MV, and everything you want to do will be automatically included for eventing, with the exception of the last feature. But even deleting existing data is easy because only switches and variables are actually stored (maps reset automatically) and you can handle switches, variables, inventory and actors by events alone (for example set the change party member command to initialize to delete all actor changes)
 

EthanFox

Veteran
Veteran
Joined
Oct 15, 2018
Messages
496
Reaction score
342
First Language
English
Primarily Uses
RMMV
and you can handle switches, variables, inventory and actors by events alone (for example set the change party member command to initialize to delete all actor changes)
Is there an easy way to reinitialise actors and inventory back to how they normally are when the game first loads? Just wondering if there's a javascript command I could run for each.

I know it can be done manually, but if there's a function which does this, I'd rather rely on that.
 

Latest Threads

Latest Profile Posts


Here is the second song of the Eniko: Ghosts Of Grace soundtrack: Jus Ad Bellum (Battle Theme), composed by Nickolas Wolfe! Looking forward to your reactions!
Observation Log 1 on the planet of "RPGMAKERWEB": Local RMXP community seems to have very few survivors. Their script tech-level is in the early Stone Age(about the same as 66RPG in 2007).
Some cats/wolves/squirrels are spotted, they are likely friendly. :3
Keep working on establishing more meaningful contacts.
May try to use the "I Come in Peace" protocol if encounter any hostiles.
Using hiddenone's QTE tutorial I've been able to setup a simple fishing system. Instead of just the pointer moving, the goal moves as well. Holding the action button scrolls the pointer and pressing the down arrow key hooks the fish. The speed of both is variable as well as the number of successful hooks needed for a catch.

Forum statistics

Threads
108,926
Messages
1,040,648
Members
141,380
Latest member
Mrbinnsy
Top